| 431 | //----------------------------------------------------------------------------- |
| 432 | |
| 433 | void GuiButtonBaseCtrl::onAction() |
| 434 | { |
| 435 | if(!mActive) |
| 436 | return; |
| 437 | |
| 438 | if(mButtonType == ButtonTypeCheck) |
| 439 | { |
| 440 | mStateOn = mStateOn ? false : true; |
| 441 | } |
| 442 | else if(mButtonType == ButtonTypeRadio) |
| 443 | { |
| 444 | mStateOn = true; |
| 445 | messageSiblings(mRadioGroup); |
| 446 | } |
| 447 | setUpdate(); |
| 448 | |
| 449 | // Update the console variable: |
| 450 | if ( mConsoleVariable[0] ) |
| 451 | Con::setBoolVariable( mConsoleVariable, mStateOn ); |
| 452 | |
| 453 | onClick_callback(); |
| 454 | Parent::onAction(); |
| 455 | } |
| 456 | |
| 457 | //----------------------------------------------------------------------------- |
| 458 |
no test coverage detected