mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.get_player_window_information() (#12367)
This commit is contained in:
parent
fbbdae93ee
commit
39f4d26177
23 changed files with 345 additions and 35 deletions
|
@ -128,6 +128,15 @@ void push_v2s32(lua_State *L, v2s32 p)
|
|||
lua_setfield(L, -2, "y");
|
||||
}
|
||||
|
||||
void push_v2u32(lua_State *L, v2u32 p)
|
||||
{
|
||||
lua_createtable(L, 0, 2);
|
||||
lua_pushinteger(L, p.X);
|
||||
lua_setfield(L, -2, "x");
|
||||
lua_pushinteger(L, p.Y);
|
||||
lua_setfield(L, -2, "y");
|
||||
}
|
||||
|
||||
v2s32 read_v2s32(lua_State *L, int index)
|
||||
{
|
||||
v2s32 p;
|
||||
|
|
|
@ -108,6 +108,7 @@ size_t read_stringlist (lua_State *L, int index,
|
|||
|
||||
void push_v2s16 (lua_State *L, v2s16 p);
|
||||
void push_v2s32 (lua_State *L, v2s32 p);
|
||||
void push_v2u32 (lua_State *L, v2u32 p);
|
||||
void push_v3s16 (lua_State *L, v3s16 p);
|
||||
void push_aabb3f (lua_State *L, aabb3f box);
|
||||
void push_ARGB8 (lua_State *L, video::SColor color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue