diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:46:17 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:46:17 +0000 |
commit | bcbdc3933c4aeff90692a1059375b1f590e7c904 (patch) | |
tree | e88b733b9ea32dc510656e425a85b94c779323ee /src/news_type.h | |
parent | 285621eb9ab8218206c99f7338a740fd634e3061 (diff) | |
download | openttd-bcbdc3933c4aeff90692a1059375b1f590e7c904.tar.xz |
(svn r23600) -Codechange: link WC+number to a Widget, and the Widget to a Window class
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/news_type.h b/src/news_type.h index 0d7466cef..ea3cb7011 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -17,6 +17,19 @@ #include "strings_type.h" #include "sound_type.h" +/** Constants in the message options window. */ +enum MessageOptionsSpace { + MOS_WIDG_PER_SETTING = 4, ///< Number of widgets needed for each news category, starting at widget #WID_MO_START_OPTION. + + MOS_LEFT_EDGE = 6, ///< Number of pixels between left edge of the window and the options buttons column. + MOS_COLUMN_SPACING = 4, ///< Number of pixels between the buttons and the description columns. + MOS_RIGHT_EDGE = 6, ///< Number of pixels between right edge of the window and the options descriptions column. + MOS_BUTTON_SPACE = 10, ///< Additional space in the button with the option value (for better looks). + + MOS_ABOVE_GLOBAL_SETTINGS = 6, ///< Number of vertical pixels between the categories and the global options. + MOS_BOTTOM_EDGE = 6, ///< Number of pixels between bottom edge of the window and bottom of the global options. +}; + /** * Type of news. */ |