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 |
const int[] |
Functions#
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
Deprecated: Not implemented.
MessageFlag MSGFLAG_RIGHT = 3
Deprecated: Not implemented.
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
enum MessageSegmentType: π Source
MessageSegmentType MSG_SEGMENT_TYPE_INVALID = 0
MessageSegmentType MSG_SEGMENT_TYPE_LITERAL = 1
MessageSegmentType MSG_SEGMENT_TYPE_COMMAND = 2
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.
index MessageFlag (MSGFLAG_)
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
deprecated_getter TextHeight
Returns the height, in pixels, of the message text - not including line wrap / breaks.
Note: this is busted in the presence of commands, escaped characters, or excessive whitespace.
const int TextWidth π Source
deprecated_getter TextWidth
Returns the width, in pixels, of the message text - not including line wrap / breaks.
Note: this is busted in the presence of commands, escaped characters, or excessive whitespace.
The length, in bytes, of the underlying message data.
Note: in the presence of commands or escaped characters this is not the same as the displayed number of characters. To get the true character length, see Segments[].
Deprecated: Unused! Does nothing!
Deprecated: Use Flags[] instead!
const int[] Segments π Source
Added in version 3.0.
The result of parsing this string for SCCs and escaped characters.
The data returned in the array is formatted like this:
segment type: MessageSegmentType (MSG_SEGMENT_TYPE_)
For text literals, there are two more values: start position in raw string, length. For commands, there are a varying number of values: start position, length, command code, # of args, β¦args
For example, the string βHello TextColor12Worldβ returns 3 segments:
3 numbers: MSG_SEGMENT_TYPE_LITERAL 0 6 (
"Hello ")7 numbers: MSG_SEGMENT_TYPE_COMMAND 6 12 1 2 1 2 (
\TextColor\1\2\<space>)3 numbers: MSG_SEGMENT_TYPE_LITERAL 18 5 (
"World")
Function descriptions#
void Get(char32[] str) π Source
Loads the raw message data into the provided string buffer.
void Set(char32[] str) π Source
Sets the raw message data to the provided string.
Added in version 3.0.