mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
layout test
This commit is contained in:
parent
07adbd04ea
commit
9ad371862c
8 changed files with 41 additions and 14 deletions
|
|
@ -11,10 +11,23 @@ UiDocument::UiDocument(
|
|||
std::string namesp,
|
||||
uidocscript script,
|
||||
std::shared_ptr<gui::UINode> root
|
||||
) {
|
||||
) : namesp(namesp), script(script), root(root) {
|
||||
collect(map, root);
|
||||
}
|
||||
|
||||
|
||||
const uinodes_map& UiDocument::getMap() const {
|
||||
return map;
|
||||
}
|
||||
|
||||
const std::string& UiDocument::getNamespace() const {
|
||||
return namesp;
|
||||
}
|
||||
|
||||
const std::shared_ptr<gui::UINode> UiDocument::getRoot() const {
|
||||
return root;
|
||||
}
|
||||
|
||||
void UiDocument::collect(uinodes_map& map, std::shared_ptr<gui::UINode> node) {
|
||||
const std::string& id = node->getId();
|
||||
if (!id.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue