MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setStateOn

Method setStateOn

Engine/source/gui/buttons/guiButtonBaseCtrl.cpp:196–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194//-----------------------------------------------------------------------------
195
196void GuiButtonBaseCtrl::setStateOn( bool bStateOn )
197{
198 if(!mActive)
199 return;
200
201 if(mButtonType == ButtonTypeCheck)
202 {
203 mStateOn = bStateOn;
204 }
205 else if(mButtonType == ButtonTypeRadio)
206 {
207 messageSiblings(mRadioGroup);
208 mStateOn = bStateOn;
209 }
210 setUpdate();
211}
212
213//-----------------------------------------------------------------------------
214

Callers 4

setValueMethod · 0.80
constructEditControlMethod · 0.80

Calls

no outgoing calls

Tested by 2

setValueMethod · 0.64
constructEditControlMethod · 0.64