- [FIX] No permetia carregar GIFs de mes de 256 pixels de ample o alt
- [FIX] No tornava be la ruta al arxiu de configuració - [NEW] Ara guarda en "~/.config/jailgames/loquesiga/" - [FIX] El mapa de tiles ha de pillar els tiles de la surface source - [NEW] Actualitzada la llibreria de autocompletar per a vscode
This commit is contained in:
8
lua.cpp
8
lua.cpp
@@ -163,8 +163,8 @@ extern "C" {
|
||||
uint8_t celw = luaL_checknumber(L, 5);
|
||||
uint8_t celh = luaL_checknumber(L, 6);
|
||||
uint8_t layer = luaL_optinteger(L, 7, 0);*/
|
||||
uint8_t surface = luaL_checkinteger(L, 1);
|
||||
setsource(surface);
|
||||
//uint8_t surface = luaL_checkinteger(L, 1);
|
||||
//setsource(surface);
|
||||
map(); //celx, cely, sx, sy, celw, celh, layer);
|
||||
return 0;
|
||||
}
|
||||
@@ -902,6 +902,10 @@ void push_lua_funcs() {
|
||||
lua_pushcfunction(L,cpp_mouse_wheel); lua_setfield(L, -2, "wheel");
|
||||
lua_pushcfunction(L,cpp_mouse_down); lua_setfield(L, -2, "down");
|
||||
lua_pushcfunction(L,cpp_mouse_press); lua_setfield(L, -2, "press");
|
||||
|
||||
lua_pushinteger(L, 1); lua_setfield(L, -2, "LEFT");
|
||||
lua_pushinteger(L, 2); lua_setfield(L, -2, "MIDDLE");
|
||||
lua_pushinteger(L, 3); lua_setfield(L, -2, "RIGHT");
|
||||
lua_setglobal(L, "mouse");
|
||||
|
||||
lua_newtable(L);
|
||||
|
||||
Reference in New Issue
Block a user