Skip to Content
The Alchemy Project

struct MESSAGE

A message, one of the three in WIN_STATE.msgs, which types decoded text into a window a few characters a tick and runs its control codes. spacing[] holds each line's extra advance in 1/256 pixels: after every character in Japanese, after a space in the other editions except German, which takes none.

A message, one of the three in WIN_STATE.msgs, which types decoded text into a window a few characters a tick and runs its control codes. spacing[] holds each line's extra advance in 1/256 pixels: after every character in Japanese, after a space in the other editions except German, which takes none.

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]extra advance per line, 1/256 px (per char JP, per space non-DE)
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; TEXT_COLOR_WHITE at start
Uint16outlinea TXT_STYLE; TEXT_STYLE_PLAIN at start
Uint16lineSpacingTEXT_DEFAULT_LINE_SPACING at start
Uint16scrollFrameticks 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
Uint16compressLinescopied from spacing[3]; with WIN_STATE.textMode places glyphs y / 320

Description

A message, one of the three in WIN_STATE.msgs, which types decoded text into a window a few characters a tick and runs its control codes. spacing[] holds each line's extra advance in 1/256 pixels: after every character in Japanese, after a space in the other editions except German, which takes none.

struct MESSAGE

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

Definition at line 48 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]

extra advance per line, 1/256 px (per char JP, per space non-DE)

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; TEXT_COLOR_WHITE at start

outline

Uint16 outline

a TXT_STYLE; TEXT_STYLE_PLAIN at start

lineSpacing

Uint16 lineSpacing

TEXT_DEFAULT_LINE_SPACING at start

scrollFrame

Uint16 scrollFrame

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

compressLines

Uint16 compressLines

copied from spacing[3]; with WIN_STATE.textMode places glyphs y / 320