MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / leaveConsole

Method leaveConsole

source/modes/GameEditorModeConsole.cpp:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool 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}

Callers

nothing calls this directly

Calls 2

getCurrentModeMethod · 0.80
getCurrentModeTypeMethod · 0.45

Tested by

no test coverage detected