diff options
author | alberth <alberth@openttd.org> | 2009-09-02 20:49:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-09-02 20:49:25 +0000 |
commit | 96617e804c869e3be671e345e5d24ef9b4e312e8 (patch) | |
tree | ec4966c3cab0e39a6b06d3101184146c96b506bd /src/news_type.h | |
parent | 92321eb204a2e2b955b19597b8ef79e0e3d503b3 (diff) | |
download | openttd-96617e804c869e3be671e345e5d24ef9b4e312e8.tar.xz |
(svn r17394) -Codechange: Add news flags for viewport settings.
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/news_type.h b/src/news_type.h index e1d600096..f7210c8a7 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -97,8 +97,14 @@ enum NewsReferenceType { * @note #NF_INCOLOUR is set automatically if needed. */ enum NewsFlag { - NF_NONE = 0, ///< No flag is set. - NF_INCOLOUR = 1 << 0, ///< Show the newsmessage in colour, otherwise it defaults to black & white. + NFB_INCOLOUR = 0, ///< News item is shown in colour (otherwise it is shown in black & white). + NFB_NO_TRANSPARENT = 1, ///< News item disables transparency in the viewport. + NFB_SHADE = 2, ///< News item uses shaded colours. + + NF_NONE = 0, ///< No flag is set. + NF_INCOLOUR = 1 << 0, ///< Bit value for coloured news. + NF_NO_TRANSPARENT = 1 << 1, ///< Bit value for disabling transparency. + NF_SHADE = 1 << 2, ///< Bit value for enabling shading. }; DECLARE_ENUM_AS_BIT_SET(NewsFlag); |