aboutsummaryrefslogtreecommitdiffstats
path: root/home/window.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2024-09-25 00:45:00 -0500
committerdannye <33dannye@gmail.com>2024-09-25 00:45:00 -0500
commita02a98ee7ada1a658e28698484058be2796dc0df (patch)
tree945986054565bd8b5212fc755415096050d1d3a8 /home/window.asm
parentUse long option flags for rgbgfx, same as tools/gfx (diff)
parentUse `const_skip` (diff)
downloadpokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.tar.gz
pokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.tar.xz
pokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'home/window.asm')
-rw-r--r--home/window.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/window.asm b/home/window.asm
index f8cc4589..713699e6 100644
--- a/home/window.asm
+++ b/home/window.asm
@@ -97,8 +97,8 @@ HandleMenuInput_::
jr z, .skipPlayingSound
.AButtonOrBButtonPressed
push hl
- ld hl, wFlags_0xcd60
- bit 5, [hl]
+ ld hl, wMiscFlags
+ bit BIT_NO_MENU_BUTTON_SOUND, [hl]
pop hl
jr nz, .skipPlayingSound
ld a, SFX_PRESS_AB
@@ -140,9 +140,9 @@ PlaceMenuCursor::
ld bc, 40
push af
ldh a, [hUILayoutFlags]
- bit 1, a ; is the menu double spaced?
+ bit BIT_DOUBLE_SPACED_MENU, a
jr z, .doubleSpaced1
- ld bc, 20
+ ld bc, SCREEN_WIDTH
.doubleSpaced1
pop af
.oldMenuItemLoop
@@ -164,9 +164,9 @@ PlaceMenuCursor::
ld bc, 40
push af
ldh a, [hUILayoutFlags]
- bit 1, a ; is the menu double spaced?
+ bit BIT_DOUBLE_SPACED_MENU, a
jr z, .doubleSpaced2
- ld bc, 20
+ ld bc, SCREEN_WIDTH
.doubleSpaced2
pop af
.currentMenuItemLoop
@@ -270,7 +270,7 @@ EnableAutoTextBoxDrawing::
jr AutoTextBoxDrawingCommon
DisableAutoTextBoxDrawing::
- ld a, TRUE
+ ld a, 1 << BIT_NO_AUTO_TEXT_BOX
AutoTextBoxDrawingCommon::
ld [wAutoTextBoxDrawingControl], a