From 0b2bb3391c63d7a7e5c664afe1bb79e7a83dfc93 Mon Sep 17 00:00:00 2001 From: zacksgamerz <81515012+zacksgamerz@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:35:29 +0700 Subject: [PATCH] Fix the difficulty sprites not showing up in Freeplay. --- source/funkin/ui/freeplay/FreeplayState.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index 10a1e3aeb..44f311872 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -655,11 +655,14 @@ class FreeplayState extends MusicBeatSubState } FlxTween.cancelTweensOf(grpDifficulties); - for (diff in grpDifficulties) + for (diff in grpDifficulties.group.members) { if (diff == null) continue; FlxTween.cancelTweensOf(diff); FlxTween.tween(diff, {x: (CUTOUT_WIDTH * DJ_POS_MULTI) + 90}, 0.6, {ease: FlxEase.quartOut}); + diff.y = 80; + final isCurrentDiff:Bool = diff.difficultyId == currentDifficulty; + diff.visible = isCurrentDiff; } FlxTween.tween(grpDifficulties, {x: (CUTOUT_WIDTH * DJ_POS_MULTI) + 90}, 0.6, {ease: FlxEase.quartOut});