Go to the documentation of this file.
50 static inline void AddIndustryNewsItem(
StringID string,
NewsType type, IndustryID industry)
58 extern const NewsItem *_statusbar_news_item;
void DeleteIndustryNews(IndustryID iid)
Remove news regarding given industry.
@ NR_TILE
Reference tile. Scroll to tile when clicking on the news.
@ NF_THIN
Thin news item. (Newspaper with headline and viewport)
Information about a single item of news.
Container for any custom data that must be deleted after the news item has reached end-of-life.
void DeleteStationNews(StationID sid)
Remove news regarding given station so there are no 'unknown station now accepts Mail' or 'First trai...
void DeleteVehicleNews(VehicleID vid, StringID news)
Delete a news item type about a vehicle.
void InitNewsItemStructs()
Initialize the news-items data structures.
void AddNewsItem(StringID string, NewsType type, NewsFlag flags, NewsReferenceType reftype1=NR_NONE, uint32 ref1=UINT32_MAX, NewsReferenceType reftype2=NR_NONE, uint32 ref2=UINT32_MAX, const NewsAllocatedData *data=nullptr)
Add a new newsitem to be shown.
static void AddVehicleNewsItem(StringID string, NewsType type, VehicleID vehicle, StationID station=INVALID_STATION)
Adds a newsitem referencing a vehicle.
@ NF_VEHICLE_PARAM0
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour)
@ NR_NONE
Empty reference.
@ NF_NO_TRANSPARENT
Bit value for disabling transparency.
@ NT_ADVICE
Bits of news about vehicles of the company.
@ NF_INCOLOUR
Bit value for coloured news.
NewsReferenceType
References to objects in news.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
@ NR_INDUSTRY
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
void DeleteInvalidEngineNews()
Remove engine announcements for invalid engines.
@ NF_COMPANY
Company news item. (Newspaper with face)
uint32 VehicleID
The type all our vehicle IDs have.
static void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
Adds a vehicle-advice news item.
@ NR_VEHICLE
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
@ NF_SMALL
Small news item. (Information window with text and viewport)
@ NF_SHADE
Bit value for enabling shading.
NewsFlag
Various OR-able news-item flags.
@ NR_STATION
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted.
@ NT_COMPANY_INFO
Company info (new companies, bankruptcy messages)