mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-26 00:32:20 -05:00
Some checks failed
build / build (push) Has been cancelled
* Move struct and update code. * Update references * Update references to use enum. * More enum * Small change. * Rename files. * Changes. * Rename flags as coords. * Rename to cursor info. * Rename to party_menu_cursor
28 lines
890 B
C
28 lines
890 B
C
#ifndef POKEPLATINUM_PARTY_MENU_CURSOR_H
|
|
#define POKEPLATINUM_PARTY_MENU_CURSOR_H
|
|
|
|
typedef struct PartyMenuCursor {
|
|
u8 xCoord;
|
|
u8 yCoord;
|
|
u8 subXCoord;
|
|
u8 subYCoord;
|
|
u8 upIndex;
|
|
u8 downIndex;
|
|
u8 leftIndex;
|
|
u8 rightIndex;
|
|
} PartyMenuCursor;
|
|
|
|
enum PartyMenuCursorDirection {
|
|
PARTY_MENU_CURSOR_DIRECTION_UP = 0,
|
|
PARTY_MENU_CURSOR_DIRECTION_DOWN,
|
|
PARTY_MENU_CURSOR_DIRECTION_LEFT,
|
|
PARTY_MENU_CURSOR_DIRECTION_RIGHT,
|
|
PARTY_MENU_CURSOR_DIRECTION_NONE,
|
|
};
|
|
|
|
void ReadPartyMenuCursorXYCoords(const PartyMenuCursor *byteFlagSet, u8 *xCoord, u8 *yCoord);
|
|
void ReadPartyMenuCursorSubXYCoords(const PartyMenuCursor *byteFlagSet, u8 *subXCoord, u8 *subYCoord);
|
|
u8 ReadPartyMenuCursorCoords(const PartyMenuCursor *byteFlagSet, u8 *xCoord, u8 *yCoord, u8 *subXCoord, u8 *subYCoord, u8 setIndex, u8 direction);
|
|
|
|
#endif // POKEPLATINUM_PARTY_MENU_CURSOR_H
|