Mirror notes Chart Editor command
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user