OpenTTD Source
20240917-master-g9ab0a47812
|
void DeleteIndustryNews(IndustryID iid)
Remove news regarding given industry.
@ NF_THIN
Thin news item. (Newspaper with headline and viewport)
@ NR_VEHICLE
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
@ NR_TILE
Reference tile. Scroll to tile when clicking on the news.
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.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
void DeleteStationNews(StationID sid)
Remove news regarding given station so there are no 'unknown station now accepts Mail' or 'First trai...
void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
Adds a vehicle-advice news item.
@ NT_ADVICE
Bits of news about vehicles of the company.
void DeleteVehicleNews(VehicleID vid, StringID news)
Delete a news item type about a vehicle.
void InitNewsItemStructs()
Initialize the news-items data structures.
@ NF_VEHICLE_PARAM0
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour)
NewsReferenceType
References to objects in news.
@ NF_NO_TRANSPARENT
Bit value for disabling transparency.
@ NR_STATION
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted.
@ NF_INCOLOUR
Bit value for coloured news.
@ NT_COMPANY_INFO
Company info (new companies, bankruptcy messages)
uint32_t VehicleID
The type all our vehicle IDs have.
@ NR_INDUSTRY
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
void AddVehicleNewsItem(StringID string, NewsType type, VehicleID vehicle, StationID station=INVALID_STATION)
Adds a newsitem referencing a vehicle.
const NewsItem * GetStatusbarNews()
Get pointer to the current status bar news item.
void DeleteInvalidEngineNews()
Remove engine announcements for invalid engines.
@ NF_COMPANY
Company news item. (Newspaper with face)
void AddNewsItem(StringID string, NewsType type, NewsFlag flags, NewsReferenceType reftype1=NR_NONE, uint32_t ref1=UINT32_MAX, NewsReferenceType reftype2=NR_NONE, uint32_t ref2=UINT32_MAX, const NewsAllocatedData *data=nullptr)
Add a new newsitem to be shown.
@ 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_NONE
Empty reference.