diff -r 7856e972f8aa -r 7798ae816af8 src/news_type.h --- a/src/news_type.h Mon Apr 21 20:52:54 2008 +0000 +++ b/src/news_type.h Mon Apr 21 21:15:50 2008 +0000 @@ -8,6 +8,7 @@ #include "window_type.h" #include "date_type.h" #include "strings_type.h" +#include "sound_type.h" /** * Type of news. @@ -75,6 +76,25 @@ NB_BNEWCOMPANY = (4 << 4), ///< A new company has been started }; +/** + * News display options + */ +enum NewsDisplay { + ND_OFF, ///< Only show a reminder in the status bar + ND_SUMMARY, ///< Show ticker + ND_FULL, ///< Show newspaper +}; + +/** + * Per-NewsType data + */ +struct NewsTypeData { + const char *const name; ///< Name + const byte age; ///< Maximum age of news items (in days) + const SoundFx sound; ///< Sound + NewsDisplay display; ///< Display mode (off, summary, full) +}; + struct NewsItem { StringID string_id; ///< Message text (sometimes also used for storing other info) uint16 duration; ///< Remaining time for showing this news message