* Handles the pressed-button state for the category buttons. * @param button Button to press. */
| 193 | * @param button Button to press. |
| 194 | */ |
| 195 | void OptionsBaseState::setCategory(TextButton *button) |
| 196 | { |
| 197 | _group = button; |
| 198 | _btnVideo->setGroup(&_group); |
| 199 | _btnAudio->setGroup(&_group); |
| 200 | _btnControls->setGroup(&_group); |
| 201 | _btnGeoscape->setGroup(&_group); |
| 202 | _btnBattlescape->setGroup(&_group); |
| 203 | _btnAdvanced->setGroup(&_group); |
| 204 | _btnMods->setGroup(&_group); |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Saves the new options and returns to the proper origin screen. |