mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 11:22:55 +00:00
loop through all note style entries
This commit is contained in:
parent
ca69e7b850
commit
9d7846a0d5
|
@ -70,20 +70,26 @@ class ChartEditorNoteSprite extends FlxSprite
|
|||
|
||||
this.parentState = parent;
|
||||
|
||||
var entries:Array<String> = NoteStyleRegistry.instance.listEntryIds();
|
||||
|
||||
if (noteFrameCollection == null)
|
||||
{
|
||||
buildEmptyFrameCollection();
|
||||
|
||||
addNoteStyleFrames(fetchNoteStyle('funkin'));
|
||||
addNoteStyleFrames(fetchNoteStyle('pixel'));
|
||||
for (entry in entries)
|
||||
{
|
||||
addNoteStyleFrames(fetchNoteStyle(entry));
|
||||
}
|
||||
}
|
||||
|
||||
if (noteFrameCollection == null) throw 'ERROR: Could not initialize note sprite animations.';
|
||||
|
||||
this.frames = noteFrameCollection;
|
||||
|
||||
addNoteStyleAnimations(fetchNoteStyle('funkin'));
|
||||
addNoteStyleAnimations(fetchNoteStyle('pixel'));
|
||||
for (entry in entries)
|
||||
{
|
||||
addNoteStyleAnimations(fetchNoteStyle(entry));
|
||||
}
|
||||
}
|
||||
|
||||
static var noteFrameCollection:Null<FlxFramesCollection> = null;
|
||||
|
|
Loading…
Reference in a new issue