OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Meridian on January 05, 2024, 03:31:34 pm

Title: [DONE] split OXC and OXCE advanced options and controls
Post by: Meridian on January 05, 2024, 03:31:34 pm
Split into separate sections to improve readability.
Title: Re: [DONE] split OXC and OXCE advanced options and controls
Post by: Meridian on January 05, 2024, 03:37:27 pm
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:

Code: [Select]
_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()):

Code: [Select]
/**
 * Sets up the options by creating their OptionInfo metadata.
 */
void create()
{
if (!_info.empty()) { _info.clear(); }

////////////////////////////////////////////////////////////
// OXC - OpenXcom
////////////////////////////////////////////////////////////

createOptionsOXC();
createAdvancedOptionsOXC();
createControlsOXC();

////////////////////////////////////////////////////////////
// OXCE - OpenXcom Extended
////////////////////////////////////////////////////////////
Code: [Select]

createOptionsOXCE();
createAdvancedOptionsOXCE();
createControlsOXCE();

////////////////////////////////////////////////////////////
// OTHER - your fork name here
////////////////////////////////////////////////////////////

createOptionsOTHER();
createAdvancedOptionsOTHER();
createControlsOTHER();
}

Title: Re: [DONE] split OXC and OXCE advanced options and controls
Post by: Finnik on January 05, 2024, 04:19:49 pm
Thank you for honoring forks, it is very appreciated. I do have specific settings in my fork.
Title: Re: [DONE] split OXC and OXCE advanced options and controls
Post by: Solarius Scorch on January 05, 2024, 04:29:06 pm
Yeah, this will make things a bit easier. Good initiative!
Title: Re: [DONE] split OXC and OXCE advanced options and controls
Post by: Meridian on January 07, 2024, 05:17:03 pm
Added some more OXCE options that were hidden before.