34 std::vector<StringParameterData>
params;
Common return value for all commands.
The data of the error message.
StringID extra_msg
Extra error message shown in third line. Can be INVALID_STRING_ID.
bool HasFace() const
Check whether error window shall display a company manager face.
CompanyID face
Company belonging to the face being shown. INVALID_COMPANY if no face present.
uint textref_stack_size
Number of uint32_t values to put on the TextRefStack for the error message.
void CopyOutDParams()
Copy error parameters from current DParams.
Point position
Position of the error message window.
const GRFFile * textref_stack_grffile
NewGRF that filled the TextRefStack for the error message.
void SetDParam(uint n, uint64_t v)
Set a error string parameter.
ErrorMessageData(const ErrorMessageData &data)
Copy the given data into our instance.
void SetDParamStr(uint n, const char *str)
Set a rawstring parameter.
uint32_t textref_stack[16]
Values to put on the TextRefStack for the error message.
StringID detailed_msg
Detailed error message showed in second line. Can be INVALID_STRING_ID.
std::vector< StringParameterData > params
Backup of parameters of the message strings.
StringID summary_msg
General error message showed in first line. Must be valid.
bool is_critical
Whether the error message is critical.
Types related to commands.
Types related to companies.
Owner
Enum for all companies/owners.
@ INVALID_COMPANY
An invalid company.
void UnshowCriticalError()
Unshow the critical error.
void ClearErrorMessages()
Clear all errors from the queue.
std::list< ErrorMessageData > ErrorList
Define a queue with errors.
void ScheduleErrorMessage(ErrorList &datas)
Schedule a list of errors.
bool HideActiveErrorMessage()
Close active error message window.
void ShowErrorMessage(StringID summary_msg, int x, int y, CommandCost cc)
Display an error message in a window.
void ShowFirstError()
Show the first error of the queue.
WarningLevel
Message severity/type.
@ WL_WARNING
Other information.
@ WL_ERROR
Errors (eg. saving/loading failed)
@ WL_CRITICAL
Critical errors, the MessageBox is shown in all cases.
@ WL_INFO
Used for DoCommand-like (and some non-fatal AI GUI) errors/information.
All geometry types in OpenTTD.
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
Dynamic data of a loaded NewGRF.
Coordinates of a point in 2D.