UiDocument is an asset now

This commit is contained in:
MihailRis
2024-02-09 09:59:36 +03:00
parent 241d15e349
commit 07adbd04ea
21 changed files with 402 additions and 304 deletions
+1 -10
View File
@@ -12,9 +12,6 @@ namespace gui {
class UINode;
}
class InventoryInteraction;
class LevelFrontend;
struct uidocscript {
int environment;
bool onopen : 1;
@@ -37,13 +34,7 @@ public:
/* Collect map of all uinodes having identifiers */
static void collect(uinodes_map& map, std::shared_ptr<gui::UINode> node);
/* @return root node is always an InventoryView */
static std::unique_ptr<UiDocument> readInventory (
std::string namesp,
fs::path file,
LevelFrontend* frontend,
InventoryInteraction& interaction
);
static std::unique_ptr<UiDocument> read (std::string namesp, fs::path file);
};
#endif // FRONTEND_UI_DOCUMENT_H_