2018-06-24 07:09:41 -07:00
|
|
|
AskRememberPassword:
|
2017-12-15 18:22:26 -08:00
|
|
|
call .DoMenu
|
|
|
|
ld a, $0
|
|
|
|
jr c, .okay
|
|
|
|
ld a, $1
|
|
|
|
|
|
|
|
.okay
|
2023-09-30 10:12:57 -07:00
|
|
|
ldh [hScriptVar], a
|
2017-12-15 18:22:26 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.DoMenu:
|
2017-12-15 18:22:26 -08:00
|
|
|
lb bc, 14, 7
|
|
|
|
push bc
|
2018-01-23 13:08:43 -08:00
|
|
|
ld hl, YesNoMenuHeader
|
|
|
|
call CopyMenuHeader
|
2017-12-15 18:22:26 -08:00
|
|
|
pop bc
|
|
|
|
ld a, b
|
|
|
|
ld [wMenuBorderLeftCoord], a
|
|
|
|
add $5
|
|
|
|
ld [wMenuBorderRightCoord], a
|
|
|
|
ld a, c
|
|
|
|
ld [wMenuBorderTopCoord], a
|
|
|
|
add $4
|
|
|
|
ld [wMenuBorderBottomCoord], a
|
|
|
|
call PushWindow
|
|
|
|
call VerticalMenu
|
|
|
|
push af
|
|
|
|
ld c, 15
|
|
|
|
call DelayFrames
|
|
|
|
call Buena_ExitMenu
|
|
|
|
pop af
|
|
|
|
jr c, .refused
|
|
|
|
ld a, [wMenuCursorY]
|
|
|
|
cp $2
|
|
|
|
jr z, .refused
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
|
|
|
.refused
|
|
|
|
ld a, $2
|
|
|
|
ld [wMenuCursorY], a
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
Buena_ExitMenu:
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hOAMUpdate]
|
2017-12-15 18:22:26 -08:00
|
|
|
push af
|
|
|
|
call ExitMenu
|
|
|
|
call UpdateSprites
|
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hOAMUpdate], a
|
2017-12-15 18:22:26 -08:00
|
|
|
call DelayFrame
|
|
|
|
ld a, $1
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hOAMUpdate], a
|
2017-12-15 18:22:26 -08:00
|
|
|
call ApplyTilemap
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hOAMUpdate], a
|
2017-12-15 18:22:26 -08:00
|
|
|
ret
|