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

Method updateColourPlace

Tools/LayoutEditor/PropertyFieldColour.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void PropertyFieldColour::updateColourPlace(bool _success)
94 {
95 if (_success)
96 {
97 mColourPlace->setAlpha(1);
98 MyGUI::Colour colour = MyGUI::Colour::parse(mField->getOnlyText());
99 mColourPlace->setColour(colour);
100 }
101 else
102 {
103 mColourPlace->setAlpha(0);
104 }
105 }
106
107 MyGUI::IntSize PropertyFieldColour::getContentSize()
108 {

Callers

nothing calls this directly

Calls 4

parseFunction · 0.50
setAlphaMethod · 0.45
getOnlyTextMethod · 0.45
setColourMethod · 0.45

Tested by

no test coverage detected