summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-02 16:52:21 +0000
committeralberth <alberth@openttd.org>2009-05-02 16:52:21 +0000
commit1728dd8046dbd06ae35c2b14282d4b3767b392e3 (patch)
tree6a33c13727d5bb00027a9b19aeb7fb80aff91701 /src
parent551e3776148337e3c4cb12234dee5669becb52f3 (diff)
downloadopenttd-1728dd8046dbd06ae35c2b14282d4b3767b392e3.tar.xz
(svn r16204) -Codechange: Completing widget numbers of news settings window.
Diffstat (limited to 'src')
-rw-r--r--src/news_gui.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 01dd93807..2d880ed91 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -817,10 +817,17 @@ void ShowMessageHistory()
/** News settings window widget offset constants */
-enum {
- WIDGET_NEWSOPT_DROP_SUMMARY = 4, ///< Dropdown that adjusts at once the level for all settings
- WIDGET_NEWSOPT_SOUNDTICKER = 6, ///< Button activating sound on events
- WIDGET_NEWSOPT_START_OPTION = 8, ///< First widget that is part of a group [<] .. [.]
+enum NewsSettingsWidgets {
+ WIDGET_NEWSOPT_CLOSEBOX, ///< Close box.
+ WIDGET_NEWSOPT_CAPTION, ///< Caption.
+ WIDGET_NEWSOPT_BACKGROUND, ///< Background widget.
+ WIDGET_NEWSOPT_LABEL, ///< Top label.
+ WIDGET_NEWSOPT_DROP_SUMMARY, ///< Dropdown that adjusts at once the level for all settings.
+ WIDGET_NEWSOPT_LABEL_SUMMARY, ///< Label of the summary drop down.
+ WIDGET_NEWSOPT_SOUNDTICKER, ///< Button for (de)activating sound on events.
+ WIDGET_NEWSOPT_SOUNDTICKER_LABEL, ///< Label of the soundticker button,
+
+ WIDGET_NEWSOPT_START_OPTION, ///< First widget that is part of a group [<] .. [.]
};
static const StringID _message_opt[] = {STR_OFF, STR_SUMMARY, STR_FULL, INVALID_STRING_ID};