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

Method btnNoClick

src/Menu/OptionsConfirmState.cpp:150–157  ·  view source on GitHub ↗

* Restores the original display options. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

148 * @param action Pointer to an action.
149 */
150void OptionsConfirmState::btnNoClick(Action *)
151{
152 Options::switchDisplay();
153 Options::save();
154 _game->getScreen()->resetDisplay();
155 _game->popState();
156 OptionsBaseState::restart(_game, _origin);
157}
158
159}

Callers

nothing calls this directly

Calls 5

switchDisplayFunction · 0.85
saveFunction · 0.85
resetDisplayMethod · 0.80
getScreenMethod · 0.80
popStateMethod · 0.45

Tested by

no test coverage detected