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

Method setCategory

src/Menu/OptionsBaseState.cpp:195–205  ·  view source on GitHub ↗

* Handles the pressed-button state for the category buttons. * @param button Button to press. */

Source from the content-addressed store, hash-verified

193 * @param button Button to press.
194 */
195void 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.

Callers

nothing calls this directly

Calls 1

setGroupMethod · 0.45

Tested by

no test coverage detected