Only when double-clicking TAStudio frame# cell, open dialog at cursor

fixes 128c8e621
see #3714
This commit is contained in:
YoshiRulz 2024-11-29 00:36:25 +10:00
parent c3bd723c36
commit 04c70c3ead
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 7 additions and 3 deletions

View File

@ -205,7 +205,7 @@ namespace BizHawk.Client.EmuHawk
}
}
public void EditMarkerPopUp(TasMovieMarker marker)
public void EditMarkerPopUp(TasMovieMarker marker, bool openAtMouseCursor = false)
{
var markerFrame = marker.Frame;
var i = new InputPrompt
@ -218,7 +218,11 @@ namespace BizHawk.Client.EmuHawk
? Markers.PreviousOrCurrent(markerFrame).Message
: ""
};
if (openAtMouseCursor)
{
i.StartPosition = FormStartPosition.Manual;
i.Location = Cursor.Position - i.HalfSize(); // eww
}
if (!this.ShowDialogWithTempMute(i).IsOk()) return;
marker.Message = i.PromptText;

View File

@ -903,7 +903,7 @@ namespace BizHawk.Client.EmuHawk
if (existingMarker != null)
{
MarkerControl.EditMarkerPopUp(existingMarker);
MarkerControl.EditMarkerPopUp(existingMarker, openAtMouseCursor: true);
}
else
{