Only when double-clicking TAStudio frame# cell, open dialog at cursor
fixes 128c8e621
see #3714
This commit is contained in:
parent
c3bd723c36
commit
04c70c3ead
|
@ -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;
|
||||
|
|
|
@ -903,7 +903,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
if (existingMarker != null)
|
||||
{
|
||||
MarkerControl.EditMarkerPopUp(existingMarker);
|
||||
MarkerControl.EditMarkerPopUp(existingMarker, openAtMouseCursor: true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue