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

Method notifyChangeProperty

Tools/SkinEditor/StateTextureController.cpp:90–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 void StateTextureController::notifyChangeProperty(PropertyPtr _sender)
91 {
92 if (!mActivated)
93 return;
94
95 if (_sender->getOwner()->getType()->getName() == "Skin")
96 {
97 if (_sender->getType()->getName() == "Texture")
98 updateTexture(_sender->getValue());
99 else if (_sender->getType()->getName() == "Size")
100 updateCoords(_sender->getValue());
101 }
102 else if (_sender->getOwner()->getType()->getName() == "State")
103 {
104 if (_sender->getType()->getName() == "Point")
105 updateFrames();
106 else if (_sender->getType()->getName() == "Visible")
107 updateFrames();
108 }
109 }
110
111 void StateTextureController::notifyChangeValue(std::string_view _value)
112 {

Callers

nothing calls this directly

Calls 3

getTypeMethod · 0.45
getOwnerMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected