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
|
|
@ -69,14 +69,14 @@ RedrawPartyMenu_::
|
|||
pop hl
|
||||
push hl
|
||||
ld bc, SCREEN_WIDTH + 1 ; down 1 row and right 1 column
|
||||
ldh a, [hFlagsFFF6]
|
||||
ldh a, [hUILayoutFlags]
|
||||
set 0, a
|
||||
ldh [hFlagsFFF6], a
|
||||
ldh [hUILayoutFlags], a
|
||||
add hl, bc
|
||||
predef DrawHP2 ; draw HP bar and prints current / max HP
|
||||
ldh a, [hFlagsFFF6]
|
||||
ldh a, [hUILayoutFlags]
|
||||
res 0, a
|
||||
ldh [hFlagsFFF6], a
|
||||
ldh [hUILayoutFlags], a
|
||||
call SetPartyMenuHPBarColor ; color the HP bar (on SGB)
|
||||
pop hl
|
||||
jr .printLevel
|
||||
|
|
|
|||
|
|
@ -351,10 +351,10 @@ ChangeBox::
|
|||
call z, EmptyAllSRAMBoxes ; if so, empty all boxes in SRAM
|
||||
call DisplayChangeBoxMenu
|
||||
call UpdateSprites
|
||||
ld hl, hFlagsFFF6
|
||||
ld hl, hUILayoutFlags
|
||||
set 1, [hl]
|
||||
call HandleMenuInput
|
||||
ld hl, hFlagsFFF6
|
||||
ld hl, hUILayoutFlags
|
||||
res 1, [hl]
|
||||
bit 1, a ; pressed b
|
||||
ret nz
|
||||
|
|
@ -445,12 +445,12 @@ DisplayChangeBoxMenu:
|
|||
ld b, 12
|
||||
ld c, 7
|
||||
call TextBoxBorder
|
||||
ld hl, hFlagsFFF6
|
||||
ld hl, hUILayoutFlags
|
||||
set 2, [hl]
|
||||
ld de, BoxNames
|
||||
hlcoord 13, 1
|
||||
call PlaceString
|
||||
ld hl, hFlagsFFF6
|
||||
ld hl, hUILayoutFlags
|
||||
res 2, [hl]
|
||||
ld a, [wCurrentBoxNum]
|
||||
and $7f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue