Assert that there are NUM_FRAMES textbox frames

This commit is contained in:
Rangi 2022-08-06 12:24:40 -04:00
parent 8826d97ee4
commit 7cac5b787b
2 changed files with 12 additions and 10 deletions

View File

@ -1,14 +1,14 @@
; GetOptionPointer.Pointers indexes
const_def
const OPT_TEXT_SPEED ; 0
const OPT_BATTLE_SCENE ; 1
const OPT_BATTLE_STYLE ; 2
const OPT_SOUND ; 3
const OPT_PRINT ; 4
const OPT_MENU_ACCOUNT ; 5
const OPT_FRAME ; 6
const OPT_CANCEL ; 7
DEF NUM_OPTIONS EQU const_value ; 8
const OPT_TEXT_SPEED ; 0
const OPT_BATTLE_SCENE ; 1
const OPT_BATTLE_STYLE ; 2
const OPT_SOUND ; 3
const OPT_PRINT ; 4
const OPT_MENU_ACCOUNT ; 5
const OPT_FRAME ; 6
const OPT_CANCEL ; 7
DEF NUM_OPTIONS EQU const_value ; 8
_Option:
ld hl, hInMenu

View File

@ -8,6 +8,7 @@ FontBattleExtra:
INCBIN "gfx/font/font_battle_extra.2bpp"
Frames:
table_width TEXTBOX_FRAME_TILES * LEN_1BPP_TILE, Frames
INCBIN "gfx/frames/1.1bpp"
INCBIN "gfx/frames/2.1bpp"
INCBIN "gfx/frames/3.1bpp"
@ -16,7 +17,8 @@ INCBIN "gfx/frames/5.1bpp"
INCBIN "gfx/frames/6.1bpp"
INCBIN "gfx/frames/7.1bpp"
INCBIN "gfx/frames/8.1bpp"
INCBIN "gfx/frames/9.1bpp"
assert_table_length NUM_FRAMES
INCBIN "gfx/frames/9.1bpp" ; unused
StatsScreenPageTilesGFX:
INCBIN "gfx/stats/stats_tiles.2bpp"