Settings: Add scenario editor section

pull/182/head
Jonathan G Rennison 4 years ago
parent 2c829bbc0f
commit 3dfbeb07f6

@ -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)

@ -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;

@ -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. */

Loading…
Cancel
Save