mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
misc hud-related updates
This commit is contained in:
parent
1f3d1e2640
commit
11bb9e5926
23 changed files with 400 additions and 165 deletions
|
|
@ -85,6 +85,11 @@ int l_gui_getattr(lua_State* L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int l_gui_getviewport(lua_State* L) {
|
||||
lua::pushvec2_arr(L, scripting::engine->getGUI()->getContainer()->getSize());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int l_gui_setattr(lua_State* L) {
|
||||
auto docname = lua_tostring(L, 1);
|
||||
auto element = lua_tostring(L, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue