mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
letter sort
This commit is contained in:
parent
84f908fbde
commit
65422393cf
|
@ -376,7 +376,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
speed: 0.26
|
speed: 0.26
|
||||||
});
|
});
|
||||||
|
|
||||||
var letterSort:LetterSort = new LetterSort(300, 100);
|
var letterSort:LetterSort = new LetterSort(400, 75);
|
||||||
add(letterSort);
|
add(letterSort);
|
||||||
|
|
||||||
exitMovers.set([letterSort],
|
exitMovers.set([letterSort],
|
||||||
|
|
|
@ -17,24 +17,32 @@ class LetterSort extends FlxTypedSpriteGroup<FreeplayLetter>
|
||||||
{
|
{
|
||||||
super(x, y);
|
super(x, y);
|
||||||
|
|
||||||
var leftArrow:FreeplayLetter = new FreeplayLetter(-20, 0);
|
var leftArrow:FreeplayLetter = new FreeplayLetter(-20, 20);
|
||||||
leftArrow.animation.play("arrow");
|
leftArrow.animation.play("arrow");
|
||||||
|
leftArrow.flipX = true;
|
||||||
add(leftArrow);
|
add(leftArrow);
|
||||||
|
|
||||||
for (i in 0...6)
|
for (i in 0...5)
|
||||||
{
|
{
|
||||||
var letter:FreeplayLetter = new FreeplayLetter(i * 80, 0, i);
|
var letter:FreeplayLetter = new FreeplayLetter(i * 80, 0, i);
|
||||||
add(letter);
|
add(letter);
|
||||||
|
|
||||||
letters.push(letter);
|
letters.push(letter);
|
||||||
|
|
||||||
if (i == 3) letter.alpha = 0.6;
|
if (i == 2) letter.alpha = 0.6;
|
||||||
|
|
||||||
var sep:FreeplayLetter = new FreeplayLetter((i * 80) + 50, 0);
|
// don't put the last seperator
|
||||||
|
if (i == 4) continue;
|
||||||
|
|
||||||
|
var sep:FreeplayLetter = new FreeplayLetter((i * 80) + 60, 20);
|
||||||
sep.animation.play("seperator");
|
sep.animation.play("seperator");
|
||||||
add(sep);
|
add(sep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var rightArrow:FreeplayLetter = new FreeplayLetter(380, 20);
|
||||||
|
rightArrow.animation.play("arrow");
|
||||||
|
add(rightArrow);
|
||||||
|
|
||||||
// changeSelection(-3);
|
// changeSelection(-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +59,7 @@ class LetterSort extends FlxTypedSpriteGroup<FreeplayLetter>
|
||||||
for (letter in letters)
|
for (letter in letters)
|
||||||
letter.changeLetter(diff);
|
letter.changeLetter(diff);
|
||||||
|
|
||||||
if (changeSelectionCallback != null) changeSelectionCallback(letters[3].arr[letters[3].curLetter]); // bullshit and long lol!
|
if (changeSelectionCallback != null) changeSelectionCallback(letters[2].arr[letters[2].curLetter]); // bullshit and long lol!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class SongMenuItem extends FlxSpriteGroup
|
||||||
songText.color = 0xFF43C1EA;
|
songText.color = 0xFF43C1EA;
|
||||||
add(songText);
|
add(songText);
|
||||||
|
|
||||||
favIcon = new FlxSprite(440, 40);
|
favIcon = new FlxSprite(400, 40);
|
||||||
favIcon.frames = Paths.getSparrowAtlas('freeplay/favHeart');
|
favIcon.frames = Paths.getSparrowAtlas('freeplay/favHeart');
|
||||||
favIcon.animation.addByPrefix('fav', "favorite heart", 24, false);
|
favIcon.animation.addByPrefix('fav', "favorite heart", 24, false);
|
||||||
favIcon.animation.play('fav');
|
favIcon.animation.play('fav');
|
||||||
|
@ -116,7 +116,7 @@ class SongMenuItem extends FlxSpriteGroup
|
||||||
|
|
||||||
public function intendedY(index:Int):Float
|
public function intendedY(index:Int):Float
|
||||||
{
|
{
|
||||||
return (index * ((height * realScaled) + 10)) + 160;
|
return (index * ((height * realScaled) + 10)) + 120;
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_selected(value:Bool):Bool
|
function set_selected(value:Bool):Bool
|
||||||
|
|
Loading…
Reference in a new issue