mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
generated ui nodes indexing
This commit is contained in:
parent
e57b0eca15
commit
1a4c70d21a
6 changed files with 50 additions and 58 deletions
|
|
@ -219,7 +219,9 @@ static int container_add(lua_State* L) {
|
|||
auto node = dynamic_cast<gui::Container*>(docnode.node);
|
||||
auto xmlsrc = lua_tostring(L, 2);
|
||||
try {
|
||||
node->add(guiutil::create(xmlsrc, docnode.document->getEnvironment()));
|
||||
auto subnode = guiutil::create(xmlsrc, docnode.document->getEnvironment());
|
||||
node->add(subnode);
|
||||
gui::UINode::getIndices(subnode, docnode.document->getMapWriteable());
|
||||
} catch (const std::exception& err) {
|
||||
luaL_error(L, err.what());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue