mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
lua: uidocuments sub-environment
This commit is contained in:
parent
4ce46f34bf
commit
e4f7315cc3
9 changed files with 31 additions and 16 deletions
|
|
@ -12,6 +12,10 @@ namespace gui {
|
|||
class UINode;
|
||||
}
|
||||
|
||||
namespace scripting {
|
||||
class Environment;
|
||||
}
|
||||
|
||||
struct uidocscript {
|
||||
int environment;
|
||||
bool onopen : 1;
|
||||
|
|
@ -25,13 +29,13 @@ class UiDocument {
|
|||
uidocscript script;
|
||||
uinodes_map map;
|
||||
std::shared_ptr<gui::UINode> root;
|
||||
int env;
|
||||
std::unique_ptr<scripting::Environment> env;
|
||||
public:
|
||||
UiDocument(
|
||||
std::string id,
|
||||
uidocscript script,
|
||||
std::shared_ptr<gui::UINode> root,
|
||||
int env
|
||||
std::unique_ptr<scripting::Environment> env
|
||||
);
|
||||
|
||||
const std::string& getId() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue