Identify hUILayoutFlags

This commit is contained in:
Rangi 2021-02-13 19:48:34 -05:00
parent 83f7d224c8
commit 95353fdefa
11 changed files with 38 additions and 38 deletions

View file

@ -126,13 +126,13 @@ TryingToLearn:
call TextBoxBorder
hlcoord 6, 8
ld de, wMovesString
ldh a, [hFlagsFFF6]
ldh a, [hUILayoutFlags]
set 2, a
ldh [hFlagsFFF6], a
ldh [hUILayoutFlags], a
call PlaceString
ldh a, [hFlagsFFF6]
ldh a, [hUILayoutFlags]
res 2, a
ldh [hFlagsFFF6], a
ldh [hUILayoutFlags], a
ld hl, wTopMenuItemY
ld a, 8
ld [hli], a ; wTopMenuItemY
@ -146,10 +146,10 @@ TryingToLearn:
ld a, A_BUTTON | B_BUTTON
ld [hli], a ; wMenuWatchedKeys
ld [hl], 0 ; wLastMenuItem
ld hl, hFlagsFFF6
ld hl, hUILayoutFlags
set 1, [hl]
call HandleMenuInput
ld hl, hFlagsFFF6
ld hl, hUILayoutFlags
res 1, [hl]
push af
call LoadScreenTilesFromBuffer1

View file

@ -40,7 +40,7 @@ DrawHP_:
push hl
call DrawHPBar
pop hl
ldh a, [hFlagsFFF6]
ldh a, [hUILayoutFlags]
bit 0, a
jr z, .printFractionBelowBar
ld bc, $9 ; right of bar