cursor.h
games/tbs/include/cursor.h on GitHub
Structures
ShopCursor
struct ShopCursor
Cursor that approaches its target, shared by shop, name entry and settings.
| Field | Declared as | |
|---|---|---|
anchor | struct RenderOutput *anchor | the cursor's sprite, moved with its OAM |
x | u16 x | screen pixels: where the current move started |
y | u16 y | screen pixels: where the current move started |
targetX | s16 targetX | screen pixels |
targetY | s16 targetY | screen pixels |
active | s8 active | frames of the current move done; reset when it ends |
kind | s8 kind | frames the move takes; 0 when the cursor is still |
Used by PartyTalkMenu_Choose, SaveMenu_SelectSlot, ShopCursor_Advance, ShopCursor_MoveTowardTarget, ShopCursor_SetPositionImmediate, Shop_SetCursor.
Unions
MenuCursor
union MenuCursor
| Field | Declared as | |
|---|---|---|
output | struct RenderOutput *output | the image alone; cursor.anchor |
cursor | struct ShopCursor cursor |
Used by NameEntry_EditOwnerName.