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
| 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] | Each line's extra advance in 1/256 pixels: after every character in Japanese, after every space in the others. |
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; 15 by default |
Uint16 | outline | outline colour; 0 for none |
Uint16 | lineSpacing | 10 by default |
Uint16 | transition | 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 | unused |
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