Skip to content

Commit

Permalink
Open hold note context menu if note is hold note
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasercar committed Feb 26, 2025
1 parent 5054c58 commit f4a63cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/funkin/ui/debug/charting/ChartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit f4a63cc

Please sign in to comment.