tango_processing.zh#
Variables#
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
Functions#
void |
|
void |
|
void |
|
void |
|
void |
__Tango_UpdateActiveSlot(int speed) |
void |
__Tango_UpdateAdvancing(int speed) |
void |
__Tango_UpdateFinishedSlot(int flags, int speed) |
void |
__Tango_Process(int speed) |
void |
__Tango_PrintNextChar(int dataStart, char32 character, int[] font) |
bool |
__Tango_NeedsNewLine(int slot, int pos) |
int |
__Tango_StartNewLine(bool isMenu) |
void |
__Tango_TransferCenteredLine(int dataStart, bool isMenu) |
void |
__Tango_CountDown(int speed) |
bool |
__Tango_Scroll(int speed) |
void |
|
void |
Tango_SuspendSlot(int slot) |
void |
Tango_ResumeSlot(int slot) |
void |
Variable descriptions#
const int __TANGO_STATE_INACTIVE = 0
π Source
Constants and functions related to processing strings. String states
const int __TANGO_STATE_ACTIVE = 1
π Source
const int __TANGO_STATE_FINISHED = 2
π Source
const int __TANGO_STATE_ADVANCING = 3
π Source
const int __TANGO_STATE_RESERVED = 4
π Source
const int __TANGO_STATE_SYNC_WAIT = 6
π Source
const int __TANGO_STATE_WAIT_1_FRAME = 7
π Source
const int __TANGO_STATE_PRESS_A = 8
π Source
const int __TANGO_SUSPEND = 100
π Source
Added to the state to suspend it
const int __TANGO_SPEED_NORMAL = 0
π Source
Update speeds
const int __TANGO_SPEED_FAST = 1
π Source
Function descriptions#
void __Tango_CheckScreenChange() π Source
void Tango_Update1() π Source
Updates each slot and the menu.
void Tango_Update2() π Source
Draws each active slot to the screen.
void __Tango_UpdateCurrentSlot() π Source
void __Tango_UpdateActiveSlot(int speed) π Source
Updates an active text slot. Renders text characters, runs functions, etc.
void __Tango_UpdateAdvancing(int speed) π Source
Updates an advancing text slot. Scrolls the text up and loads the next message when scrolling finishes.
void __Tango_UpdateFinishedSlot(int flags, int speed) π Source
Updates a finished text slot. Counts down the auto advance timer or checks if the advance button was pressed, then clears the slot or scroll up to make room for the next message.
void __Tango_Process(int speed) π Source
Processes characters in the string until it encounters a delay.
void __Tango_PrintNextChar(int dataStart, char32 character, int[] font) π Source
Draws the next character and advances the text position accordingly.
bool __Tango_NeedsNewLine(int slot, int pos) π Source
Determines whether the next character or word will fit on the current line. Newline characters are not handled here. This can also evaluate a function if it comes in a menu choice, because the result may depend on text inserted by the function.
int __Tango_StartNewLine(bool isMenu) π Source
Otherwise, it must fit. Starts a new line. Returns the amount the text needs to scroll.
void __Tango_TransferCenteredLine(int dataStart, bool isMenu) π Source
When using centered text, the line currently being processed is drawn separately from the rest. It needs to be trasnferred to its correct position in the bitmap when itβs finished.
void __Tango_CountDown(int speed) π Source
Count down the state counter.
bool __Tango_Scroll(int speed) π Source
Scroll down to display the next line or make way for the next string. Returns true if scrolling is finished.
void __Tango_BeginAdvancing() π Source
Sets the slot up to advance to the next message.
void Tango_SuspendSlot(int slot) π Source
void Tango_ResumeSlot(int slot) π Source