| 177 | } |
| 178 | |
| 179 | bool FontExportSerializer::exportData(const MyGUI::UString& _folderName, const MyGUI::UString& _fileName) |
| 180 | { |
| 181 | MyGUI::xml::Document document; |
| 182 | document.createDeclaration(); |
| 183 | MyGUI::xml::ElementPtr root = document.createRoot("MyGUI"); |
| 184 | root->addAttribute("type", "Resource"); |
| 185 | root->addAttribute("version", "1.1"); |
| 186 | |
| 187 | DataPtr data = DataManager::getInstance().getRoot(); |
| 188 | for (const auto& child : data->getChilds()) |
| 189 | { |
| 190 | generateFont(child); |
| 191 | generateFontManualXml(root, _folderName, child); |
| 192 | } |
| 193 | |
| 194 | return document.save(common::concatenatePath(_folderName, _fileName)); |
| 195 | } |
| 196 | |
| 197 | template<typename Type> |
| 198 | void addProperty(MyGUI::xml::ElementPtr _node, std::string_view _name, Type _value) |
nothing calls this directly
no test coverage detected