46 ErrorMessageData(
StringID summary_msg,
StringID detailed_msg, uint duration = 0,
int x = 0,
int y = 0,
const GRFFile *textref_stack_grffile = NULL, uint textref_stack_size = 0,
const uint32 *textref_stack = NULL);
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.
ErrorMessageData(const ErrorMessageData &data)
Copy the given data into our instance.
void SetDParam(uint n, uint64 v)
Set a error string parameter.
CompanyID face
Company belonging to the face being shown. INVALID_COMPANY if no face present.
void CopyOutDParams()
Copy error parameters from current DParams.
~ErrorMessageData()
Free all the strings.
uint32 textref_stack[16]
Values to put on the TextRefStack for the error message.
Critical errors, the MessageBox is shown in all cases.
void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x=0, int y=0, const GRFFile *textref_stack_grffile=NULL, uint textref_stack_size=0, const uint32 *textref_stack=NULL)
Display an error message in a window.
StringID detailed_msg
Detailed error message showed in second line. Can be INVALID_STRING_ID.
void ScheduleErrorMessage(const ErrorMessageData &data)
Schedule an error.
StringID summary_msg
General error message showed in first line. Must be valid.
const char * strings[20]
Copies of raw strings that were used.
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.
void UnshowCriticalError()
Unshow the critical error.
The data of the error message.
void ClearErrorMessages()
Clear all errors from the queue.
uint duration
Length of display of the message. 0 means forever,.
const GRFFile * textref_stack_grffile
NewGRF that filled the TextRefStack for the error message.
All geometry types in OpenTTD.
Coordinates of a point in 2D.
Types related to companies.
Types related to strings.
Used for DoCommand-like (and some non-fatal AI GUI) errors/information.
uint64 decode_params[20]
Parameters of the message strings.
Owner
Enum for all companies/owners.
Errors (eg. saving/loading failed)
Point position
Position of the error message window.
Dynamic data of a loaded NewGRF.
WarningLevel
Message severity/type.
void ShowFirstError()
Show the first error of the queue.