MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnOptionsClick

Method btnOptionsClick

src/Menu/PauseState.cpp:167–182  ·  view source on GitHub ↗

* Opens the Game Options screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

165* @param action Pointer to an action.
166*/
167void PauseState::btnOptionsClick(Action *)
168{
169 Options::backupDisplay();
170 if (_origin == OPT_GEOSCAPE)
171 {
172 _game->pushState(new OptionsGeoscapeState(_game, _origin));
173 }
174 else if (_origin == OPT_BATTLESCAPE)
175 {
176 _game->pushState(new OptionsBattlescapeState(_game, _origin));
177 }
178 else
179 {
180 _game->pushState(new OptionsVideoState(_game, _origin));
181 }
182}
183
184/**
185 * Opens the Abandon Game window.

Callers

nothing calls this directly

Calls 2

backupDisplayFunction · 0.85
pushStateMethod · 0.80

Tested by

no test coverage detected