* Opens the Game Options screen. * @param action Pointer to an action. */
| 165 | * @param action Pointer to an action. |
| 166 | */ |
| 167 | void 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. |
nothing calls this directly
no test coverage detected