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

Method notifyChangeValue

Tools/SkinEditor/SeparatorTextureController.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 void SeparatorTextureController::notifyChangeValue(std::string_view _value)
112 {
113 if (mParentData != nullptr)
114 {
115 DataPtr selected = mParentData->getChildSelected();
116 if (selected != nullptr && selected->getType()->getName() == "Separator")
117 {
118 MyGUI::IntCoord value = MyGUI::IntCoord::parse(_value);
119 int offset = getOffsetByName(value, selected->getPropertyValue("Name"));
120 PropertyPtr property = selected->getProperty("Offset");
121 PropertyUtility::executeAction(property, MyGUI::utility::toString(offset), true);
122 }
123 }
124 }
125
126 void SeparatorTextureController::notifyChangeScope(std::string_view _scope)
127 {

Callers

nothing calls this directly

Calls 5

toStringFunction · 0.85
getChildSelectedMethod · 0.80
parseFunction · 0.50
getTypeMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected