Author Topic: [DONE] split OXC and OXCE advanced options and controls  (Read 1273 times)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
[DONE] split OXC and OXCE advanced options and controls
« on: January 05, 2024, 03:31:34 pm »
Split into separate sections to improve readability.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: [DONE] split OXC and OXCE advanced options and controls
« Reply #1 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();
}


Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: [DONE] split OXC and OXCE advanced options and controls
« Reply #2 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.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] split OXC and OXCE advanced options and controls
« Reply #3 on: January 05, 2024, 04:29:06 pm »
Yeah, this will make things a bit easier. Good initiative!

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: [DONE] split OXC and OXCE advanced options and controls
« Reply #4 on: January 07, 2024, 05:17:03 pm »
Added some more OXCE options that were hidden before.