| 161 | } |
| 162 | |
| 163 | bool GameEditorModeConsole::leaveConsole(const CEGUI::EventArgs& /*e*/) |
| 164 | { |
| 165 | if (mModeManager->getCurrentModeType() != AbstractModeManager::GAME |
| 166 | && mModeManager->getCurrentModeType() != AbstractModeManager::EDITOR) |
| 167 | return true; |
| 168 | |
| 169 | // Warn the mother mode that we can leave the console. |
| 170 | GameEditorModeBase* mode = static_cast<GameEditorModeBase*>(mModeManager->getCurrentMode()); |
| 171 | mode->leaveConsole(); |
| 172 | return true; |
| 173 | } |
nothing calls this directly
no test coverage detected