add 'onfocus' ui event & optimize container:add

This commit is contained in:
MihailRis
2025-04-26 20:16:57 +03:00
parent 8e8cabf2d1
commit 1e90115a26
9 changed files with 31 additions and 10 deletions
+1 -1
View File
@@ -94,8 +94,8 @@ static int l_container_add(lua::State* L) {
auto subnode = guiutil::create(
engine->getGUI(), xmlsrc, std::move(env)
);
node->add(subnode);
UINode::getIndices(subnode, docnode.document->getMapWriteable());
node->add(std::move(subnode));
} catch (const std::exception& err) {
throw std::runtime_error(err.what());
}