lua: gui library (WIP)

This commit is contained in:
MihailRis
2024-02-13 18:16:18 +03:00
parent 302b649634
commit 05589b721e
14 changed files with 262 additions and 25 deletions
+8
View File
@@ -30,6 +30,14 @@ const std::shared_ptr<gui::UINode> UiDocument::getRoot() const {
return root;
}
const std::shared_ptr<gui::UINode> UiDocument::get(const std::string& id) const {
auto found = map.find(id);
if (found == map.end()) {
return nullptr;
}
return found->second;
}
const uidocscript& UiDocument::getScript() const {
return script;
}