The data of the error message. More...
Public Member Functions | |
ErrorMessageData (const ErrorMessageData &data) | |
Copy the given data into our instace. | |
~ErrorMessageData () | |
Free all the strings. | |
ErrorMessageData (StringID summary_msg, StringID detailed_msg, uint duration, int x, int y, uint textref_stack_size, const uint32 *textref_stack) | |
Display an error message in a window. | |
Protected Attributes | |
uint | duration |
Length of display of the message. 0 means forever,. | |
uint64 | decode_params [20] |
Parameters of the message strings. | |
const char * | strings [20] |
Copies of raw strings that were used. | |
uint | textref_stack_size |
Number of uint32 values to put on the TextRefStack for the error message. | |
uint32 | textref_stack [16] |
Values to put on the TextRefStack for the error message. | |
StringID | summary_msg |
General error message showed in first line. Must be valid. | |
StringID | detailed_msg |
Detailed error message showed in second line. Can be INVALID_STRING_ID. | |
Point | position |
Position of the error message window. | |
CompanyID | face |
Company belonging to the face being shown. INVALID_COMPANY if no face present. |
The data of the error message.
Definition at line 70 of file error_gui.cpp.
ErrorMessageData::ErrorMessageData | ( | const ErrorMessageData & | data | ) | [inline] |
Copy the given data into our instace.
data | The data to copy. |
Definition at line 87 of file error_gui.cpp.
References decode_params, lengthof, and strings.
ErrorMessageData::~ErrorMessageData | ( | ) | [inline] |
Free all the strings.
Definition at line 99 of file error_gui.cpp.
ErrorMessageData::ErrorMessageData | ( | StringID | summary_msg, | |
StringID | detailed_msg, | |||
uint | duration, | |||
int | x, | |||
int | y, | |||
uint | textref_stack_size, | |||
const uint32 * | textref_stack | |||
) | [inline] |
Display an error message in a window.
summary_msg | General error message showed in first line. Must be valid. | |
detailed_msg | Detailed error message showed in second line. Can be INVALID_STRING_ID. | |
duration | The amount of time to show this error message. | |
x | World X position (TileVirtX) of the error location. Set both x and y to 0 to just center the message when there is no related error tile. | |
y | World Y position (TileVirtY) of the error location. Set both x and y to 0 to just center the message when there is no related error tile. | |
textref_stack_size | Number of uint32 values to put on the TextRefStack for the error message; 0 if the TextRefStack shall not be used. | |
textref_stack | Values to put on the TextRefStack. |
Definition at line 114 of file error_gui.cpp.
References CopyOutDParam(), decode_params, face, GetDParamX(), INVALID_COMPANY, INVALID_STRING_ID, lengthof, MemCpyT(), position, and strings.