mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Clear sprite animations before board menu die roll animation to prevent artifacts such as from party menu animations (#11)
This commit is contained in:
parent
9fcd72af19
commit
866729d024
@ -90,6 +90,8 @@ BoardMenu::
|
|||||||
ld a, BOARDMENUITEM_DIE
|
ld a, BOARDMENUITEM_DIE
|
||||||
.ok
|
.ok
|
||||||
ld [wBoardMenuCursorPosition], a
|
ld [wBoardMenuCursorPosition], a
|
||||||
|
; clear any other sprite animation
|
||||||
|
farcall ClearSpriteAnims
|
||||||
; refresh overworld sprites to hide those behind textbox before drawing new graphics
|
; refresh overworld sprites to hide those behind textbox before drawing new graphics
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
farcall LoadBoardMenuGFX
|
farcall LoadBoardMenuGFX
|
||||||
@ -396,6 +398,7 @@ BoardMenu_OpenSubmenu:
|
|||||||
|
|
||||||
BoardMenu_CloseSubmenu:
|
BoardMenu_CloseSubmenu:
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
|
farcall ClearSpriteAnims
|
||||||
ld a, TRUE
|
ld a, TRUE
|
||||||
ld [wText2bpp], a
|
ld [wText2bpp], a
|
||||||
call EnableOverworldHUD
|
call EnableOverworldHUD
|
||||||
|
@ -464,11 +464,7 @@ Script_verbosegiveitem:
|
|||||||
ld de, GiveItemScript
|
ld de, GiveItemScript
|
||||||
jp ScriptCall
|
jp ScriptCall
|
||||||
|
|
||||||
GiveItemScript_DummyFunction:
|
|
||||||
ret
|
|
||||||
|
|
||||||
GiveItemScript:
|
GiveItemScript:
|
||||||
callasm GiveItemScript_DummyFunction
|
|
||||||
writetext .ReceivedItemText
|
writetext .ReceivedItemText
|
||||||
iffalse .Full
|
iffalse .Full
|
||||||
waitsfx
|
waitsfx
|
||||||
|
Loading…
Reference in New Issue
Block a user