sex
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package funkin.game;
|
||||
|
||||
import flixel.util.FlxSort;
|
||||
import flixel.FlxCamera;
|
||||
import funkin.system.Conductor;
|
||||
import flixel.group.FlxGroup.FlxTypedGroup;
|
||||
@@ -7,6 +8,17 @@ import flixel.group.FlxGroup.FlxTypedGroup;
|
||||
class NoteGroup extends FlxTypedGroup<Note> {
|
||||
var __loopSprite:Note;
|
||||
var i:Int = 0;
|
||||
|
||||
public function addNotes(notes:Array<Note>) {
|
||||
for(e in notes) add(e);
|
||||
sortNotes();
|
||||
}
|
||||
|
||||
public function sortNotes() {
|
||||
sort(function(i, n1, n2) {
|
||||
return FlxSort.byValues(FlxSort.ASCENDING, n1.strumTime, n2.strumTime);
|
||||
});
|
||||
}
|
||||
public override function update(elapsed:Float) {
|
||||
i = 0;
|
||||
__loopSprite = null;
|
||||
@@ -20,10 +32,6 @@ class NoteGroup extends FlxTypedGroup<Note> {
|
||||
}
|
||||
}
|
||||
|
||||
// public override function sort() {
|
||||
|
||||
// }
|
||||
|
||||
public override function draw() {
|
||||
@:privateAccess var oldDefaultCameras = FlxCamera._defaultCameras;
|
||||
@:privateAccess if (cameras != null) FlxCamera._defaultCameras = cameras;
|
||||
|
||||
@@ -209,6 +209,7 @@ class KeybindsOptions extends MusicBeatSubstate {
|
||||
else
|
||||
FlxG.switchState(new OptionsMenu());
|
||||
controls.setKeyboardScheme(Solo);
|
||||
Options.save();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user