mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
UiDocument is an asset now
This commit is contained in:
parent
241d15e349
commit
07adbd04ea
21 changed files with 402 additions and 304 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue