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:
parent
b5f3996236
commit
2eb5208c46
|
@ -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'));
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue