tango_common.zh#

Variables#

const int

__TANGO_COMPAT_VERSION

const int

__TDIDX_SAVED_VERSION

const int

__TDIDX_GLOBAL_FLAGS

const int

__TDIDX_PREV_SCREEN

const int

__TDIDX_LAST_CHOICE

const int

__TDIDX_SCREEN_FREEZE

const int

__TDIDX_REFRESH_STYLE

const int

__TDIDX_ERROR_NOTIFICATION

const int

__TDIDX_MENU_FLAGS

const int

__TDIDX_MENU_CURSOR_POS

const int

__TDIDX_MENU_CURSOR_COMBO

const int

__TDIDX_MENU_CURSOR_CSET

const int

__TDIDX_MENU_CURSOR_WIDTH

const int

__TDIDX_MENU_CURSOR_HEIGHT

const int

__TDIDX_MENU_CURSOR_SFX

const int

__TDIDX_MENU_SELECT_SFX

const int

__TDIDX_MENU_CANCEL_SFX

const int

__TDIDX_CHOICE_COUNT

const int

__TDIDX_MENU_SLOT

const int

__TDIDX_MENU_TOP

const int

__TDIDX_MENU_BOTTOM

const int

__TDIDX_MENU_CURSOR_X

const int

__TDIDX_MENU_CURSOR_Y

const int

__TDIDX_MENU_CURSOR_VX

const int

__TDIDX_MENU_CURSOR_VY

const int

__TDIDX_MENU_CURSOR_TIMER

const int

__TDIDX_FIRST_CHOICE_ON_LINE

const int

__TDIDX_MENU_SAVE_STATE_DEST

const int

__TDIDX_CHOICE_DATA

const int

__TANGO_MENU_DATA_START

const int

__TCS_ID

const int

__TCS_START

const int

__TCS_END

const int

__TCS_DEF_START

const int

__TCS_DATA_START

const int

__TCS_STYLE_START

const int

__TCS_FONT

const int

__TANGO_CHOICE_X

const int

__TANGO_CHOICE_Y

const int

__TANGO_CHOICE_VALUE

const int

__TANGO_SIZEOF_CHOICE

const int

__TANGO_GFLAG_UNPRESS_SPEEDUP

const int

__TANGO_GFLAG_UNPRESS_SUPER_SPEED

const int

__TANGO_GFLAG_UNPRESS_ADVANCE

const int

__TANGO_GFLAG_UNPRESS_MENU

const int

__TANGO_GFLAG_UNPRESS_ALL

const int

__TSDIDX_STYLE

const int

__TSDIDX_STATE

const int

__TSDIDX_COUNTER

const int

__TSDIDX_POSITION

const int

__TSDIDX_CHAR_X

const int

__TSDIDX_CHAR_Y

const int

__TSDIDX_SCREEN_X

const int

__TSDIDX_SCREEN_Y

const int

__TSDIDX_CSET

const int

__TSDIDX_COLOR

const int

__TSDIDX_ALT_CSET

const int

__TSDIDX_ALT_COLOR

const int

__TSDIDX_TILE_OFFSET

const int

__TSDIDX_SPEED

const int

__TSDIDX_SFX

const int

__TSDIDX_OFFSET

const int

__TSDIDX_MAX_OFFSET

const int

__TSDIDX_SCROLLING

const int

__TSDIDX_NEXT_STRING

const int

__TSDIDX_IGNORE_SPEED_KEYS

const int

__TSDIDX_CONDITION_MET

const int

__TSDIDX_WAS_MENU

const int

TANGO_VAR_A0

const int

TANGO_VAR_A1

const int

__TANGO_SIZEOF_DATA

const int

__TSDEF_TYPE

const int

__TSDEF_START

const int

__TSDEF_LENGTH

const int

__TSDEF_X

const int

__TSDEF_Y

const int

__TSDEF_WIDTH

const int

__TSDEF_HEIGHT

const int

__TANGO_SIZEOF_SLOTDEF

const int

TANGO_SLOT_ANY

const int

TANGO_DEFAULT

const int

TANGO_INVALID

const int

TANGO_CHAR_NEWLINE

const int

__TANGO_CHAR_FILLER

const int

__TANGO_CHAR_CHOICE

const int

__TANGO_CHAR_MENU_END

const int

__TANGO_PRINTABLE_CHAR

Functions#

void

__Tango_SetCurrentSlot(int slot)

bool

__Tango_IsSpecialDataMarker(int character)

void

__Tango_IncScreenFreeze()

void

__Tango_DecScreenFreeze()

int

__Tango_FloatToASCII(char32[] buffer, int value, bool allDigits)

Variable descriptions#

const int __TANGO_COMPAT_VERSION = 3 πŸ”— Source

Used for save validation


const int __TDIDX_SAVED_VERSION = 7 πŸ”— Source

__Tango_Data[] indices Skip 0-6 for current slot data (__TCS constants)


const int __TDIDX_GLOBAL_FLAGS = 8 πŸ”— Source


const int __TDIDX_PREV_SCREEN = 9 πŸ”— Source


const int __TDIDX_LAST_CHOICE = 10 πŸ”— Source


const int __TDIDX_SCREEN_FREEZE = 11 πŸ”— Source


const int __TDIDX_REFRESH_STYLE = 12 πŸ”— Source


const int __TDIDX_ERROR_NOTIFICATION = 13 πŸ”— Source


const int __TDIDX_MENU_FLAGS = 14 πŸ”— Source


const int __TDIDX_MENU_CURSOR_POS = 15 πŸ”— Source


const int __TDIDX_MENU_CURSOR_COMBO = 16 πŸ”— Source


const int __TDIDX_MENU_CURSOR_CSET = 17 πŸ”— Source


const int __TDIDX_MENU_CURSOR_WIDTH = 18 πŸ”— Source


const int __TDIDX_MENU_CURSOR_HEIGHT = 19 πŸ”— Source


const int __TDIDX_MENU_CURSOR_SFX = 20 πŸ”— Source


const int __TDIDX_MENU_SELECT_SFX = 21 πŸ”— Source


const int __TDIDX_MENU_CANCEL_SFX = 22 πŸ”— Source


const int __TDIDX_CHOICE_COUNT = 23 πŸ”— Source


const int __TDIDX_MENU_SLOT = 24 πŸ”— Source


const int __TDIDX_MENU_TOP = 25 πŸ”— Source

Used for scrolling large menus


const int __TDIDX_MENU_BOTTOM = 26 πŸ”— Source

up and down


const int __TDIDX_MENU_CURSOR_X = 27 πŸ”— Source


const int __TDIDX_MENU_CURSOR_Y = 28 πŸ”— Source


const int __TDIDX_MENU_CURSOR_VX = 29 πŸ”— Source


const int __TDIDX_MENU_CURSOR_VY = 30 πŸ”— Source


const int __TDIDX_MENU_CURSOR_TIMER = 31 πŸ”— Source


const int __TDIDX_FIRST_CHOICE_ON_LINE = 32 πŸ”— Source


const int __TDIDX_MENU_SAVE_STATE_DEST = 33 πŸ”— Source


const int __TDIDX_CHOICE_DATA = 34 πŸ”— Source


const int __TANGO_MENU_DATA_START = 14 πŸ”— Source

Used by Tango_SaveMenuState()


const int __TCS_ID = 0 πŸ”— Source

Current slot data (more __Tango_Data[] indices)


const int __TCS_START = 1 πŸ”— Source


const int __TCS_END = 2 πŸ”— Source


const int __TCS_DEF_START = 3 πŸ”— Source


const int __TCS_DATA_START = 4 πŸ”— Source


const int __TCS_STYLE_START = 5 πŸ”— Source


const int __TCS_FONT = 6 πŸ”— Source


const int __TANGO_CHOICE_X = 0 πŸ”— Source

Menu data


const int __TANGO_CHOICE_Y = 1 πŸ”— Source


const int __TANGO_CHOICE_VALUE = 2 πŸ”— Source


const int __TANGO_SIZEOF_CHOICE = 3 πŸ”— Source


const int __TANGO_GFLAG_UNPRESS_SPEEDUP = 1 πŸ”— Source

Global flags


const int __TANGO_GFLAG_UNPRESS_SUPER_SPEED = 2 πŸ”— Source


const int __TANGO_GFLAG_UNPRESS_ADVANCE = 4 πŸ”— Source


const int __TANGO_GFLAG_UNPRESS_MENU = 8 πŸ”— Source


const int __TANGO_GFLAG_UNPRESS_ALL = 16 πŸ”— Source


const int __TSDIDX_STYLE = 0 πŸ”— Source

__Tango_SlotData[] indices


const int __TSDIDX_STATE = 1 πŸ”— Source


const int __TSDIDX_COUNTER = 2 πŸ”— Source


const int __TSDIDX_POSITION = 3 πŸ”— Source


const int __TSDIDX_CHAR_X = 4 πŸ”— Source


const int __TSDIDX_CHAR_Y = 5 πŸ”— Source


const int __TSDIDX_SCREEN_X = 6 πŸ”— Source


const int __TSDIDX_SCREEN_Y = 7 πŸ”— Source


const int __TSDIDX_CSET = 8 πŸ”— Source


const int __TSDIDX_COLOR = 9 πŸ”— Source

Built-in fonts only


const int __TSDIDX_ALT_CSET = 10 πŸ”— Source


const int __TSDIDX_ALT_COLOR = 11 πŸ”— Source

Built-in fonts only


const int __TSDIDX_TILE_OFFSET = 12 πŸ”— Source


const int __TSDIDX_SPEED = 13 πŸ”— Source


const int __TSDIDX_SFX = 14 πŸ”— Source


const int __TSDIDX_OFFSET = 15 πŸ”— Source


const int __TSDIDX_MAX_OFFSET = 16 πŸ”— Source


const int __TSDIDX_SCROLLING = 17 πŸ”— Source


const int __TSDIDX_NEXT_STRING = 18 πŸ”— Source


const int __TSDIDX_IGNORE_SPEED_KEYS = 19 πŸ”— Source


const int __TSDIDX_CONDITION_MET = 20 πŸ”— Source


const int __TSDIDX_WAS_MENU = 21 πŸ”— Source


const int TANGO_VAR_A0 = 22 πŸ”— Source


const int TANGO_VAR_A1 = 23 πŸ”— Source


const int __TANGO_SIZEOF_DATA = 24 πŸ”— Source


const int __TSDEF_TYPE = 0 πŸ”— Source

__Tango_SlotDefs[] data


const int __TSDEF_START = 1 πŸ”— Source


const int __TSDEF_LENGTH = 2 πŸ”— Source


const int __TSDEF_X = 3 πŸ”— Source


const int __TSDEF_Y = 4 πŸ”— Source


const int __TSDEF_WIDTH = 5 πŸ”— Source


const int __TSDEF_HEIGHT = 6 πŸ”— Source


const int __TANGO_SIZEOF_SLOTDEF = 7 πŸ”— Source


const int TANGO_SLOT_ANY = -1 πŸ”— Source

Miscellaneous


const int TANGO_DEFAULT = -1 πŸ”— Source


const int TANGO_INVALID = -10 πŸ”— Source


const int TANGO_CHAR_NEWLINE = 26 πŸ”— Source

Some special characters


const int __TANGO_CHAR_FILLER = -1 πŸ”— Source


const int __TANGO_CHAR_CHOICE = -10000 πŸ”— Source


const int __TANGO_CHAR_MENU_END = -20000 πŸ”— Source


const int __TANGO_PRINTABLE_CHAR = 33 πŸ”— Source

β€˜!’, the first character after space


Function descriptions#

void __Tango_SetCurrentSlot(int slot) πŸ”— Source

Loads some commonly used data about the current slot into __Tango_Data. Kind of ugly, but it beats recalculating the numbers whenever they’re needed or passing them into every function.


bool __Tango_IsSpecialDataMarker(int character) πŸ”— Source

Returns true if this character is a special data marker. End markers don’t count.


void __Tango_IncScreenFreeze() πŸ”— Source

Increment the screen freeze counter. Freeze the screen if it was 0.


void __Tango_DecScreenFreeze() πŸ”— Source

Decrement the screen freeze counter. Unfreeze the screen if it’s now 0.


int __Tango_FloatToASCII(char32[] buffer, int value, bool allDigits) πŸ”— Source

string.zh’s float-to-text functions don’t work right in 2.50, so this is used instead.