messagedata#

For accessing and editing message strings. Load with Game->LoadMessageData().

Variables#

int

Next

int

Tile

int

CSet

int

Font

int

X

int

Y

int

Width

int

Height

int

Sound

int

ListPosition

int

VSpace

int

HSpace

bool[]

Flags

int[]

Margins

int

PortraitTile

int

PortraitCSet

int

PortraitX

int

PortraitY

int

PortraitTileWidth

int

PortraitTileHeight

const int

TextHeight

const int

TextWidth

const int

Length

bool

Transparent deprecated

int

Flag deprecated

Functions#

void

Get(char32[] str)

void

Set(char32[] str)

int

TextHeight() deprecated

int

TextWidth() deprecated

Variable descriptions#

int Next πŸ”— Source

The β€˜next’ message, which will be automatically displayed when this message finishes.


int Tile πŸ”— Source

The tile used for the background.


int CSet πŸ”— Source

The CSet to draw the background in.


int Font πŸ”— Source

The font to display the message in. Use the FONT_ constants for this value.


int X πŸ”— Source

The X position of the message box.


int Y πŸ”— Source

The Y position of the message box.


int Width πŸ”— Source

The width of the message box, in pixels.


int Height πŸ”— Source

The height of the message box, in pixels.


int Sound πŸ”— Source

The SFX to play when a new character is drawn (including spaces).


int ListPosition πŸ”— Source

The list position of the messagedata as it is displayed in ZQ.


int VSpace πŸ”— Source

The spacing between lines/characters, in pixels.


int HSpace πŸ”— Source

The spacing between lines/characters, in pixels.


bool[] Flags πŸ”— Source

A set of flags for the messagedata.


int[] Margins πŸ”— Source

The margins, in pixels, from each edge of the text box.

Valid indices: DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT


int PortraitTile πŸ”— Source

The upper-left corner tile of the portrait. If set to 0, no portrait will be displayed.


int PortraitCSet πŸ”— Source

The CSet to draw the portrait in


int PortraitX πŸ”— Source

The X/Y position of the portrait.


int PortraitY πŸ”— Source

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.


const int Length πŸ”— Source

The length, in characters, of the message.


bool Transparent πŸ”— Source

Warning

Deprecated! Unused! Does nothing!


int Flag πŸ”— Source

Warning

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.


int TextHeight() πŸ”— Source

Returns the width/height, in pixels, of the message text - not including line wrap / breaks.

Warning

Deprecated! Use TextHeight instead!


int TextWidth() πŸ”— Source

Returns the width/height, in pixels, of the message text - not including line wrap / breaks.

Warning

Deprecated! Use TextWidth instead!