tango_menu.zh#
Variables#
const int |
|
const int |
Functions#
void |
|
void |
__Tango_InitializeMenu(int styleStart) |
void |
Tango_AddMenuChoice(int value, int x, int y) |
void |
Tango_SetMenuCursor(int combo, int cset) |
void |
Tango_SetMenuCursor(int combo, int cset, int width, int height) |
void |
Tango_SetMenuSFX(int moveSound, int selectSound, int cancelSound) |
void |
Tango_SetMenuFlags(int flags) |
void |
|
void |
|
bool |
|
int |
|
int |
|
void |
Tango_MoveMenuChoice(int choice, int x, int y) |
void |
__Tango_SetUpMenu(int styleStart) |
void |
|
int |
__Tango_GetNextMenuPos(int dir) |
void |
__Tango_ReadChoice(int pos, int defStart, int dataStart, int styleStart) |
void |
__Tango_MenuSelect(int pos) |
void |
|
void |
__Tango_ShiftMenuUp(int amount) |
void |
__Tango_ShiftMenuRight(int amount) |
void |
__Tango_ShiftMenu(int x, int y) |
void |
__Tango_ScrollToMenuCursor(int pos) |
bool |
|
bool |
|
void |
|
bool |
|
int |
|
void |
Tango_SetMenuCursorPosition(int pos) |
void |
Tango_SaveMenuState(int[] output) |
void |
Tango_RestoreMenuState(int[] oldState) |
void |
Tango_SetMenuAutosaveDest(int arr) |
void |
__Tango_SetCursorMovement(int choice, int time) |
void |
|
int |
__Tango_GetMenuChoiceX(int choice) |
int |
__Tango_GetMenuChoiceY(int choice) |
Variable descriptions#
const int TANGO_MENU_CAN_CANCEL = 1
🔗 Source
Menu-related functions and constants.
Function descriptions#
void Tango_InitializeMenu() 🔗 Source
Resets all menu data.
void __Tango_InitializeMenu(int styleStart) 🔗 Source
This version is used when reading a menu from a string. It loads the cursor combo and sounds from the style instead of setting them to 0, and it sets the top and bottom of the menu so it can scroll.
void Tango_AddMenuChoice(int value, int x, int y) 🔗 Source
void Tango_SetMenuCursor(int combo, int cset) 🔗 Source
void Tango_SetMenuCursor(int combo, int cset, int width, int height) 🔗 Source
void Tango_SetMenuSFX(int moveSound, int selectSound, int cancelSound) 🔗 Source
void Tango_SetMenuFlags(int flags) 🔗 Source
void Tango_ActivateMenu() 🔗 Source
void Tango_DeactivateMenu() 🔗 Source
bool Tango_MenuIsActive() 🔗 Source
int Tango_GetCurrentMenuChoice() 🔗 Source
int Tango_GetLastMenuChoice() 🔗 Source
void Tango_MoveMenuChoice(int choice, int x, int y) 🔗 Source
void __Tango_SetUpMenu(int styleStart) 🔗 Source
void __Tango_UpdateMenu() 🔗 Source
int __Tango_GetNextMenuPos(int dir) 🔗 Source
Get the next menu position in the given direction.
void __Tango_ReadChoice(int pos, int defStart, int dataStart, int styleStart) 🔗 Source
Adds a cursor stop for a menu choice defined in text.
void __Tango_MenuSelect(int pos) 🔗 Source
void __Tango_MenuCancel() 🔗 Source
void __Tango_ShiftMenuUp(int amount) 🔗 Source
Used when the text scrolls while a menu is printing.
void __Tango_ShiftMenuRight(int amount) 🔗 Source
Used when a menu needs to be centered.
void __Tango_ShiftMenu(int x, int y) 🔗 Source
Used when a slot containing a menu is repositioned.
void __Tango_ScrollToMenuCursor(int pos) 🔗 Source
Used to scroll a slot up or down to show the current selection.
bool __Tango_MenuCanScrollUp() 🔗 Source
bool __Tango_MenuCanScrollDown() 🔗 Source
void __Tango_MenuNotify() 🔗 Source
Reactivate any slots waiting on a menu selection
bool __Tango_CursorPosIsValid() 🔗 Source
Returns true if the current cursor position corresponds to a menu item. If no menu is active, returns false.
int Tango_GetMenuCursorPosition() 🔗 Source
void Tango_SetMenuCursorPosition(int pos) 🔗 Source
void Tango_SaveMenuState(int[] output) 🔗 Source
void Tango_RestoreMenuState(int[] oldState) 🔗 Source
void Tango_SetMenuAutosaveDest(int arr) 🔗 Source
void __Tango_SetCursorMovement(int choice, int time) 🔗 Source
void __Tango_UpdateCursorMovement() 🔗 Source
int __Tango_GetMenuChoiceX(int choice) 🔗 Source