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

Method notifyChangeValue

Tools/SkinEditor/StateTextureController.cpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 void StateTextureController::notifyChangeValue(std::string_view _value)
112 {
113 if (mParentData != nullptr)
114 {
115 DataPtr selected = mParentData->getChildSelected();
116 if (selected != nullptr && selected->getType()->getName() == "State")
117 {
118 MyGUI::IntCoord coord = MyGUI::IntCoord::parse(_value);
119 PropertyPtr property = selected->getProperty("Point");
120 PropertyUtility::executeAction(property, coord.point().print(), true);
121 }
122 }
123 }
124
125 void StateTextureController::notifyChangeScope(std::string_view _scope)
126 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected