52 static inline void AddIndustryNewsItem(
StringID string,
NewsType type, IndustryID industry)
60 extern const NewsItem *_statusbar_news_item;
Thin news item. (Newspaper with headline and viewport)
Types related to the industry.
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted...
void DeleteIndustryNews(IndustryID iid)
Remove news regarding given industry.
Bits of news about vehicles of the company.
static void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
Adds a vehicle-advice news item.
void DeleteStationNews(StationID sid)
Remove news regarding given station so there are no 'unknown station now accepts Mail' or 'First trai...
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour) ...
Types related to stations.
void DeleteVehicleNews(VehicleID vid, StringID news)
Delete a news item type about a vehicle.
uint32 VehicleID
The type all our vehicle IDs have.
void InitNewsItemStructs()
Initialize the news-items data structures.
Bit value for disabling transparency.
NewsFlag
Various OR-able news-item flags.
Reference tile. Scroll to tile when clicking on the news.
Bit value for coloured news.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Company news item. (Newspaper with face)
uint32 TileIndex
The index/ID of a Tile.
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=NULL)
Add a new newsitem to be shown.
Company info (new companies, bankruptcy messages)
Types related to vehicles.
NewsReferenceType
References to objects in news.
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
Small news item. (Information window with text and viewport)
void DeleteInvalidEngineNews()
Remove engine announcements for invalid engines.
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted...
Bit value for enabling shading.
Information about a single item of news.
static void AddVehicleNewsItem(StringID string, NewsType type, VehicleID vehicle, StationID station=INVALID_STATION)
Adds a newsitem referencing a vehicle.