Mirror notes Chart Editor command

This commit is contained in:
Lasercar
2026-01-29 22:07:57 -07:00
committed by Hundrec
parent 4917bd0591
commit aad014a0ba
6 changed files with 242 additions and 2 deletions
@@ -4,6 +4,7 @@ package funkin.ui.debug.charting.contextmenus;
import haxe.ui.containers.menus.MenuItem;
import funkin.data.song.SongData.SongNoteData;
import funkin.ui.debug.charting.commands.FlipNotesCommand;
import funkin.ui.debug.charting.commands.MirrorNotesCommand;
import funkin.ui.debug.charting.commands.RemoveNotesCommand;
import funkin.ui.debug.charting.commands.ExtendNoteLengthCommand;
@@ -12,6 +13,7 @@ import funkin.ui.debug.charting.commands.ExtendNoteLengthCommand;
class ChartEditorNoteContextMenu extends ChartEditorBaseContextMenu
{
var contextmenuFlip:MenuItem;
var contextmenuMirrorX:MenuItem;
var contextmenuDelete:MenuItem;
public var data:SongNoteData;
@@ -31,6 +33,10 @@ class ChartEditorNoteContextMenu extends ChartEditorBaseContextMenu
chartEditorState.performCommand(new FlipNotesCommand([data]));
}
contextmenuMirrorX.onClick = function(_) {
chartEditorState.performCommand(new MirrorNotesCommand([data], true, false, true, true));
}
contextmenuAddHold.onClick = function(_) {
chartEditorState.performCommand(new ExtendNoteLengthCommand(data, 4, STEPS));
}