OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Meridian on January 05, 2024, 03:31:34 pm
-
Split into separate sections to improve readability.
-
Forks can activate (and rename) a third button too for the advanced settings and controls specific to their forks.
Modify this to enable the third button:
_btnOTHER->setText(tr("STR_ENGINE_OTHER")); // rename in your fork
_btnOTHER->setGroup(&_owner);
_btnOTHER->onMousePress((ActionHandler)&OptionsAdvancedState::btnGroupPress, SDL_BUTTON_LEFT);
_btnOTHER->setVisible(false); // enable in your fork
Please put your own advanced settings and controls in here (into createAdvancedOptionsOTHER() and createControlsOTHER()):
/**
* Sets up the options by creating their OptionInfo metadata.
*/
void create()
{
if (!_info.empty()) { _info.clear(); }
////////////////////////////////////////////////////////////
// OXC - OpenXcom
////////////////////////////////////////////////////////////
createOptionsOXC();
createAdvancedOptionsOXC();
createControlsOXC();
////////////////////////////////////////////////////////////
// OXCE - OpenXcom Extended
////////////////////////////////////////////////////////////
createOptionsOXCE();
createAdvancedOptionsOXCE();
createControlsOXCE();
////////////////////////////////////////////////////////////
// OTHER - your fork name here
////////////////////////////////////////////////////////////
createOptionsOTHER();
createAdvancedOptionsOTHER();
createControlsOTHER();
}
-
Thank you for honoring forks, it is very appreciated. I do have specific settings in my fork.
-
Yeah, this will make things a bit easier. Good initiative!
-
Added some more OXCE options that were hidden before.