Edit Note option in Context Menu

Shortcut to the  ``Notes`` toolbox by right-clicking a note and selecting ``Edit Note``.
This commit is contained in:
Honton129
2026-03-06 03:31:27 -07:00
committed by Hundrec
parent bf3601ea8d
commit e710198afe
3 changed files with 13 additions and 1 deletions
+1 -1
Submodule assets updated: 145e844ba6...1d63fea18a
@@ -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]));
@@ -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]));