Skip to Content
The Alchemy Project

struct MESSAGE

A message, one of three, which types decoded text into a window a few characters a tick and runs its control codes.

Declared in window.h.

Fields

NameDescription
WINDOW *windowthe window typed into; NULL when free
Uint16xpen, 8.8 fixed-point pixels
Uint16ypen, 8.8 fixed-point pixels
Uint16spacing [4]Each line's extra advance in 1/256 pixels: after every character in Japanese, after every space in the others.
Uint16lineline of the page, indexes spacing; at most 3
Uint16textIndexnext code in WIN_STATE.textBuf
Uint16countdownticks left of a pause, a page wait or a swell
Uint16colourtext colour; 15 by default
Uint16outlineoutline colour; 0 for none
Uint16lineSpacing10 by default
Uint16transitionticks left of the canvas scrolling up a line
Uint16startXpen x each new line returns to, 8.8 fixed-point pixels
Uint16ended1 once a TEXT_END code is reached
Uint16glyphDelayticks to wait after a glyph while no button is held
Uint16flagsnonzero keeps the window's size from page to page
Uint16unused

Description

A message, one of three, which types decoded text into a window a few characters a tick and runs its control codes.

struct MESSAGE

Referenced by mnBattleMessageContinue(), mnBattleMessageOpen(), mnDjinnMenuShowHelp(), mnMessageAllTyped(), mnMessageApplyStyle(), mnMessageCloseFinishedWindows(), mnMessageResetIdle(), mnMessageStart(), mnMessageType(), mnMessageUpdateAll(), mnTextCheckPauseSkipped(), mnTextCheckTextDismissed(), mnTextStartCanvasScroll(), mnWindowCloseAll() and mnWindowStepSwellEffect().

Definition at line 58 of file window.h.

Fields in detail

window

WINDOW *window

the window typed into; NULL when free

x

Uint16 x

pen, 8.8 fixed-point pixels

y

Uint16 y

pen, 8.8 fixed-point pixels

spacing

Uint16 spacing[4]

Each line's extra advance in 1/256 pixels: after every character in Japanese, after every space in the others.

line

Uint16 line

line of the page, indexes spacing; at most 3

textIndex

Uint16 textIndex

next code in WIN_STATE.textBuf

countdown

Uint16 countdown

ticks left of a pause, a page wait or a swell

colour

Uint16 colour

text colour; 15 by default

outline

Uint16 outline

outline colour; 0 for none

lineSpacing

Uint16 lineSpacing

10 by default

transition

Uint16 transition

ticks left of the canvas scrolling up a line

startX

Uint16 startX

pen x each new line returns to, 8.8 fixed-point pixels

ended

Uint16 ended

1 once a TEXT_END code is reached

glyphDelay

Uint16 glyphDelay

ticks to wait after a glyph while no button is held

flags

Uint16 flags

nonzero keeps the window's size from page to page

unused

Uint16 unused