mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Settings: Add scenario editor section
This commit is contained in:
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…
Reference in New Issue
Block a user