| 174 | } |
| 175 | |
| 176 | pugi::xml_node SkinExportSerializer::writeState( |
| 177 | pugi::xml_node _parent, |
| 178 | DataPtr _data, |
| 179 | const MyGUI::IntCoord& _value) |
| 180 | { |
| 181 | MyGUI::IntPoint point = MyGUI::IntPoint::parse(_data->getPropertyValue("Point")); |
| 182 | MyGUI::IntCoord coord = _value + point; |
| 183 | |
| 184 | pugi::xml_node node = _parent.append_child("State"); |
| 185 | node.append_attribute("name").set_value(convertEditorToExportStateName(_data->getPropertyValue("Name")).data()); |
| 186 | node.append_attribute("offset").set_value(coord.print().c_str()); |
| 187 | |
| 188 | return node; |
| 189 | } |
| 190 | |
| 191 | void SkinExportSerializer::writeStateText(pugi::xml_node _parent, DataPtr _data, const MyGUI::IntCoord& _value) |
| 192 | { |
nothing calls this directly
no test coverage detected