From 17bbfa97add1c19f3981e92e9cecee9fcea44cfe Mon Sep 17 00:00:00 2001 From: Zyflx <100444522+Zyflx@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:50:11 -0400 Subject: [PATCH 1/3] Update SongMenuItem.hx --- source/funkin/ui/freeplay/SongMenuItem.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/ui/freeplay/SongMenuItem.hx b/source/funkin/ui/freeplay/SongMenuItem.hx index 6e28d16eb..03d6abba8 100644 --- a/source/funkin/ui/freeplay/SongMenuItem.hx +++ b/source/funkin/ui/freeplay/SongMenuItem.hx @@ -431,7 +431,7 @@ class SongMenuItem extends FlxSpriteGroup else { songText.text = freeplayData.fullSongName; - if (freeplayData.songCharacter != null) pixelIcon.setCharacter(freeplayData.songCharacter); + if (freeplayData.songCharacter != null) pixelIcon.characterId = freeplayData.songCharacter; pixelIcon.visible = true; updateBPM(Std.int(freeplayData.songStartingBpm) ?? 0); updateDifficultyRating(freeplayData.difficultyRating ?? 0); From d2538238f39184516585ab630ae515a586e2b50d Mon Sep 17 00:00:00 2001 From: Zyflx <100444522+Zyflx@users.noreply.github.com> Date: Tue, 21 Oct 2025 17:51:03 -0400 Subject: [PATCH 2/3] Update PixelatedIcon.hx --- source/funkin/ui/PixelatedIcon.hx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/funkin/ui/PixelatedIcon.hx b/source/funkin/ui/PixelatedIcon.hx index e360dc162..69bec3d15 100644 --- a/source/funkin/ui/PixelatedIcon.hx +++ b/source/funkin/ui/PixelatedIcon.hx @@ -9,12 +9,18 @@ import funkin.graphics.FlxFilteredSprite; @:nullSafety class PixelatedIcon extends FlxFilteredSprite { + /** + * Name which represents the character this icon is for. + */ + public var characterId(default, set):String; + public function new(x:Float, y:Float) { super(x, y); this.makeGraphic(32, 32, 0x00000000); this.antialiasing = false; this.active = false; + this.characterId = ''; } public function setCharacter(char:String):Void @@ -85,4 +91,19 @@ class PixelatedIcon extends FlxFilteredSprite this.animation.play('idle'); } } + + function set_characterId(id:String):String + { + if (id == '') + { + return; + } + + if (characterId != id) + { + this.setCharacter(id); + } + + return characterId = id; + } } From 5aea8ff99ef86877e918818f9f6d2bd29fa8c73b Mon Sep 17 00:00:00 2001 From: Zyflx <100444522+Zyflx@users.noreply.github.com> Date: Tue, 21 Oct 2025 18:00:31 -0400 Subject: [PATCH 3/3] fix this lol --- source/funkin/ui/PixelatedIcon.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/ui/PixelatedIcon.hx b/source/funkin/ui/PixelatedIcon.hx index 69bec3d15..ae09cbbe0 100644 --- a/source/funkin/ui/PixelatedIcon.hx +++ b/source/funkin/ui/PixelatedIcon.hx @@ -96,7 +96,7 @@ class PixelatedIcon extends FlxFilteredSprite { if (id == '') { - return; + return characterId; } if (characterId != id)