mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-21 19:31:52 -04:00
Merge efeb599ad4
into d31ef12363
This commit is contained in:
commit
5d529ef65a
2 changed files with 9 additions and 1 deletions
source/funkin/ui/debug/charting
|
@ -138,6 +138,14 @@ class ChartEditorNoteDataToolbox extends ChartEditorBaseToolbox
|
|||
super.refresh();
|
||||
|
||||
toolboxNotesNoteKind.value = ChartEditorDropdowns.lookupNoteKind(chartEditorState.noteKindToPlace);
|
||||
if (toolboxNotesNoteKind.value.id == '~CUSTOM~' && chartEditorState.noteKindToPlace != null)
|
||||
{
|
||||
showCustom();
|
||||
}
|
||||
else
|
||||
{
|
||||
hideCustom();
|
||||
}
|
||||
toolboxNotesCustomKind.value = chartEditorState.noteKindToPlace;
|
||||
|
||||
createNoteKindParams(chartEditorState.noteKindToPlace);
|
||||
|
|
|
@ -214,7 +214,7 @@ class ChartEditorDropdowns
|
|||
public static function lookupNoteKind(noteKindId:Null<String>):DropDownEntry
|
||||
{
|
||||
if (noteKindId == null) return lookupNoteKind('');
|
||||
if (!NOTE_KINDS.exists(noteKindId)) return {id: '~CUSTOM~', text: 'Custom'};
|
||||
if (noteKindId != '' && !NOTE_KINDS.exists(noteKindId)) return {id: '~CUSTOM~', text: 'Custom'};
|
||||
return {id: noteKindId ?? '', text: NOTE_KINDS.get(noteKindId) ?? 'Unknown'};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue