2023-08-14 11:09:23 -07:00
|
|
|
LoadBoardMenuGFX::
|
|
|
|
ld de, .BoardMenuGFX
|
2023-09-02 04:21:57 -07:00
|
|
|
ld hl, vTiles0 + BOARD_MENU_BG_FIRST_TILE * LEN_2BPP_TILE
|
2023-09-23 02:50:25 -07:00
|
|
|
lb bc, BANK(.BoardMenuGFX), TEXTBOX_INNERW * BOARD_MENU_ITEM_HEIGHT
|
2023-08-14 11:09:23 -07:00
|
|
|
call Get2bppViaHDMA
|
|
|
|
ld de, .BoardMenuOAMGFX
|
2023-09-02 04:21:57 -07:00
|
|
|
ld hl, vTiles0 + BOARD_MENU_OAM_FIRST_TILE * LEN_2BPP_TILE
|
2023-09-23 02:50:25 -07:00
|
|
|
lb bc, BANK(.BoardMenuOAMGFX), BOARD_MENU_ITEM_SIZE * NUM_BOARD_MENU_ITEMS
|
2023-08-14 11:09:23 -07:00
|
|
|
call Get2bppViaHDMA
|
2023-09-25 12:57:47 -07:00
|
|
|
ld de, .DieRollOAMGFX
|
|
|
|
ld hl, vTiles0 + DIE_ROLL_OAM_FIRST_TILE * LEN_2BPP_TILE
|
2023-09-26 11:09:13 -07:00
|
|
|
lb bc, BANK(.DieRollOAMGFX), DIE_SIZE * 10
|
2023-09-25 12:57:47 -07:00
|
|
|
call Get2bppViaHDMA
|
2023-08-14 11:09:23 -07:00
|
|
|
ret
|
|
|
|
|
|
|
|
.BoardMenuGFX:
|
|
|
|
INCBIN "gfx/board/menu.2bpp"
|
|
|
|
|
|
|
|
.BoardMenuOAMGFX:
|
2023-09-23 02:50:25 -07:00
|
|
|
table_width BOARD_MENU_ITEM_SIZE * LEN_2BPP_TILE, .BoardMenuOAMGFX
|
2023-08-14 11:09:23 -07:00
|
|
|
INCBIN "gfx/board/menu_die.2bpp"
|
2023-09-22 14:12:05 -07:00
|
|
|
INCBIN "gfx/board/menu_party.2bpp"
|
|
|
|
INCBIN "gfx/board/menu_pack.2bpp"
|
2023-08-14 11:09:23 -07:00
|
|
|
INCBIN "gfx/board/menu_pokegear.2bpp"
|
|
|
|
INCBIN "gfx/board/menu_exit.2bpp"
|
|
|
|
assert_table_length NUM_BOARD_MENU_ITEMS
|
2023-09-25 12:57:47 -07:00
|
|
|
|
|
|
|
.DieRollOAMGFX:
|
2023-09-26 11:09:13 -07:00
|
|
|
INCBIN "gfx/board/die_roll.2bpp"
|
|
|
|
|
|
|
|
LoadBoardMenuDieNumbersGFX::
|
|
|
|
ld de, .DieNumbersOAMGFX
|
|
|
|
; overwrite in vTiles0 the no-longer-needed BoardMenuOAMGFX, but keep DieRollOAMGFX
|
|
|
|
ld hl, vTiles0 + DIE_NUMBERS_OAM_FIRST_TILE * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(.DieNumbersOAMGFX), DIE_NUMBER_SIZE * 10
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ret
|
|
|
|
|
|
|
|
.DieNumbersOAMGFX:
|
|
|
|
INCBIN "gfx/board/die_numbers.2bpp"
|
2023-10-24 11:36:23 -07:00
|
|
|
|
2023-12-23 05:44:36 -08:00
|
|
|
LoadBranchSpaceGFX::
|
2023-10-24 11:36:23 -07:00
|
|
|
ld de, .BranchArrowsOAMGFX
|
|
|
|
ld hl, vTiles0 + BRANCH_ARROWS_OAM_FIRST_TILE * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(.BranchArrowsOAMGFX), NUM_DIRECTIONS
|
|
|
|
call Get2bppViaHDMA
|
2023-12-23 05:44:36 -08:00
|
|
|
ld hl, vTiles0 + BRANCH_LEGEND_OAM_FIRST_TILE * LEN_2BPP_TILE
|
|
|
|
call LoadLegendButtonsGFX
|
|
|
|
ld de, LegendChooseOAMGFX
|
|
|
|
ld hl, vTiles0 + (BRANCH_LEGEND_OAM_FIRST_TILE + 5) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendChooseOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ld de, LegendViewOAMGFX
|
|
|
|
ld hl, vTiles0 + (BRANCH_LEGEND_OAM_FIRST_TILE + 8) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendViewOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
2023-10-24 11:36:23 -07:00
|
|
|
ret
|
|
|
|
|
|
|
|
.BranchArrowsOAMGFX:
|
|
|
|
INCBIN "gfx/board/branch_arrows.2bpp"
|
2023-11-04 05:04:25 -07:00
|
|
|
|
|
|
|
LoadViewMapModeGFX::
|
|
|
|
ld de, .ViewMapModeArrowsOAMGFX
|
2023-12-23 05:44:36 -08:00
|
|
|
ld hl, vTiles0 + VIEW_MAP_MODE_ARROWS_OAM_FIRST_TILE * LEN_2BPP_TILE
|
2023-11-04 05:04:25 -07:00
|
|
|
lb bc, BANK(.ViewMapModeArrowsOAMGFX), NUM_DIRECTIONS
|
|
|
|
call Get2bppViaHDMA
|
2023-12-23 05:44:36 -08:00
|
|
|
ld hl, vTiles0 + VIEW_MAP_MODE_LEGEND_OAM_FIRST_FILE * LEN_2BPP_TILE
|
|
|
|
call LoadLegendButtonsGFX
|
|
|
|
ld de, LegendMoveOAMGFX
|
|
|
|
ld hl, vTiles0 + (VIEW_MAP_MODE_LEGEND_OAM_FIRST_FILE + 5) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendMoveOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ld de, LegendBackOAMGFX
|
|
|
|
ld hl, vTiles0 + (VIEW_MAP_MODE_LEGEND_OAM_FIRST_FILE + 8) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendBackOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
2023-11-04 05:04:25 -07:00
|
|
|
ret
|
|
|
|
|
|
|
|
.ViewMapModeArrowsOAMGFX:
|
|
|
|
INCBIN "gfx/board/view_map_arrows.2bpp"
|
2023-12-23 05:44:36 -08:00
|
|
|
|
|
|
|
LoadTalkerEventLegendGFX::
|
|
|
|
ld hl, vTiles0 + TALKER_EVENT_LEGEND_OAM_FIRST_TILE * LEN_2BPP_TILE
|
|
|
|
call LoadLegendButtonsGFX
|
|
|
|
ld de, LegendTalkOAMGFX
|
|
|
|
ld hl, vTiles0 + (TALKER_EVENT_LEGEND_OAM_FIRST_TILE + 5) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendTalkOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ld de, LegendSkipOAMGFX
|
|
|
|
ld hl, vTiles0 + (TALKER_EVENT_LEGEND_OAM_FIRST_TILE + 8) * LEN_2BPP_TILE
|
|
|
|
lb bc, BANK(LegendTalkOAMGFX), 3
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ret
|
|
|
|
|
|
|
|
LoadLegendButtonsGFX:
|
|
|
|
ld de, .LegendButtonsOAMGFX
|
|
|
|
lb bc, BANK(.LegendButtonsOAMGFX), 5
|
|
|
|
call Get2bppViaHDMA
|
|
|
|
ret
|
|
|
|
|
|
|
|
.LegendButtonsOAMGFX:
|
|
|
|
INCBIN "gfx/legend/buttons.2bpp"
|
|
|
|
|
|
|
|
LegendTalkOAMGFX:
|
|
|
|
INCBIN "gfx/legend/talk.2bpp"
|
|
|
|
|
|
|
|
LegendSkipOAMGFX:
|
|
|
|
INCBIN "gfx/legend/skip.2bpp"
|
|
|
|
|
|
|
|
LegendChooseOAMGFX:
|
|
|
|
INCBIN "gfx/legend/choose.2bpp"
|
|
|
|
|
|
|
|
LegendViewOAMGFX:
|
|
|
|
INCBIN "gfx/legend/view.2bpp"
|
|
|
|
|
|
|
|
LegendMoveOAMGFX:
|
|
|
|
INCBIN "gfx/legend/move.2bpp"
|
|
|
|
|
|
|
|
LegendBackOAMGFX:
|
|
|
|
INCBIN "gfx/legend/back.2bpp"
|