From 7bd940aeac171311aecd2379dff3ea1b7e44ad73 Mon Sep 17 00:00:00 2001 From: xCrystal Date: Thu, 31 Aug 2023 18:51:37 +0200 Subject: [PATCH] Don't hide board menu objects behind the textbox (#11) [adapts Board menu to 2957bce0a96424197b9bd25e0ae17698aed9d347] --- engine/board/menu.asm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/board/menu.asm b/engine/board/menu.asm index 9715aed35..6a4b33229 100755 --- a/engine/board/menu.asm +++ b/engine/board/menu.asm @@ -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