mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
This commit is contained in:
parent
c115386f38
commit
eb13b2bd77
@ -214,6 +214,7 @@ ApplyBoardMenuSpritePalette:
|
||||
ret
|
||||
|
||||
GetBoardMenuSelection:
|
||||
call DelayFrame
|
||||
call JoyTextDelay
|
||||
call GetMenuJoypad
|
||||
bit A_BUTTON_F, a
|
||||
|
@ -218,6 +218,7 @@ endr
|
||||
|
||||
PromptPlayerToChooseBranchDirection:
|
||||
; sample a dpad press or SELECT button
|
||||
call DelayFrame
|
||||
ld hl, wTempSpaceBranchStruct
|
||||
call GetJoypad
|
||||
ldh a, [hJoyPressed]
|
||||
|
@ -233,7 +233,7 @@ MenuJoypadLoop:
|
||||
.loop
|
||||
call Move2DMenuCursor
|
||||
call .BGMap_OAM
|
||||
call Do2DMenuJoypad
|
||||
call Do2DMenuJoypad.loop
|
||||
jr nc, .done
|
||||
call _2DMenuInterpretJoypad
|
||||
jr c, .done
|
||||
@ -262,13 +262,14 @@ MenuJoypadLoop:
|
||||
ret
|
||||
|
||||
Do2DMenuJoypad:
|
||||
call DelayFrame
|
||||
.loop
|
||||
call UpdateTimeSensitivePals
|
||||
call Menu_WasButtonPressed
|
||||
ret c
|
||||
ld a, [w2DMenuFlags1]
|
||||
bit 7, a
|
||||
jr z, .loop
|
||||
jr z, Do2DMenuJoypad
|
||||
and a
|
||||
ret
|
||||
|
||||
|
@ -70,7 +70,9 @@ PrintLetterDelay::
|
||||
.wait
|
||||
ldh a, [hTextDelayFrames]
|
||||
and a
|
||||
jr nz, .checkjoypad
|
||||
jr z, .end
|
||||
call DelayFrame
|
||||
jr .checkjoypad
|
||||
|
||||
.end
|
||||
pop af
|
||||
|
Loading…
Reference in New Issue
Block a user