diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs index 3bfbf6c7b4..6890fb3fb4 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/MarkerControl.cs @@ -205,7 +205,7 @@ public void UpdateTextColumnWidth() } } - 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 @@ public void EditMarkerPopUp(TasMovieMarker marker) ? 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; diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 65832afc01..28ed0022c7 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -903,7 +903,7 @@ private void TasView_MouseDoubleClick(object sender, MouseEventArgs e) if (existingMarker != null) { - MarkerControl.EditMarkerPopUp(existingMarker); + MarkerControl.EditMarkerPopUp(existingMarker, openAtMouseCursor: true); } else {