2018-06-24 07:09:41 -07:00
|
|
|
|
LoadBattleMenu:
|
2018-01-23 13:08:43 -08:00
|
|
|
|
ld hl, BattleMenuHeader
|
|
|
|
|
call LoadMenuHeader
|
2017-12-09 16:41:03 -08:00
|
|
|
|
ld a, [wBattleMenuCursorBuffer]
|
2015-12-13 14:11:58 -08:00
|
|
|
|
ld [wMenuCursorBuffer], a
|
2015-12-15 15:59:49 -08:00
|
|
|
|
call InterpretBattleMenu
|
2015-12-13 14:11:58 -08:00
|
|
|
|
ld a, [wMenuCursorBuffer]
|
2017-12-09 16:41:03 -08:00
|
|
|
|
ld [wBattleMenuCursorBuffer], a
|
2015-12-13 14:11:58 -08:00
|
|
|
|
call ExitMenu
|
|
|
|
|
ret
|
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
|
SafariBattleMenu:
|
2015-12-13 14:11:58 -08:00
|
|
|
|
; untranslated
|
2020-10-05 08:24:47 -07:00
|
|
|
|
ld hl, SafariBattleMenuHeader
|
2018-01-23 13:08:43 -08:00
|
|
|
|
call LoadMenuHeader
|
2020-10-05 08:24:47 -07:00
|
|
|
|
jr CommonBattleMenu
|
2015-12-13 14:11:58 -08:00
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
|
ContestBattleMenu:
|
2020-10-05 08:24:47 -07:00
|
|
|
|
ld hl, ContestBattleMenuHeader
|
2018-01-23 13:08:43 -08:00
|
|
|
|
call LoadMenuHeader
|
2020-10-05 08:24:47 -07:00
|
|
|
|
; fallthrough
|
|
|
|
|
CommonBattleMenu:
|
2017-12-09 16:41:03 -08:00
|
|
|
|
ld a, [wBattleMenuCursorBuffer]
|
2015-12-13 14:11:58 -08:00
|
|
|
|
ld [wMenuCursorBuffer], a
|
2015-12-15 15:59:49 -08:00
|
|
|
|
call _2DMenu
|
2015-12-13 14:11:58 -08:00
|
|
|
|
ld a, [wMenuCursorBuffer]
|
2017-12-09 16:41:03 -08:00
|
|
|
|
ld [wBattleMenuCursorBuffer], a
|
2015-12-13 14:11:58 -08:00
|
|
|
|
call ExitMenu
|
|
|
|
|
ret
|
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
|
BattleMenuHeader:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 13:38:14 -08:00
|
|
|
|
menu_coords 8, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dw .MenuData
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.MenuData:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 14:11:58 -08:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 6 ; spacing
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dba .Text
|
|
|
|
|
dbw BANK(@), NULL
|
2015-12-13 14:11:58 -08:00
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.Text:
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db "FIGHT@"
|
|
|
|
|
db "<PKMN>@"
|
|
|
|
|
db "PACK@"
|
|
|
|
|
db "RUN@"
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
SafariBattleMenuHeader:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 13:38:14 -08:00
|
|
|
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dw .MenuData
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.MenuData:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 14:11:58 -08:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 11 ; spacing
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dba .Text
|
|
|
|
|
dba .PrintSafariBallsRemaining
|
2015-12-13 14:11:58 -08:00
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.Text:
|
2018-01-19 18:49:16 -08:00
|
|
|
|
db "サファりボール× @" ; "SAFARI BALL× @"
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db "エサをなげる@" ; "THROW BAIT"
|
|
|
|
|
db "いしをなげる@" ; "THROW ROCK"
|
|
|
|
|
db "にげる@" ; "RUN"
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.PrintSafariBallsRemaining:
|
2015-12-13 14:11:58 -08:00
|
|
|
|
hlcoord 17, 13
|
|
|
|
|
ld de, wSafariBallsRemaining
|
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
|
|
|
|
call PrintNum
|
|
|
|
|
ret
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
ContestBattleMenuHeader:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 13:38:14 -08:00
|
|
|
|
menu_coords 2, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dw .MenuData
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.MenuData:
|
2018-01-14 02:59:56 -08:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 14:11:58 -08:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 12 ; spacing
|
2020-10-05 08:24:47 -07:00
|
|
|
|
dba .Text
|
|
|
|
|
dba .PrintParkBallsRemaining
|
2015-12-13 14:11:58 -08:00
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.Text:
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db "FIGHT@"
|
2018-11-17 10:33:03 -08:00
|
|
|
|
db "<PKMN>@"
|
2015-12-13 14:11:58 -08:00
|
|
|
|
db "PARKBALL× @"
|
|
|
|
|
db "RUN@"
|
|
|
|
|
|
2020-10-05 08:24:47 -07:00
|
|
|
|
.PrintParkBallsRemaining:
|
2015-12-13 14:11:58 -08:00
|
|
|
|
hlcoord 13, 16
|
|
|
|
|
ld de, wParkBallsRemaining
|
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
|
|
|
|
call PrintNum
|
|
|
|
|
ret
|