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
| Name | Description | |
|---|---|---|
WINDOW * | window | the window typed into; NULL when free |
Uint16 | x | pen, 8.8 fixed-point pixels |
Uint16 | y | pen, 8.8 fixed-point pixels |
Uint16 | spacing [4] | extra advance per line, 1/256 px (per char JP, per space non-DE) |
Uint16 | line | line of the page, indexes spacing; at most 3 |
Uint16 | textIndex | next code in WIN_STATE.textBuf |
Uint16 | countdown | ticks left of a pause, a page wait or a swell |
Uint16 | colour | text colour; TEXT_COLOR_WHITE at start |
Uint16 | outline | a TXT_STYLE; TEXT_STYLE_PLAIN at start |
Uint16 | lineSpacing | TEXT_DEFAULT_LINE_SPACING at start |
Uint16 | scrollFrame | ticks left of the canvas scrolling up a line |
Uint16 | startX | pen x each new line returns to, 8.8 fixed-point pixels |
Uint16 | ended | 1 once a TEXT_END code is reached |
Uint16 | glyphDelay | ticks to wait after a glyph while no button is held |
Uint16 | flags | nonzero keeps the window's size from page to page |
Uint16 | compressLines | copied 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