|
OpenTTD Source
14.0-beta3
|
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.
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.
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)
@ 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_t VehicleID
The type all our vehicle IDs have.
void AddVehicleNewsItem(StringID string, NewsType type, VehicleID vehicle, StationID station=INVALID_STATION)
Adds a newsitem referencing a vehicle.
@ 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)
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.
@ 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)