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

Method toggleMultiplayerSubMenu

source/modes/MenuModeMain.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool MenuModeMain::toggleMultiplayerSubMenu(const CEGUI::EventArgs&)
213{
214 CEGUI::Window* mainWin = getModeManager().getGui().getGuiSheet(Gui::mainMenu);
215 OD_ASSERT_TRUE(mainWin);
216 CEGUI::Window* window = mainWin->getChild(WINDOW_MULTIPLAYER);
217 OD_ASSERT_TRUE(window);
218 window->setVisible(!window->isVisible());
219 mainWin->getChild(WINDOW_SKIRMISH)->hide();
220 mainWin->getChild(WINDOW_EDITOR)->hide();
221 return true;
222}
223
224bool MenuModeMain::toggleEditorSubMenu(const CEGUI::EventArgs&)
225{

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