| 223 | } |
| 224 | |
| 225 | void EditorWidgets::loadxmlDocument(MyGUI::xml::Document* doc, bool _testMode) |
| 226 | { |
| 227 | MyGUI::xml::ElementPtr root = doc->getRoot(); |
| 228 | |
| 229 | std::string_view type = root->findAttribute("type"); |
| 230 | if (type == "Layout") |
| 231 | { |
| 232 | loadWidgetsFromXmlNode(root, _testMode); |
| 233 | } |
| 234 | mWidgetsChanged = true; |
| 235 | } |
| 236 | |
| 237 | MyGUI::xml::Document* EditorWidgets::savexmlDocument() |
| 238 | { |