messagedata#
For accessing and editing message strings (Quests > Strings
). Load with Game->LoadMessageData().
Tutorials#
Variables#
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
bool[] |
|
int[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
const int |
|
const int |
|
const int |
|
bool |
Transparent deprecated |
int |
Flag deprecated |
Functions#
void |
Get(char32[] str) |
void |
Set(char32[] str) |
int |
TextHeight() deprecated |
int |
TextWidth() deprecated |
Enumerations#
Used with messagedata::Flags[].
MessageFlag MSGFLAG_WRAP = 0
If the text wraps around the bounding box
MessageFlag MSGFLAG_CONT = 1
If the message is the continuation of a previous one
MessageFlag MSGFLAG_CENTER = 2
Reserved
MessageFlag MSGFLAG_RIGHT = 3
Reserved
MessageFlag MSGFLAG_FULLTILE = 4
If the background tile should be treated as the UL of a tile block,
MessageFlag MSGFLAG_TRANS_BG = 5
If the background should be translucent
MessageFlag MSGFLAG_TRANS_FG = 6
If the text should be translucent
Variable descriptions#
The βnextβ message, which will be automatically displayed when this message finishes.
The tile used for the background.
The CSet to draw the background in.
value
Font
The font to display the message in.
The X position of the message box.
The Y position of the message box.
The width of the message box, in pixels.
The height of the message box, in pixels.
The SFX to play when a new character is drawn (including spaces).
The list position of the messagedata as it is displayed in ZQ.
The spacing between lines/characters, in pixels.
The spacing between lines/characters, in pixels.
The margins, in pixels, from each edge of the text box.
Valid indices: DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT
The upper-left corner tile of the portrait. If set to 0, no portrait will be displayed.
The CSet to draw the portrait in
The X/Y position of the portrait.
The X/Y position of the portrait.
int PortraitTileWidth π Source
The tile width/height of the portrait. Max 16 and 14 respectively. If
either is 0
, no portrait will be displayed.
int PortraitTileHeight π Source
The tile width/height of the portrait. Max 16 and 14 respectively. If
either is 0
, no portrait will be displayed.
const int TextHeight π Source
Returns the height, in pixels, of the message text - not including line wrap / breaks.
const int TextWidth π Source
Returns the width, in pixels, of the message text - not including line wrap / breaks.
The length, in characters, of the message.
Deprecated: Unused! Does nothing!
Deprecated: Use Flags[] instead!
Function descriptions#
void Get(char32[] str) π Source
Loads the message into the provided string buffer.
void Set(char32[] str) π Source
Sets the message to the provided string.
Returns the width/height, in pixels, of the message text - not including line wrap / breaks.
Deprecated: Use TextHeight instead!
Returns the width/height, in pixels, of the message text - not including line wrap / breaks.
Deprecated: Use TextWidth instead!