mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
UINode.coord renamed to UINode.pos
This commit is contained in:
parent
a80e7e4220
commit
f428a24a16
12 changed files with 101 additions and 99 deletions
|
|
@ -171,7 +171,7 @@ static int l_gui_getattr(lua_State* L) {
|
|||
if (attr == "color") {
|
||||
return lua::pushcolor_arr(L, node->getColor());
|
||||
} else if (attr == "pos") {
|
||||
return lua::pushvec2_arr(L, node->getCoord());
|
||||
return lua::pushvec2_arr(L, node->getPos());
|
||||
} else if (attr == "size") {
|
||||
return lua::pushvec2_arr(L, node->getSize());
|
||||
} else if (attr == "hoverColor") {
|
||||
|
|
@ -210,7 +210,7 @@ static int l_gui_setattr(lua_State* L) {
|
|||
|
||||
auto node = getDocumentNode(L, docname, element);
|
||||
if (attr == "pos") {
|
||||
node->setCoord(lua::tovec2(L, 4));
|
||||
node->setPos(lua::tovec2(L, 4));
|
||||
} else if (attr == "size") {
|
||||
node->setSize(lua::tovec2(L, 4));
|
||||
} else if (attr == "color") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue