1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 19:33:36 +00:00

Fix Note Styles in PlayState & Chart Editor

This commit is contained in:
Keoiki 2024-05-21 23:52:40 +03:00
parent 25016f45f9
commit 4e47bfe68b
2 changed files with 3 additions and 6 deletions

View file

@ -1730,12 +1730,7 @@ class PlayState extends MusicBeatSubState
*/ */
function initStrumlines():Void function initStrumlines():Void
{ {
var noteStyleId:String = switch (currentStageId) var noteStyleId:String = currentChart.noteStyle;
{
case 'school': 'pixel';
case 'schoolEvil': 'pixel';
default: Constants.DEFAULT_NOTE_STYLE;
}
var noteStyle:NoteStyle = NoteStyleRegistry.instance.fetchEntry(noteStyleId); var noteStyle:NoteStyle = NoteStyleRegistry.instance.fetchEntry(noteStyleId);
if (noteStyle == null) noteStyle = NoteStyleRegistry.instance.fetchDefault(); if (noteStyle == null) noteStyle = NoteStyleRegistry.instance.fetchDefault();

View file

@ -104,6 +104,8 @@ class ChartEditorMetadataToolbox extends ChartEditorBaseToolbox
if (event.data?.id == null) return; if (event.data?.id == null) return;
chartEditorState.currentSongNoteStyle = event.data.id; chartEditorState.currentSongNoteStyle = event.data.id;
}; };
var startingValueNoteStyle = ChartEditorDropdowns.populateDropdownWithNoteStyles(inputNoteStyle, chartEditorState.currentSongMetadata.playData.noteStyle);
inputNoteStyle.value = startingValueNoteStyle;
inputBPM.onChange = function(event:UIEvent) { inputBPM.onChange = function(event:UIEvent) {
if (event.value == null || event.value <= 0) return; if (event.value == null || event.value <= 0) return;