diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 4f9f76a780..9372d7165b 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -9,6 +9,7 @@ using BizHawk.Client.EmuHawk.ToolExtensions; using BizHawk.Client.EmuHawk.Properties; using BizHawk.Common.StringExtensions; using BizHawk.Emulation.Common; +using BizHawk.WinForms.Controls; namespace BizHawk.Client.EmuHawk { @@ -119,6 +120,25 @@ namespace BizHawk.Client.EmuHawk public TAStudio() { InitializeComponent(); + ToolStripMenuItemEx goToFrameMenuItem = new() + { + ShortcutKeys = Keys.Control | Keys.G, + Text = "Go to Frame...", + }; + goToFrameMenuItem.Click += (_, _) => + { + MainForm.PauseEmulator(); + using InputPrompt dialog = new() + { + Text = "Go to Frame", + Message = "Jump/Seek to frame index:", + TextInputType = InputPrompt.InputType.Unsigned, + }; + if (this.ShowDialogWithTempMute(dialog).IsOk()) GoToFrame(int.Parse(dialog.PromptText)); + }; + EditSubMenu.DropDownItems.Insert( + EditSubMenu.DropDownItems.IndexOf(ReselectClipboardMenuItem) + 1, + goToFrameMenuItem); RecentSubMenu.Image = Resources.Recent; recentMacrosToolStripMenuItem.Image = Resources.Recent;