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

Method writeStateText

Tools/SkinEditor/SkinExportSerializer.cpp:191–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 void SkinExportSerializer::writeStateText(pugi::xml_node _parent, DataPtr _data, const MyGUI::IntCoord& _value)
192 {
193 pugi::xml_node node = _parent.append_child("State");
194 node.append_attribute("name").set_value(convertEditorToExportStateName(_data->getPropertyValue("Name")).data());
195 node.append_attribute("colour").set_value(_data->getPropertyValue("TextColour").c_str());
196 node.append_attribute("shift").set_value(_data->getPropertyValue("TextShift").c_str());
197 }
198
199 void SkinExportSerializer::fillStateData(DataPtr _data, pugi::xml_node _node)
200 {

Callers

nothing calls this directly

Calls 5

append_childMethod · 0.45
set_valueMethod · 0.45
append_attributeMethod · 0.45
dataMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected