mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-14 08:37:49 +00:00
arrow and seperator back in
This commit is contained in:
parent
11ffc62238
commit
c2f46309ab
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit f6d6e839a86208279bf92e0b07b8c02b25913947
|
Subproject commit b3fec73999ce576d009f70b345f19da6b5f0f82a
|
|
@ -10,7 +10,7 @@ import flixel.util.FlxColor;
|
||||||
import flixel.util.FlxTimer;
|
import flixel.util.FlxTimer;
|
||||||
import funkin.graphics.adobeanimate.FlxAtlasSprite;
|
import funkin.graphics.adobeanimate.FlxAtlasSprite;
|
||||||
|
|
||||||
class LetterSort extends FlxTypedSpriteGroup<FreeplayLetter>
|
class LetterSort extends FlxTypedSpriteGroup<FlxSprite>
|
||||||
{
|
{
|
||||||
public var letters:Array<FreeplayLetter> = [];
|
public var letters:Array<FreeplayLetter> = [];
|
||||||
|
|
||||||
|
@ -18,15 +18,15 @@ class LetterSort extends FlxTypedSpriteGroup<FreeplayLetter>
|
||||||
|
|
||||||
public var changeSelectionCallback:String->Void;
|
public var changeSelectionCallback:String->Void;
|
||||||
|
|
||||||
var leftArrow:FreeplayLetter;
|
var leftArrow:FlxSprite;
|
||||||
var rightArrow:FreeplayLetter;
|
var rightArrow:FlxSprite;
|
||||||
|
|
||||||
public function new(x, y)
|
public function new(x, y)
|
||||||
{
|
{
|
||||||
super(x, y);
|
super(x, y);
|
||||||
|
|
||||||
leftArrow = new FreeplayLetter(-20, 15);
|
leftArrow = new FlxSprite(-20, 15).loadGraphic(Paths.image("freeplay/miniArrow"));
|
||||||
leftArrow.animation.play("arrow");
|
// leftArrow.animation.play("arrow");
|
||||||
leftArrow.flipX = true;
|
leftArrow.flipX = true;
|
||||||
add(leftArrow);
|
add(leftArrow);
|
||||||
|
|
||||||
|
@ -49,14 +49,15 @@ class LetterSort extends FlxTypedSpriteGroup<FreeplayLetter>
|
||||||
// don't put the last seperator
|
// don't put the last seperator
|
||||||
if (i == 4) continue;
|
if (i == 4) continue;
|
||||||
|
|
||||||
var sep:FreeplayLetter = new FreeplayLetter((i * 80) + 55, 20);
|
var sep:FlxSprite = new FlxSprite((i * 80) + 55, 20).loadGraphic(Paths.image("freeplay/seperator"));
|
||||||
sep.animation.play("seperator");
|
// sep.animation.play("seperator");
|
||||||
sep.color = letter.color.getDarkened(darkness);
|
sep.color = letter.color.getDarkened(darkness);
|
||||||
add(sep);
|
add(sep);
|
||||||
}
|
}
|
||||||
|
|
||||||
rightArrow = new FreeplayLetter(380, leftArrow.y);
|
rightArrow = new FlxSprite(380, 15).loadGraphic(Paths.image("freeplay/miniArrow"));
|
||||||
rightArrow.animation.play("arrow");
|
|
||||||
|
// rightArrow.animation.play("arrow");
|
||||||
add(rightArrow);
|
add(rightArrow);
|
||||||
|
|
||||||
changeSelection(0);
|
changeSelection(0);
|
||||||
|
|
Loading…
Reference in a new issue