diff options
author | camthesaxman <cameronghall@cox.net> | 2018-01-21 22:29:35 -0600 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2018-01-21 22:29:35 -0600 |
commit | 663ecd00145da49fda7d2509d629d737ea633cd8 (patch) | |
tree | a4cfc7323151501d5603f1cd34e68a73f328434e /include/text_window.h | |
parent | a78b0636f50c012c3618d55a9b83f834319de6e0 (diff) | |
parent | f57340b729d741acae17213c9c748738fcc1dcb3 (diff) |
Merge branch 'master' of https://github.com/pret/pokeemerald into battle_refactor
Diffstat (limited to 'include/text_window.h')
-rw-r--r-- | include/text_window.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/text_window.h b/include/text_window.h index 0af007397..e6a753fcb 100644 --- a/include/text_window.h +++ b/include/text_window.h @@ -1,13 +1,18 @@ #ifndef GUARD_TEXT_WINDOW_H #define GUARD_TEXT_WINDOW_H +#define WINDOW_FRAMES_COUNT 20 + struct TilesPal { - u32 *tiles; - u16 *pal; + const u32 *tiles; + const u16 *pal; }; -const struct TilesPal* sub_8098758(u8 id); +extern const u32 gTextWindowFrame1_Gfx[]; +extern const u16 gTextWindowFrame1_Pal[]; + +const struct TilesPal* GetWindowFrameTilesPal(u8 id); void copy_textbox_border_tile_patterns_to_vram(u8 windowId, u16 destOffset, u8 palOffset); void sub_809882C(u8 windowId, u16 destOffset, u8 palOffset); void sub_80987D4(u8 windowId, u8 frameId, u16 destOffset, u8 palOffset); @@ -15,8 +20,8 @@ void box_border_load_tiles_and_pal(u8 windowId, u16 destOffset, u8 palOffset); void sub_8098858(u8 windowId, u16 tileNum, u8 palNum); void sub_80989E0(u8 windowId, u16 tileNum, u8 palNum); void rbox_fill_rectangle(u8 windowId); -const u16* stdpal_get(u8 id); -const u16* GetOverworldTextboxPalettePtr(void); +const u16 *stdpal_get(u8 id); +const u16 *GetOverworldTextboxPalettePtr(void); void sub_8098C6C(u8 bg, u16 destOffset, u8 palOffset); #endif // GUARD_TEXT_WINDOW_H |