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

Method notifyChangeProperty

Tools/SkinEditor/RegionTextureController.cpp:94–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void RegionTextureController::notifyChangeProperty(PropertyPtr _sender)
95 {
96 if (!mActivated)
97 return;
98
99 if (_sender->getOwner()->getType()->getName() == "Skin")
100 {
101 if (_sender->getType()->getName() == "Texture")
102 mControl->setTextureValue(_sender->getValue());
103 else if (_sender->getType()->getName() == "Size")
104 updateCoords(_sender->getValue());
105 }
106 else if (
107 _sender->getOwner()->getType()->getName() == mThisType ||
108 _sender->getOwner()->getType()->getFriend() == mThisType)
109 {
110 if (_sender->getType()->getName() == "Coord")
111 updateFrames();
112 else if (_sender->getType()->getName() == "Visible")
113 updateFrames();
114 else if (_sender->getType()->getName() == "Enable")
115 updateFrames();
116 }
117 }
118
119 void RegionTextureController::notifyChangeValue(std::string_view _value)
120 {

Callers

nothing calls this directly

Calls 4

setTextureValueMethod · 0.80
getTypeMethod · 0.45
getOwnerMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected