mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
ui scripting related fixes
This commit is contained in:
parent
7f17face73
commit
302b649634
8 changed files with 21 additions and 9 deletions
|
|
@ -55,7 +55,7 @@ std::unique_ptr<UiDocument> UiDocument::read(AssetsLoader& loader, int penv, std
|
|||
const std::string text = files::read_string(file);
|
||||
auto xmldoc = xml::parse(file.u8string(), text);
|
||||
|
||||
auto env = scripting::create_environment(penv);
|
||||
auto env = scripting::create_doc_environment(penv, namesp);
|
||||
gui::UiXmlReader reader(*env, loader);
|
||||
InventoryView::createReaders(reader);
|
||||
auto view = reader.readXML(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue