diff options
author | frosch <frosch@openttd.org> | 2012-12-23 21:08:02 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-23 21:08:02 +0000 |
commit | bc84f30fc12d01230b9cb4d091fd03186fa83f03 (patch) | |
tree | 047b938f1cb02bcd88aae7f2c9b7afc950c748a1 /src/settings_gui.cpp | |
parent | 21b43b63f5e936dc284af0e635879ea0c0ec2d66 (diff) | |
download | openttd-bc84f30fc12d01230b9cb4d091fd03186fa83f03.tar.xz |
(svn r24844) -Add: News display settings to adv. settings window.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 7a9d791ad..0287473e4 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1458,9 +1458,30 @@ static SettingEntry _settings_ui_interaction[] = { /** Interaction sub-page */ static SettingsPage _settings_ui_interaction_page = {_settings_ui_interaction, lengthof(_settings_ui_interaction)}; +static SettingEntry _settings_ui_news[] = { + SettingEntry("news_display.arrival_player"), + SettingEntry("news_display.arrival_other"), + SettingEntry("news_display.accident"), + SettingEntry("news_display.company_info"), + SettingEntry("news_display.open"), + SettingEntry("news_display.close"), + SettingEntry("news_display.economy"), + SettingEntry("news_display.production_player"), + SettingEntry("news_display.production_other"), + SettingEntry("news_display.production_nobody"), + SettingEntry("news_display.advice"), + SettingEntry("news_display.new_vehicles"), + SettingEntry("news_display.acceptance"), + SettingEntry("news_display.subsidies"), + SettingEntry("news_display.general"), +}; +/** News sub-page */ +static SettingsPage _settings_ui_news_page = {_settings_ui_news, lengthof(_settings_ui_news)}; + static SettingEntry _settings_ui[] = { SettingEntry(&_settings_ui_display_page, STR_CONFIG_SETTING_DISPLAY_OPTIONS), SettingEntry(&_settings_ui_interaction_page, STR_CONFIG_SETTING_INTERACTION), + SettingEntry(&_settings_ui_news_page, STR_CONFIG_SETTING_NEWS), SettingEntry("gui.show_finances"), SettingEntry("gui.errmsg_duration"), SettingEntry("gui.hover_delay"), |