mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Don't hide board menu objects behind the textbox (#11) [adapts Board menu to 2957bce0a96424197b9bd25e0ae17698aed9d347]
This commit is contained in:
parent
2957bce0a9
commit
7bd940aeac
@ -9,7 +9,7 @@ BoardMenu::
|
||||
; refresh overworld sprites to hide those behind textbox before drawing new graphics
|
||||
call UpdateSprites
|
||||
farcall LoadBoardMenuGFX
|
||||
call DrawBoardMenuTiles
|
||||
call DrawBoardMenuTilesAndClearPriorityAttr
|
||||
call ApplyBoardMenuSpritePalette
|
||||
; allow Pal update to complete, then apply the tilemap
|
||||
call DelayFrame
|
||||
@ -41,11 +41,15 @@ BoardMenu::
|
||||
ld [wScriptVar], a
|
||||
ret
|
||||
|
||||
DrawBoardMenuTiles:
|
||||
DrawBoardMenuTilesAndClearPriorityAttr:
|
||||
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY
|
||||
ld a, BOARD_MENU_BG_FIRST_TILE
|
||||
lb bc, 3, 18
|
||||
jp FillBoxWithConsecutiveBytes
|
||||
call FillBoxWithConsecutiveBytes
|
||||
hlcoord TEXTBOX_INNERX, TEXTBOX_INNERY, wAttrmap
|
||||
ld a, PAL_BG_TEXT
|
||||
lb bc, 3, 18
|
||||
jp FillBoxWithByte
|
||||
|
||||
ApplyBoardMenuSpritePalette:
|
||||
ld hl, BoardMenuItemPals
|
||||
|
Loading…
x
Reference in New Issue
Block a user