Go to the documentation of this file.
45 static inline void AddTileNewsItem(
StringID string,
NewsType type,
TileIndex tile,
void *free_data =
nullptr, StationID station = INVALID_STATION)
50 static inline void AddIndustryNewsItem(
StringID string,
NewsType type, IndustryID industry)
58 extern const NewsItem *_statusbar_news_item;
uint32 TileIndex
The index/ID of a Tile.
void DeleteIndustryNews(IndustryID iid)
Remove news regarding given industry.
@ NF_THIN
Thin news item. (Newspaper with headline and viewport)
Information about a single item of news.
@ NR_STATION
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted.
@ NT_ADVICE
Bits of news about vehicles of the company.
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.
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)
@ NF_NO_TRANSPARENT
Bit value for disabling transparency.
@ NF_INCOLOUR
Bit value for coloured news.
@ NR_NONE
Empty reference.
NewsReferenceType
References to objects in news.
@ NR_TILE
Reference tile. Scroll to tile when clicking on the news.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
void DeleteInvalidEngineNews()
Remove engine announcements for invalid engines.
@ NF_COMPANY
Company news item. (Newspaper with face)
@ NT_COMPANY_INFO
Company info (new companies, bankruptcy messages)
@ NR_VEHICLE
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
uint32 VehicleID
The type all our vehicle IDs have.
void AddNewsItem(StringID string, NewsType type, NewsFlag flags, NewsReferenceType reftype1=NR_NONE, uint32 ref1=UINT32_MAX, NewsReferenceType reftype2=NR_NONE, uint32 ref2=UINT32_MAX, void *free_data=nullptr)
Add a new newsitem to be shown.
static void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
Adds a vehicle-advice news item.
@ 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_INDUSTRY
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...