tango_processing.zh#

Variables#

Functions#

void

__Tango_CheckScreenChange()

void

Tango_Update1()

void

Tango_Update2()

void

__Tango_UpdateCurrentSlot()

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

__Tango_BeginAdvancing()

void

Tango_SuspendSlot(int slot)

void

Tango_ResumeSlot(int slot)

void

__Tango_UnpressAll()

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_MENU_WAIT = 5 πŸ”— 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


const int __TANGO_SPEED_SUPER = 2 πŸ”— 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


void __Tango_UnpressAll() πŸ”— Source