mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
refactor & optimize xml parser
This commit is contained in:
parent
04b6b6b546
commit
84b3b82dba
6 changed files with 384 additions and 376 deletions
|
|
@ -67,9 +67,7 @@ std::unique_ptr<UiDocument> UiDocument::read(
|
|||
: scripting::create_doc_environment(penv, name);
|
||||
|
||||
gui::UiXmlReader reader(env);
|
||||
auto view = reader.readXML(
|
||||
file.u8string(), xmldoc->getRoot()
|
||||
);
|
||||
auto view = reader.readXML(file.u8string(), *xmldoc->getRoot());
|
||||
view->setId("root");
|
||||
uidocscript script {};
|
||||
auto scriptFile = fs::path(file.u8string()+".lua");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue