OpenXcom Forum
Contributions => Programming => Topic started by: KingMob4313 on August 18, 2014, 06:13:26 pm
-
Disclaimer: I am no where near a check-in or a legit branch to do a check-in
I've been scrambling through the code lately, making a number of changes for my own benefit and fun (immortal mod and so on) but there is still one point that's escaping me:
I'd like to make new base options that can be selected at the advanced options menu that can enable or disable some of these mods, but I'm a bit lost on how it reads and enumerates those options. Anyone have an idea of where I can go looking in the code base?
-
src/Engine/Options.cpp
_info.push_back(OptionInfo("newoption", &newoption, 0, "STR_newoption", "STR_GENERAL"));
+ if your option is not yes/no -> src/Menu/OptionsAdvancedState.cpp
in the code
if (Options::newoption)...
-
src/Engine/Options.cpp
_info.push_back(OptionInfo("newoption", &newoption, 0, "STR_newoption", "STR_GENERAL"));
+ if your option is not yes/no -> src/Menu/OptionsAdvancedState.cpp
in the code
if (Options::newoption)...
Sweet. That will make management much easier. Now it's just a matter of deciding which changes I've made to gameplay are worthy of prime time.
Thanks for the quick response.