You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Implement View Map mode [commit 4]: draw arrows OAM and refactor previous commit to support this (#29)
This commit is contained in:
@@ -77,6 +77,7 @@ BoardMenuScript::
|
||||
callasm .EnterViewMapMode
|
||||
appearplayermock
|
||||
closetext
|
||||
callasm .ViewMapModeOAM
|
||||
end
|
||||
|
||||
.EnterViewMapMode:
|
||||
@@ -102,6 +103,13 @@ BoardMenuScript::
|
||||
set INVISIBLE_F, [hl]
|
||||
ret
|
||||
|
||||
.ViewMapModeOAM:
|
||||
; this runs after closetext to prevent graphical glitches with the board menu OAM
|
||||
farcall LoadViewMapModeGFX
|
||||
ld hl, wDisplaySecondarySprites
|
||||
set SECONDARYSPRITES_VIEW_MAP_MODE_F, [hl]
|
||||
ret
|
||||
|
||||
.SubmenuCallback:
|
||||
; if submenu has requested a callback through wMenuReturn,
|
||||
; it has also taken care of queuing it into wQueuedScriptBank/wQueuedScriptAddr.
|
||||
|
||||
Reference in New Issue
Block a user