From 3dfbeb07f6c3d99919e15a584a957e7a2cebbeaa Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 3 Aug 2020 18:32:27 +0100 Subject: [PATCH] Settings: Add scenario editor section --- src/lang/english.txt | 1 + src/settings_gui.cpp | 6 ++++++ src/settings_type.h | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/src/lang/english.txt b/src/lang/english.txt index 7e21b9066f..8a1b2e31da 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -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) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index dc95f89aa8..0eabb96b24 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -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; diff --git a/src/settings_type.h b/src/settings_type.h index 77b1982236..f929c577cf 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -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. */