mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
uinode:add method fix + gui.reindex(document_name)
This commit is contained in:
parent
e456b77143
commit
e57b0eca15
9 changed files with 81 additions and 44 deletions
|
|
@ -38,14 +38,16 @@ public:
|
|||
std::unique_ptr<scripting::Environment> env
|
||||
);
|
||||
|
||||
void rebuildIndices();
|
||||
|
||||
const std::string& getId() const;
|
||||
const uinodes_map& getMap() const;
|
||||
const std::shared_ptr<gui::UINode> getRoot() const;
|
||||
const std::shared_ptr<gui::UINode> get(const std::string& id) const;
|
||||
const uidocscript& getScript() const;
|
||||
int getEnvironment() const;
|
||||
/* Collect map of all uinodes having identifiers */
|
||||
static void collect(uinodes_map& map, std::shared_ptr<gui::UINode> node);
|
||||
// @brief Collect map of all uinodes having identifiers
|
||||
static void buildIndices(uinodes_map& map, std::shared_ptr<gui::UINode> node);
|
||||
|
||||
static std::unique_ptr<UiDocument> read(int env, std::string name, fs::path file);
|
||||
static std::shared_ptr<gui::UINode> readElement(fs::path file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue