Common return value for all commands.
Container for an encoded string, created by GetEncodedString.
The data of the error message.
bool HasFace() const
Check whether error window shall display a company manager face.
CompanyID company
Company belonging to the face being shown. CompanyID::Invalid() if no face present.
Point position
Position of the error message window.
EncodedString detailed_msg
Detailed error message showed in second line. Can be INVALID_STRING_ID.
EncodedString extra_msg
Extra error message shown in third line. Can be INVALID_STRING_ID.
EncodedString 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.
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.
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.
void ShowFirstError()
Show the first error of the queue.
void ShowErrorMessage(EncodedString &&summary_msg, int x, int y, const CommandCost &cc)
Display an error message in a window.
All geometry types in OpenTTD.
Types related to strings.
Dynamic data of a loaded NewGRF.
Coordinates of a point in 2D.