From e710198afec9a0fe19effe4cd196ab3a247f4784 Mon Sep 17 00:00:00 2001 From: Honton129 <85850584+Honton129@users.noreply.github.com> Date: Thu, 26 Feb 2026 19:45:51 -0300 Subject: [PATCH] Edit Note option in Context Menu Shortcut to the ``Notes`` toolbox by right-clicking a note and selecting ``Edit Note``. --- assets | 2 +- .../charting/contextmenus/ChartEditorHoldNoteContextMenu.hx | 6 ++++++ .../charting/contextmenus/ChartEditorNoteContextMenu.hx | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/assets b/assets index 145e844ba..1d63fea18 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 145e844ba6a4ce3b0170b81e5198e3720646bb0c +Subproject commit 1d63fea18ae371d3536de9ebadce9ffd3ec8f752 diff --git a/source/funkin/ui/debug/charting/contextmenus/ChartEditorHoldNoteContextMenu.hx b/source/funkin/ui/debug/charting/contextmenus/ChartEditorHoldNoteContextMenu.hx index 17a468d52..326c43c3f 100644 --- a/source/funkin/ui/debug/charting/contextmenus/ChartEditorHoldNoteContextMenu.hx +++ b/source/funkin/ui/debug/charting/contextmenus/ChartEditorHoldNoteContextMenu.hx @@ -11,6 +11,7 @@ import funkin.ui.debug.charting.commands.ExtendNoteLengthCommand; @:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/context-menus/hold-note.xml")) class ChartEditorHoldNoteContextMenu extends ChartEditorBaseContextMenu { + var contextmenuEdit:MenuItem; var contextmenuFlip:MenuItem; var contextmenuDelete:MenuItem; @@ -27,6 +28,11 @@ class ChartEditorHoldNoteContextMenu extends ChartEditorBaseContextMenu public function initialize():Void { // NOTE: Remember to use commands here to ensure undo/redo works properly + contextmenuEdit.onClick = function(_) + { + chartEditorState.showToolbox(ChartEditorState.CHART_EDITOR_TOOLBOX_NOTE_DATA_LAYOUT); + } + contextmenuFlip.onClick = function(_) { chartEditorState.performCommand(new FlipNotesCommand([data])); diff --git a/source/funkin/ui/debug/charting/contextmenus/ChartEditorNoteContextMenu.hx b/source/funkin/ui/debug/charting/contextmenus/ChartEditorNoteContextMenu.hx index aac0c2845..89b8bc46b 100644 --- a/source/funkin/ui/debug/charting/contextmenus/ChartEditorNoteContextMenu.hx +++ b/source/funkin/ui/debug/charting/contextmenus/ChartEditorNoteContextMenu.hx @@ -12,6 +12,7 @@ import funkin.ui.debug.charting.commands.ExtendNoteLengthCommand; @:build(haxe.ui.ComponentBuilder.build("assets/exclude/data/ui/chart-editor/context-menus/note.xml")) class ChartEditorNoteContextMenu extends ChartEditorBaseContextMenu { + var contextmenuEdit:MenuItem; var contextmenuFlip:MenuItem; var contextmenuMirrorX:MenuItem; var contextmenuDelete:MenuItem; @@ -29,6 +30,11 @@ class ChartEditorNoteContextMenu extends ChartEditorBaseContextMenu public function initialize():Void { // NOTE: Remember to use commands here to ensure undo/redo works properly + contextmenuEdit.onClick = function(_) + { + chartEditorState.showToolbox(ChartEditorState.CHART_EDITOR_TOOLBOX_NOTE_DATA_LAYOUT); + } + contextmenuFlip.onClick = function(_) { chartEditorState.performCommand(new FlipNotesCommand([data]));