2021-02-28 23:22:26 +01:00
|
|
|
#ifndef MON_MARKINGS_H
|
|
|
|
#define MON_MARKINGS_H
|
2018-04-17 10:54:39 +02:00
|
|
|
|
2019-09-08 18:21:24 +02:00
|
|
|
#define NUM_MON_MARKINGS 4
|
|
|
|
|
2021-02-28 23:42:11 +01:00
|
|
|
struct MonMarkingsMenu
|
2018-04-17 10:54:39 +02:00
|
|
|
{
|
2021-02-28 23:22:26 +01: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;
|
2023-07-24 20:04:23 +02:00
|
|
|
u8 ALIGNED(2) windowSpriteTiles[0x1000];
|
2021-02-28 23:22:26 +01:00
|
|
|
u8 unused[0x80];
|
|
|
|
u8 tileLoadState;
|
|
|
|
};
|
2018-04-17 10:54:39 +02:00
|
|
|
|
2021-02-28 23:42:11 +01:00
|
|
|
void InitMonMarkingsMenu(struct MonMarkingsMenu *ptr);
|
2021-02-28 23:22:26 +01: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-15 06:56:11 +02:00
|
|
|
|
2021-02-28 23:22:26 +01:00
|
|
|
#endif //MON_MARKINGS_H
|