Stat exp., DV, & Hidden Power display

s/o Crystal Legacy for their DV & Hidden Power display code, which got this off the ground. Credited aptly.

I modified what they had with Stat Exp, but the menu is a little jank and scrolling is buggy. Someone wanna pick that up?
This commit is contained in:
Llinos Evans 2024-08-28 14:01:06 +01:00
parent 8306a435c3
commit d8acbafc75
7 changed files with 531 additions and 47 deletions

View file

@ -215,7 +215,7 @@ _CGB_StatsScreenHPPals:
call LoadPalette_White_Col1_Col2_Black ; exp palette
ld hl, StatsScreenPagePals
ld de, wBGPals1 palette 3
ld bc, 3 palettes ; pink, green, and blue page palettes
ld bc, 4 palettes ; pink, green, and blue page palettes - now with orange!
ld a, BANK(wBGPals1)
call FarCopyWRAM
call WipeAttrmap
@ -230,20 +230,25 @@ _CGB_StatsScreenHPPals:
ld a, $2 ; exp palette
call ByteFill
hlcoord 13, 5, wAttrmap
hlcoord 11, 5, wAttrmap
lb bc, 2, 2
ld a, $3 ; pink page palette
call FillBoxCGB
hlcoord 15, 5, wAttrmap
hlcoord 13, 5, wAttrmap
lb bc, 2, 2
ld a, $4 ; green page palette
call FillBoxCGB
hlcoord 17, 5, wAttrmap
hlcoord 15, 5, wAttrmap
lb bc, 2, 2
ld a, $5 ; blue page palette
call FillBoxCGB
hlcoord 17, 5, wAttrmap
lb bc, 2, 2
ld a, $6 ; orange page palette
call FillBoxCGB
call ApplyAttrmap
call ApplyPals

View file

@ -375,7 +375,6 @@ LoadStatsScreenPals:
ret z
ld hl, StatsScreenPals
ld b, 0
dec c
add hl, bc
add hl, bc
ldh a, [rSVBK]