20inline void AddCompanyNewsItem(
StringID string, std::unique_ptr<CompanyNewsInformation> cni)
45inline void AddTileNewsItem(
StringID string,
NewsType type,
TileIndex tile, std::unique_ptr<NewsAllocatedData> &&data =
nullptr, StationID station = INVALID_STATION)
50inline void AddIndustryNewsItem(
StringID string,
NewsType type, IndustryID industry, std::unique_ptr<NewsAllocatedData> &&data =
nullptr)
Types related to the industry.
void DeleteVehicleNews(VehicleID vid, StringID news)
Delete a news item type about a vehicle.
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, std::unique_ptr< NewsAllocatedData > &&data=nullptr)
Add a new newsitem to be shown.
void DeleteIndustryNews(IndustryID iid)
Remove news regarding given industry.
void DeleteStationNews(StationID sid)
Remove news regarding given station so there are no 'unknown station now accepts Mail' or 'First trai...
void DeleteInvalidEngineNews()
Remove engine announcements for invalid engines.
void AddVehicleAdviceNewsItem(StringID string, VehicleID vehicle)
Adds a vehicle-advice news item.
void InitNewsItemStructs()
Initialize the news-items data structures.
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.
@ NT_ADVICE
Bits of news about vehicles of the company.
@ NT_COMPANY_INFO
Company info (new companies, bankruptcy messages)
NewsReferenceType
References to objects in news.
@ NR_TILE
Reference tile. Scroll to tile when clicking on the news.
@ NR_STATION
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted.
@ NR_INDUSTRY
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
@ NR_NONE
Empty reference.
@ NR_VEHICLE
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
NewsFlag
Various OR-able news-item flags.
@ NF_NO_TRANSPARENT
Bit value for disabling transparency.
@ NF_SHADE
Bit value for enabling shading.
@ NF_VEHICLE_PARAM0
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour)
@ NF_THIN
Thin news item. (Newspaper with headline and viewport)
@ NF_COMPANY
Company news item. (Newspaper with face)
@ NF_INCOLOUR
Bit value for coloured news.
@ NF_SMALL
Small news item. (Information window with text and viewport)
Types related to stations.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Information about a single item of news.
Types related to vehicles.
uint32_t VehicleID
The type all our vehicle IDs have.