mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-15 17:17:17 +00:00
pixel icon bullshits
This commit is contained in:
parent
fdd8e0445e
commit
be5907ba12
|
@ -44,7 +44,15 @@ class HealthIcon extends FlxSprite
|
|||
|
||||
function loadIcon(char:String):Void
|
||||
{
|
||||
var realChar:String = char.split('-')[0].trim();
|
||||
var realChar:String = "";
|
||||
switch (char)
|
||||
{
|
||||
case 'bf-pixel':
|
||||
realChar = char;
|
||||
default:
|
||||
realChar = char.split('-')[0].trim();
|
||||
}
|
||||
|
||||
loadGraphic(Paths.image('icons/icon-' + realChar), true, 150, 150);
|
||||
animation.add(realChar, [0, 1], 0, false, isPlayer);
|
||||
animation.play(realChar);
|
||||
|
|
Loading…
Reference in a new issue