| 91 | } |
| 92 | |
| 93 | void MenuItem::activate() |
| 94 | { |
| 95 | if (_enabled) |
| 96 | { |
| 97 | if (_callbackClick) |
| 98 | { |
| 99 | _callbackClick(this); |
| 100 | } |
| 101 | #if AX_ENABLE_SCRIPT_BINDING |
| 102 | BasicScriptData data(this); |
| 103 | ScriptEvent scriptEvent(kMenuClickedEvent, &data); |
| 104 | ScriptEngineManager::sendEventToLua(scriptEvent); |
| 105 | #endif |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void MenuItem::setEnabled(bool enabled) |
| 110 | { |
no test coverage detected