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

Method toggleEditorSubMenu

source/modes/MenuModeMain.cpp:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool MenuModeMain::toggleEditorSubMenu(const CEGUI::EventArgs&)
225{
226 CEGUI::Window* mainWin = getModeManager().getGui().getGuiSheet(Gui::mainMenu);
227 OD_ASSERT_TRUE(mainWin);
228 CEGUI::Window* window = mainWin->getChild(WINDOW_EDITOR);
229 OD_ASSERT_TRUE(window);
230 window->setVisible(!window->isVisible());
231 mainWin->getChild(WINDOW_MULTIPLAYER)->hide();
232 mainWin->getChild(WINDOW_SKIRMISH)->hide();
233 return true;
234}

Callers

nothing calls this directly

Calls 4

getGuiSheetMethod · 0.80
setVisibleMethod · 0.80
hideMethod · 0.80
isVisibleMethod · 0.45

Tested by

no test coverage detected