1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-25 06:36:43 +00:00

Hide the pixel icon in the Results screen when there's no matching character

This commit is contained in:
EliteMasterEric 2024-09-27 14:25:17 -04:00
parent b5f3996236
commit 2eb5208c46
2 changed files with 6 additions and 1 deletions

View file

@ -50,8 +50,13 @@ class PixelatedIcon extends FlxFilteredSprite
if (!openfl.utils.Assets.exists(Paths.image(charPath)))
{
trace('[WARN] Character ${char} has no freeplay icon.');
this.visible = false;
return;
}
else
{
this.visible = true;
}
var isAnimated = openfl.utils.Assets.exists(Paths.file('images/$charPath.xml'));

View file

@ -678,7 +678,7 @@ class SongMenuItem extends FlxSpriteGroup
public function confirm():Void
{
if (songText != null) songText.flickerText();
if (pixelIcon != null)
if (pixelIcon != null && pixelIcon.visible)
{
pixelIcon.animation.play('confirm');
}