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

Method activate

Engine/source/gui/controls/guiGameSettingsCtrl.cpp:533–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void GuiGameSettingsCtrl::activate()
534{
535 if(isSelected() && isEnabled() && (mScriptCallback != StringTable->EmptyString()))
536 {
537 setThisControl();
538 if (Con::isFunction(mScriptCallback))
539 {
540 Con::executef(mScriptCallback);
541 }
542 }
543}
544
545void GuiGameSettingsCtrl::setSelected()
546{

Callers 1

Calls 5

isSelectedFunction · 0.85
isEnabledFunction · 0.85
isFunctionFunction · 0.85
executefFunction · 0.85
EmptyStringMethod · 0.80

Tested by

no test coverage detected