OpenTTD Source
12.0-beta2
|
Point position
Position of the error message window.
void ShowFirstError()
Show the first error of the queue.
const GRFFile * textref_stack_grffile
NewGRF that filled the TextRefStack for the error message.
uint textref_stack_size
Number of uint32 values to put on the TextRefStack for the error message.
void SetDParamStr(uint n, const char *str)
Set a rawstring parameter.
WarningLevel
Message severity/type.
@ WL_WARNING
Other information.
uint64 decode_params[20]
Parameters of the message strings.
~ErrorMessageData()
Free all the strings.
void CopyOutDParams()
Copy error parameters from current DParams.
Owner
Enum for all companies/owners.
void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x=0, int y=0, const GRFFile *textref_stack_grffile=nullptr, uint textref_stack_size=0, const uint32 *textref_stack=nullptr)
Display an error message in a window.
bool HideActiveErrorMessage()
Close active error message window.
void ClearErrorMessages()
Clear all errors from the queue.
uint32 textref_stack[16]
Values to put on the TextRefStack for the error message.
void SetDParam(uint n, uint64 v)
Set a error string parameter.
@ WL_INFO
Used for DoCommand-like (and some non-fatal AI GUI) errors/information.
The data of the error message.
Coordinates of a point in 2D.
CompanyID face
Company belonging to the face being shown. INVALID_COMPANY if no face present.
GUITimer display_timer
Timer before closing the message.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
bool HasFace() const
Check whether error window shall display a company manager face.
StringID detailed_msg
Detailed error message showed in second line. Can be INVALID_STRING_ID.
void UnshowCriticalError()
Unshow the critical error.
void ScheduleErrorMessage(const ErrorMessageData &data)
Schedule an error.
@ WL_ERROR
Errors (eg. saving/loading failed)
const char * strings[20]
Copies of raw strings that were used.
@ INVALID_COMPANY
An invalid company.
Dynamic data of a loaded NewGRF.
@ WL_CRITICAL
Critical errors, the MessageBox is shown in all cases.
StringID summary_msg
General error message showed in first line. Must be valid.
ErrorMessageData(const ErrorMessageData &data)
Copy the given data into our instance.