2018-06-24 14:09:41 +00:00
|
|
|
|
LoadBattleMenu:
|
2018-01-23 21:08:43 +00:00
|
|
|
|
ld hl, BattleMenuHeader
|
|
|
|
|
call LoadMenuHeader
|
2017-12-10 00:41:03 +00:00
|
|
|
|
ld a, [wBattleMenuCursorBuffer]
|
2015-12-13 22:11:58 +00:00
|
|
|
|
ld [wMenuCursorBuffer], a
|
2015-12-15 23:59:49 +00:00
|
|
|
|
call InterpretBattleMenu
|
2015-12-13 22:11:58 +00:00
|
|
|
|
ld a, [wMenuCursorBuffer]
|
2017-12-10 00:41:03 +00:00
|
|
|
|
ld [wBattleMenuCursorBuffer], a
|
2015-12-13 22:11:58 +00:00
|
|
|
|
call ExitMenu
|
|
|
|
|
ret
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
SafariBattleMenu:
|
2015-12-13 22:11:58 +00:00
|
|
|
|
; untranslated
|
2018-01-23 21:08:43 +00:00
|
|
|
|
ld hl, MenuHeader_0x24f4e
|
|
|
|
|
call LoadMenuHeader
|
2015-12-13 22:11:58 +00:00
|
|
|
|
jr Function24f19
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
ContestBattleMenu:
|
2018-01-23 21:08:43 +00:00
|
|
|
|
ld hl, MenuHeader_0x24f89
|
|
|
|
|
call LoadMenuHeader
|
2015-12-13 22:11:58 +00:00
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
Function24f19:
|
2017-12-10 00:41:03 +00:00
|
|
|
|
ld a, [wBattleMenuCursorBuffer]
|
2015-12-13 22:11:58 +00:00
|
|
|
|
ld [wMenuCursorBuffer], a
|
2015-12-15 23:59:49 +00:00
|
|
|
|
call _2DMenu
|
2015-12-13 22:11:58 +00:00
|
|
|
|
ld a, [wMenuCursorBuffer]
|
2017-12-10 00:41:03 +00:00
|
|
|
|
ld [wBattleMenuCursorBuffer], a
|
2015-12-13 22:11:58 +00:00
|
|
|
|
call ExitMenu
|
|
|
|
|
ret
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
BattleMenuHeader:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 21:38:14 +00:00
|
|
|
|
menu_coords 8, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dw MenuData_0x24f34
|
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
|
MenuData_0x24f34:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 6 ; spacing
|
|
|
|
|
dba Strings24f3d
|
|
|
|
|
dbw BANK(MenuData_0x24f34), 0
|
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
|
Strings24f3d:
|
2015-12-13 22:11:58 +00:00
|
|
|
|
db "FIGHT@"
|
|
|
|
|
db "<PKMN>@"
|
|
|
|
|
db "PACK@"
|
|
|
|
|
db "RUN@"
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
MenuHeader_0x24f4e:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 21:38:14 +00:00
|
|
|
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dw MenuData_0x24f56
|
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
MenuData_0x24f56:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 11 ; spacing
|
|
|
|
|
dba Strings24f5f
|
|
|
|
|
dba Function24f7c
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
Strings24f5f:
|
2018-01-20 02:49:16 +00:00
|
|
|
|
db "サファりボール× @" ; "SAFARI BALL× @"
|
2015-12-13 22:11:58 +00:00
|
|
|
|
db "エサをなげる@" ; "THROW BAIT"
|
|
|
|
|
db "いしをなげる@" ; "THROW ROCK"
|
|
|
|
|
db "にげる@" ; "RUN"
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
Function24f7c:
|
2015-12-13 22:11:58 +00:00
|
|
|
|
hlcoord 17, 13
|
|
|
|
|
ld de, wSafariBallsRemaining
|
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
|
|
|
|
call PrintNum
|
|
|
|
|
ret
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
MenuHeader_0x24f89:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 21:38:14 +00:00
|
|
|
|
menu_coords 2, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dw MenuData_0x24f91
|
|
|
|
|
db 1 ; default option
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
MenuData_0x24f91:
|
2018-01-14 10:59:56 +00:00
|
|
|
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
2015-12-13 22:11:58 +00:00
|
|
|
|
dn 2, 2 ; rows, columns
|
|
|
|
|
db 12 ; spacing
|
|
|
|
|
dba Strings24f9a
|
|
|
|
|
dba Function24fb2
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
Strings24f9a:
|
2015-12-13 22:11:58 +00:00
|
|
|
|
db "FIGHT@"
|
|
|
|
|
db "<PKMN>", "@"
|
|
|
|
|
db "PARKBALL× @"
|
|
|
|
|
db "RUN@"
|
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
|
Function24fb2:
|
2015-12-13 22:11:58 +00:00
|
|
|
|
hlcoord 13, 16
|
|
|
|
|
ld de, wParkBallsRemaining
|
|
|
|
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
|
|
|
|
call PrintNum
|
|
|
|
|
ret
|