151 free(this->free_data);
164 char company_name[64];
165 char president_name[64];
166 char other_company_name[64];
171 void FillData(
const struct Company *c,
const struct Company *other = NULL);
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
First vehicle arrived for competitor.
News about subsidies (announcements, expirations, acceptance)
Thin news item. (Newspaper with headline and viewport)
Reference station. Scroll to station when clicking on the news. Delete news when station is deleted...
Additional space in the button with the option value (for better looks).
Number of pixels between the buttons and the description columns.
NewsReferenceType reftype2
Type of ref2.
const char *const name
Name.
Bits of news about vehicles of the company.
Number of pixels between right edge of the window and the options descriptions column.
Other industry production changes.
NewsTypeData(const char *name, byte age, SoundFx sound)
Construct this entry.
First bit for window layout.
New vehicle has become available.
NewsReferenceType reftype1
Type of ref1.
Type (helpers) for enums.
Bit value for specifying that string param 0 contains a vehicle ID. (special autoreplace behaviour) ...
void * free_data
Data to be freed when the news item has reached its end.
Date date
Date of the news.
Only show a reminder in the status bar.
StringID string_id
Message text.
uint32 ref1
Reference 1 to some object: Used for a possible viewport, scrolling after clicking on the news...
Number of pixels between left edge of the window and the options buttons column.
NewsDisplay
News display options.
General news (from towns)
Bit value for disabling transparency.
NewsFlag
Various OR-able news-item flags.
Reference tile. Scroll to tile when clicking on the news.
Normal news item. (Newspaper with text only)
NewsItem * prev
Previous news item.
uint32 ref2
Reference 2 to some object: Used for scrolling after clicking on the news, and for deleteing the news...
Bit value for coloured news.
News item is shown in colour (otherwise it is shown in black & white).
Number of vertical pixels between the categories and the global options.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
NewsDisplay GetDisplay() const
Return the news display option.
Company news item. (Newspaper with face)
Number of bits for window layout.
NewsItem * next
Next news item.
Number of pixels between bottom edge of the window and bottom of the global options.
Reference town. Scroll to town when clicking on the news.
Production changes of industry serviced by local company.
Company info (new companies, bankruptcy messages)
First vehicle arrived for company.
const SoundFx sound
Sound.
A type of cargo is (no longer) accepted.
Number of widgets needed for each news category, starting at widget #WID_MO_START_OPTION.
NewsFlag flags
NewsFlags bits.
An accident or disaster has occurred.
News item disables transparency in the viewport.
Types related to strings.
Types related to the dates in OpenTTD.
NewsReferenceType
References to objects in news.
String param 0 contains a vehicle ID. (special autoreplace behaviour)
int32 Date
The type to store our dates in.
static void free(const void *ptr)
Version of the standard free that accepts const pointers.
Reference industry. Scroll to industry when clicking on the news. Delete news when industry is delete...
NewsType type
Type of the news.
Small news item. (Information window with text and viewport)
MessageOptionsSpace
Constants in the message options window.
Production changes of industry serviced by competitor(s)
News item uses shaded colours.
Vehicle news item. (new engine available)
const byte age
Maximum age of news items (in days)
Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted...
Bit value for enabling shading.
SoundFx
Sound effects from baseset.
Information about a single item of news.
Economic changes (recession, industry up/dowm)