From aee8df4fcb3062919eb7179b2d92da26eb014898 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Mon, 27 Nov 2023 23:29:48 -0500 Subject: [PATCH] default note snapps --- assets | 2 +- source/funkin/ui/debug/charting/ChartEditorState.hx | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/assets b/assets index 2dd4ab0eb..33ee5181c 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 2dd4ab0eb9979422c1c4cb849ebe899b7bf1758a +Subproject commit 33ee5181c09e954beaf3629e34375eceb832bfd2 diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 1794a3b7e..da3a3b0b6 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -2085,8 +2085,15 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState if (noteSnapQuantIndex < 0) noteSnapQuantIndex = SNAP_QUANTS.length - 1; }; playbarNoteSnap.onClick = _ -> { - noteSnapQuantIndex++; - if (noteSnapQuantIndex >= SNAP_QUANTS.length) noteSnapQuantIndex = 0; + if (FlxG.keys.pressed.SHIFT) + { + noteSnapQuantIndex = BASE_QUANT_INDEX; + } + else + { + noteSnapQuantIndex++; + if (noteSnapQuantIndex >= SNAP_QUANTS.length) noteSnapQuantIndex = 0; + } }; // Add functionality to the menu items.