1
0
Fork 0
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:
lemz 2024-06-02 02:58:56 +02:00 committed by EliteMasterEric
parent ca69e7b850
commit 9d7846a0d5

View file

@ -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;