From 4d6db9c14b591eea03a813289ee6a67db2f654e5 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:14:24 -0700 Subject: [PATCH] selact all and select measure for notes --- source/funkin/editors/charter/Charter.hx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 3071f19a..c84268c7 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -227,6 +227,17 @@ class Charter extends UIState { onSelect: _note_subtractsustain }, null, + { + label: "Select all", + keybind: [CONTROL, A], + onSelect: _note_selectall + }, + { + label: "Select maeasure", + keybind: [CONTROL, SHIFT, A], + onSelect: _note_selectmeasure + }, + null, { label: "(0) Default Note", keybind: [ZERO] @@ -1267,6 +1278,16 @@ class Charter extends UIState { inline function _note_subtractsustain(t) changeNoteSustain(-1); + function _note_selectall(_) { + selection = [for (note in notesGroup.members) note]; + } + + function _note_selectmeasure(_) { + selection = [for (note in notesGroup.members) + if (note.step > Conductor.curMeasure*Conductor.getMeasureLength() && note.step < (Conductor.curMeasure+1)*Conductor.getMeasureLength()) note + ]; + } + #end function changeNoteSustain(change:Float) {