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) {