mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Identify hUILayoutFlags
This commit is contained in:
parent
83f7d224c8
commit
95353fdefa
11 changed files with 38 additions and 38 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue