Open hold note context menu if note is hold note

This commit is contained in:
Lasercar 2025-02-26 19:07:44 +10:00
parent 5054c58dca
commit f4a63ccdfd

View file

@ -4814,7 +4814,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
// Show the context menu connected to the note.
if (useSingleNoteContextMenu)
{
this.openNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
// Open the hold note menu instead if the highlighted note has a length value
if (highlightedNote.noteData.length > 0) this.openHoldNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
else
this.openNoteContextMenu(FlxG.mouse.viewX, FlxG.mouse.viewY, highlightedNote.noteData);
}
else
{