From bbfb092f5b9c64b8543b0f36c883a5bf526fb299 Mon Sep 17 00:00:00 2001 From: Pixel <146671762+JVNpixels@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:44:26 -0700 Subject: [PATCH 1/2] Score Text Z Layer Index Fix Since the icons would go infront the score text, it would be unreadable, so this commit changes the Z Layer Index for the healthbar, score text, and icons. --- source/funkin/play/PlayState.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index f55cef3888..c4012a3966 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1562,7 +1562,7 @@ class PlayState extends MusicBeatSubState 'healthLerp', 0, 2); healthBar.scrollFactor.set(); healthBar.createFilledBar(Constants.COLOR_HEALTH_BAR_RED, Constants.COLOR_HEALTH_BAR_GREEN); - healthBar.zIndex = 801; + healthBar.zIndex = 800; add(healthBar); // The score text below the health bar. @@ -1688,7 +1688,7 @@ class PlayState extends MusicBeatSubState iconP2 = new HealthIcon('dad', 1); iconP2.y = healthBar.y - (iconP2.height / 2); dad.initHealthIcon(true); // Apply the character ID here - iconP2.zIndex = 850; + iconP2.zIndex = 801; add(iconP2); iconP2.cameras = [camHUD]; } @@ -1708,7 +1708,7 @@ class PlayState extends MusicBeatSubState iconP1 = new HealthIcon('bf', 0); iconP1.y = healthBar.y - (iconP1.height / 2); boyfriend.initHealthIcon(false); // Apply the character ID here - iconP1.zIndex = 850; + iconP1.zIndex = 801; add(iconP1); iconP1.cameras = [camHUD]; } From e596e605801a1e7dee158cd393cafb1083e644a7 Mon Sep 17 00:00:00 2001 From: Pixel <146671762+JVNpixels@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:46:59 -0700 Subject: [PATCH 2/2] Health Bar BG Z Index Fix Fix zIndex value from 800 to 799, since the healthBar zIndex value was already 800. --- source/funkin/play/PlayState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index c4012a3966..0ff68987bb 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -1555,7 +1555,7 @@ class PlayState extends MusicBeatSubState healthBarBG = FunkinSprite.create(0, healthBarYPos, 'healthBar'); healthBarBG.screenCenter(X); healthBarBG.scrollFactor.set(0, 0); - healthBarBG.zIndex = 800; + healthBarBG.zIndex = 799; add(healthBarBG); healthBar = new FlxBar(healthBarBG.x + 4, healthBarBG.y + 4, RIGHT_TO_LEFT, Std.int(healthBarBG.width - 8), Std.int(healthBarBG.height - 8), this,