(svn r24843) -Codechange: Move news display options into the general settings framework. (based on patch by eagle_rainbow)

This commit is contained in:
frosch
2012-12-23 21:07:12 +00:00
parent 647ee0de64
commit 21b43b63f5
7 changed files with 193 additions and 124 deletions

View File

@@ -113,24 +113,21 @@ 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)
const StringID description; ///< Description of the news type in news settings window
/**
* Construct this entry.
* @param name The name of the type.
* @param age The maximum age for these messages.
* @param sound The sound to play.
* @param description The description for this type of messages.
*/
NewsTypeData(const char *name, byte age, SoundFx sound, NewsDisplay display, StringID description) :
NewsTypeData(const char *name, byte age, SoundFx sound) :
name(name),
age(age),
sound(sound),
display(display),
description(description)
sound(sound)
{
}
NewsDisplay GetDisplay() const;
};
/** Information about a single item of news. */