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

Method notifyChangeValue

Tools/SkinEditor/RegionTextureController.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 void RegionTextureController::notifyChangeValue(std::string_view _value)
120 {
121 if (mParentData != nullptr)
122 {
123 DataPtr selected = mParentData->getChildSelected();
124 if (selected != nullptr && selected->getType()->getName() == "RegionText")
125 {
126 MyGUI::IntCoord coord = MyGUI::IntCoord::parse(_value);
127 PropertyPtr property = selected->getProperty("Coord");
128 PropertyUtility::executeAction(property, coord.print(), true);
129 }
130 }
131 }
132
133 void RegionTextureController::notifyChangeScope(std::string_view _scope)
134 {

Callers

nothing calls this directly

Calls 5

getChildSelectedMethod · 0.80
parseFunction · 0.50
getTypeMethod · 0.45
getPropertyMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected