pokeemerald/include/mon_markings.h

36 lines
1.1 KiB
C
Raw Normal View History

2021-02-28 17:22:26 -05:00
#ifndef MON_MARKINGS_H
#define MON_MARKINGS_H
2018-04-17 14:24:39 +05:30
2019-09-08 12:21:24 -04:00
#define NUM_MON_MARKINGS 4
2021-02-28 17:42:11 -05:00
struct MonMarkingsMenu
2018-04-17 14:24:39 +05:30
{
2021-02-28 17:22:26 -05:00
u16 baseTileTag;
u16 basePaletteTag;
u8 markings; // bit flags
s8 cursorPos;
bool8 markingsArray[NUM_MON_MARKINGS];
u8 cursorBaseY;
bool8 spriteSheetLoadRequired;
struct Sprite *windowSprites[2]; // upper and lower halves of menu window
struct Sprite *markingSprites[NUM_MON_MARKINGS];
struct Sprite *cursorSprite;
struct Sprite *textSprite;
const u8 *frameTiles;
const u16 *framePalette;
u8 windowSpriteTiles[0x1000];
u8 unused[0x80];
u8 tileLoadState;
};
2018-04-17 14:24:39 +05:30
2021-02-28 17:42:11 -05:00
void InitMonMarkingsMenu(struct MonMarkingsMenu *ptr);
2021-02-28 17:22:26 -05:00
void BufferMonMarkingsMenuTiles(void);
void OpenMonMarkingsMenu(u8 markings, s16 x, s16 y);
void FreeMonMarkingsMenu(void);
bool8 HandleMonMarkingsMenuInput(void);
struct Sprite *CreateMonMarkingAllCombosSprite(u16 tileTag, u16 paletteTag, const u16 *palette);
struct Sprite *CreateMonMarkingComboSprite(u16 tileTag, u16 paletteTag, const u16 *palette);
void UpdateMonMarkingTiles(u8 markings, void *dest);
2018-08-14 21:56:11 -07:00
2021-02-28 17:22:26 -05:00
#endif //MON_MARKINGS_H