Alchemy
Loading...
Searching...
No Matches

typing.c File Reference

The per-frame message update: typing text and running its control codes. More...

Go to the source code of this file.

Macros

#define CANVAS_COLUMNS   30
#define CANVAS_COLUMN_WORDS   32
#define CANVAS_KEPT_ROWS   8
 the top 8 pixel rows stay put

Enumerations

enum  { CHANNEL_STEP_RUNNING = 0 , CHANNEL_STEP_ENDED = 8 , CHANNEL_STEP_CLOSE = 9 }
 What UiWork_StepChannelScript reports. More...

Functions

void UiText_ScrollCanvasUp (s32 step)
 Scrolls the battle message canvas up by 6 pixel rows per step, below its top 8 rows, and clears the rows this uncovers.
void UiWork_ProcessRenderChannels (void)
 The per-frame message update: each message channel whose window is fully open runs its window effect or types more text, and on the text's end marks the window done (state 1) or closes it.
s32 UiWork_StepChannelScript (struct UiChannelSlot *channel)
 Types one frame's share of a channel's text: runs control codes (new line, new page, pauses, colours) and draws characters, playing the speaker's voice blips.

Detailed Description

The per-frame message update: typing text and running its control codes.

Part of window.c, the window object, compiled only through it.

Definition in file typing.c.

Macro Definition Documentation

◆ CANVAS_COLUMNS

#define CANVAS_COLUMNS   30

Definition at line 9 of file typing.c.

Referenced by UiText_ScrollCanvasUp().

◆ CANVAS_COLUMN_WORDS

#define CANVAS_COLUMN_WORDS   32

Definition at line 10 of file typing.c.

Referenced by UiText_ScrollCanvasUp().

◆ CANVAS_KEPT_ROWS

#define CANVAS_KEPT_ROWS   8

the top 8 pixel rows stay put

Definition at line 11 of file typing.c.

Referenced by UiText_ScrollCanvasUp().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

What UiWork_StepChannelScript reports.

Enumerator
CHANNEL_STEP_RUNNING 

the text goes on next frame

CHANNEL_STEP_ENDED 

the text has ended; the window stays open

CHANNEL_STEP_CLOSE 

the text is dismissed: close the window

Definition at line 31 of file typing.c.

Function Documentation

◆ UiText_ScrollCanvasUp()

void UiText_ScrollCanvasUp ( s32 step)

Scrolls the battle message canvas up by 6 pixel rows per step, below its top 8 rows, and clears the rows this uncovers.

Definition at line 15 of file typing.c.

Referenced by UiText_ScrollCanvasUp(), and UiWork_StepChannelScript().

◆ UiWork_ProcessRenderChannels()

void UiWork_ProcessRenderChannels ( void )

The per-frame message update: each message channel whose window is fully open runs its window effect or types more text, and on the text's end marks the window done (state 1) or closes it.

Definition at line 40 of file typing.c.

Referenced by UiWork_ProcessAll(), and UiWork_ProcessRenderChannels().

◆ UiWork_StepChannelScript()

s32 UiWork_StepChannelScript ( struct UiChannelSlot * channel)

Types one frame's share of a channel's text: runs control codes (new line, new page, pauses, colours) and draws characters, playing the speaker's voice blips.

Returns a CHANNEL_STEP_ result.

Definition at line 91 of file typing.c.

Referenced by UiWork_ProcessRenderChannels(), and UiWork_StepChannelScript().