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

Method onMessage

Engine/source/gui/buttons/guiButtonBaseCtrl.cpp:458–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setBoolVariableFunction · 0.85

Tested by

no test coverage detected