2017-09-01 18:43:26 +01:00
|
|
|
#ifndef GUARD_TEXT_WINDOW_H
|
|
|
|
#define GUARD_TEXT_WINDOW_H
|
|
|
|
|
2018-01-21 12:32:11 +00:00
|
|
|
#define WINDOW_FRAMES_COUNT 20
|
|
|
|
|
2017-09-01 18:43:26 +01:00
|
|
|
struct TilesPal
|
|
|
|
{
|
2018-04-17 09:54:39 +01:00
|
|
|
const u8 *tiles;
|
2018-01-21 12:32:11 +00:00
|
|
|
const u16 *pal;
|
2017-09-01 18:43:26 +01:00
|
|
|
};
|
|
|
|
|
2018-04-17 09:54:39 +01:00
|
|
|
extern const u8 gTextWindowFrame1_Gfx[];
|
2018-01-21 12:32:11 +00:00
|
|
|
extern const u16 gTextWindowFrame1_Pal[];
|
|
|
|
|
2018-07-16 19:23:05 +01:00
|
|
|
const struct TilesPal *GetWindowFrameTilesPal(u8 id);
|
2018-06-17 15:48:58 +01:00
|
|
|
void LoadMessageBoxGfx(u8 windowId, u16 destOffset, u8 palOffset);
|
2024-07-25 03:41:36 +01:00
|
|
|
void LoadSignBoxGfx(u8 windowId, u16 destOffset, u8 palOffset);
|
2018-06-17 15:48:58 +01:00
|
|
|
void LoadWindowGfx(u8 windowId, u8 frameId, u16 destOffset, u8 palOffset);
|
2021-11-01 22:06:15 +00:00
|
|
|
void LoadUserWindowBorderGfx(u8 windowId, u16 destOffset, u8 palOffset);
|
2018-07-16 19:23:05 +01:00
|
|
|
void LoadUserWindowBorderGfx_(u8 windowId, u16 destOffset, u8 palOffset);
|
2021-11-01 22:06:15 +00:00
|
|
|
void LoadUserWindowBorderGfxOnBg(u8 bg, u16 destOffset, u8 palOffset);
|
2019-03-31 23:59:52 +01:00
|
|
|
void DrawTextBorderOuter(u8 windowId, u16 tileNum, u8 palNum);
|
|
|
|
void DrawTextBorderInner(u8 windowId, u16 tileNum, u8 palNum);
|
2017-09-01 18:43:26 +01:00
|
|
|
void rbox_fill_rectangle(u8 windowId);
|
2020-08-07 07:00:41 +01:00
|
|
|
const u16 *GetTextWindowPalette(u8 id);
|
2018-01-21 12:32:11 +00:00
|
|
|
const u16 *GetOverworldTextboxPalettePtr(void);
|
2021-04-01 16:45:17 +01:00
|
|
|
void LoadSignPostWindowFrameGfx(void);
|
2017-09-01 18:43:26 +01:00
|
|
|
|
|
|
|
#endif // GUARD_TEXT_WINDOW_H
|