MCPcopy Create free account
hub / github.com/MyGUI/mygui / writeState

Method writeState

Tools/SkinEditor/SkinExportSerializer.cpp:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

parseFunction · 0.50
append_childMethod · 0.45
set_valueMethod · 0.45
append_attributeMethod · 0.45
dataMethod · 0.45
c_strMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected