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

Method onMessage

Engine/source/gui/buttons/guiButtonBaseCtrl.cpp:459–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457//-----------------------------------------------------------------------------
458
459void GuiButtonBaseCtrl::onMessage( GuiControl *sender, S32 msg )
460{
461 Parent::onMessage(sender, msg);
462 if( mRadioGroup == msg && mButtonType == ButtonTypeRadio )
463 {
464 setUpdate();
465 mStateOn = ( sender == this );
466
467 // Update the console variable:
468 if ( mConsoleVariable[0] )
469 Con::setBoolVariable( mConsoleVariable, mStateOn );
470 }
471}
472
473//=============================================================================
474// Console Methods.

Callers

nothing calls this directly

Calls 1

setBoolVariableFunction · 0.85

Tested by

no test coverage detected