tango_common.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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
const int |
Functions#
void |
__Tango_SetCurrentSlot(int slot) |
bool |
__Tango_IsSpecialDataMarker(int character) |
void |
|
void |
|
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_CHOICE_COUNT = 23
π Source
Used for scrolling large menus
up and down
const int __TDIDX_FIRST_CHOICE_ON_LINE = 32
π Source
const int __TDIDX_CHOICE_DATA = 34
π 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_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 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_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.