pokeplatinum/include/party_menu_cursor.h
Morglom df4e827fcb
Some checks failed
build / build (push) Has been cancelled
Document PartyMenuCursor (#503)
* 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
2025-05-13 22:31:16 -07:00

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