struct MENU_CURSOR
Cursor that approaches its target, shared by shops, the name entry screen and the settings menu.
Declared in cursor.h.
Fields
| Name | Description | |
|---|---|---|
struct WINDOW_SPR * | anchor | the cursor's sprite, moved with its OAM |
Uint16 | x | screen pixels: where the current move started |
Uint16 | y | screen pixels: where the current move started |
Sint16 | targetX | screen pixels |
Sint16 | targetY | screen pixels |
Sint8 | frame | ticks of the current move done; reset when it ends |
Sint8 | ticks | ticks the move takes; 0 when the cursor is still |
Description
Cursor that approaches its target, shared by shops, the name entry screen and the settings menu.
struct MENU_CURSOR
Referenced by mnCursorAdvance(), mnCursorMoveTowardTarget(), mnCursorSet(), mnCursorSetPosImmediate(), mnNameEntryEditMemberName(), scClearEnterPassword(), scCursorAttach(), scCursorPlace() and scCursorShow().
Definition at line 14 of file cursor.h.
Fields in detail
anchor
struct WINDOW_SPR *anchor
the cursor's sprite, moved with its OAM
x
Uint16 x
screen pixels: where the current move started
y
Uint16 y
screen pixels: where the current move started
targetX
Sint16 targetX
screen pixels
targetY
Sint16 targetY
screen pixels
frame
Sint8 frame
ticks of the current move done; reset when it ends
ticks
Sint8 ticks
ticks the move takes; 0 when the cursor is still