Settings: Add scenario editor section

This commit is contained in:
Jonathan G Rennison 2020-08-03 18:32:27 +01:00
parent 2c829bbc0f
commit 3dfbeb07f6
3 changed files with 12 additions and 0 deletions

View File

@ -1936,6 +1936,7 @@ STR_CONFIG_SETTING_AI :{ORANGE}Competi
STR_CONFIG_SETTING_AI_NPC :{ORANGE}Computer players
STR_CONFIG_SETTING_VIEWPORT_MAP_OPTIONS :{ORANGE}Map mode
STR_CONFIG_SETTING_SHARING :{ORANGE}Infrastructure sharing
STR_CONFIG_SETTING_SCENARIO_EDITOR :{ORANGE}Scenario Editor
STR_CONFIG_SETTING_PATHFINDER_NPF :NPF
STR_CONFIG_SETTING_PATHFINDER_YAPF_RECOMMENDED :YAPF {BLUE}(Recommended)

View File

@ -2008,6 +2008,12 @@ static SettingsContainer &GetSettingsTree()
ai->Add(new SettingEntry("difficulty.money_cheat_in_multiplayer"));
}
if (_game_mode != GM_NORMAL) {
SettingsPage *scenario = main->Add(new SettingsPage(STR_CONFIG_SETTING_SCENARIO_EDITOR));
{
}
}
main->Init();
}
return *main;

View File

@ -659,6 +659,10 @@ struct DebugSettings {
uint32 chicken_bits; ///< chicken bits
};
/** Scenario editor settings. */
struct ScenarioSettings {
};
/** All settings together for the game. */
struct GameSettings {
DifficultySettings difficulty; ///< settings related to the difficulty
@ -687,6 +691,7 @@ struct ClientSettings {
SoundSettings sound; ///< sound effect settings
MusicSettings music; ///< settings related to music/sound
NewsSettings news_display; ///< news display settings.
ScenarioSettings scenario; ///< scenario editor settings
};
/** The current settings for this game. */