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

Method toggleSettings

source/modes/MenuModeMain.cpp:191–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191bool MenuModeMain::toggleSettings(const CEGUI::EventArgs&)
192{
193 if (mSettings.isVisible())
194 mSettings.onCancelSettings();
195 else
196 mSettings.show();
197 return true;
198}
199
200bool MenuModeMain::toggleSkirmishSubMenu(const CEGUI::EventArgs&)
201{

Callers

nothing calls this directly

Calls 3

onCancelSettingsMethod · 0.80
showMethod · 0.80
isVisibleMethod · 0.45

Tested by

no test coverage detected