Settings: Add scenario editor section
This commit is contained in:
@@ -1936,6 +1936,7 @@ STR_CONFIG_SETTING_AI :{ORANGE}Competi
|
|||||||
STR_CONFIG_SETTING_AI_NPC :{ORANGE}Computer players
|
STR_CONFIG_SETTING_AI_NPC :{ORANGE}Computer players
|
||||||
STR_CONFIG_SETTING_VIEWPORT_MAP_OPTIONS :{ORANGE}Map mode
|
STR_CONFIG_SETTING_VIEWPORT_MAP_OPTIONS :{ORANGE}Map mode
|
||||||
STR_CONFIG_SETTING_SHARING :{ORANGE}Infrastructure sharing
|
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_NPF :NPF
|
||||||
STR_CONFIG_SETTING_PATHFINDER_YAPF_RECOMMENDED :YAPF {BLUE}(Recommended)
|
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"));
|
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();
|
main->Init();
|
||||||
}
|
}
|
||||||
return *main;
|
return *main;
|
||||||
|
@@ -659,6 +659,10 @@ struct DebugSettings {
|
|||||||
uint32 chicken_bits; ///< chicken bits
|
uint32 chicken_bits; ///< chicken bits
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** Scenario editor settings. */
|
||||||
|
struct ScenarioSettings {
|
||||||
|
};
|
||||||
|
|
||||||
/** All settings together for the game. */
|
/** All settings together for the game. */
|
||||||
struct GameSettings {
|
struct GameSettings {
|
||||||
DifficultySettings difficulty; ///< settings related to the difficulty
|
DifficultySettings difficulty; ///< settings related to the difficulty
|
||||||
@@ -687,6 +691,7 @@ struct ClientSettings {
|
|||||||
SoundSettings sound; ///< sound effect settings
|
SoundSettings sound; ///< sound effect settings
|
||||||
MusicSettings music; ///< settings related to music/sound
|
MusicSettings music; ///< settings related to music/sound
|
||||||
NewsSettings news_display; ///< news display settings.
|
NewsSettings news_display; ///< news display settings.
|
||||||
|
ScenarioSettings scenario; ///< scenario editor settings
|
||||||
};
|
};
|
||||||
|
|
||||||
/** The current settings for this game. */
|
/** The current settings for this game. */
|
||||||
|
Reference in New Issue
Block a user