tastudio: bind autorestore, turboseek and followcursor.

This commit is contained in:
feos 2016-06-13 15:43:28 +03:00
parent db32c201d4
commit af4b3ec752
5 changed files with 20 additions and 8 deletions

View File

@ -221,6 +221,9 @@ namespace BizHawk.Client.Common
Bind("TAStudio", "Add Branch", "Alt+Insert"),
Bind("TAStudio", "Delete Branch", "Alt+Delete"),
Bind("TAStudio", "Toggle Follow Cursor", "Shift+F"),
Bind("TAStudio", "Toggle Auto-Restore", "Shift+R"),
Bind("TAStudio", "Toggle Turbo Seek", "Shift+S"),
Bind("SNES", "Toggle BG 1"),
Bind("SNES", "Toggle BG 2"),

View File

@ -353,6 +353,15 @@ namespace BizHawk.Client.EmuHawk
case "Delete Branch":
GlobalWin.Tools.TAStudio.RemoveBranchExtrenal();
break;
case "Toggle Follow Cursor":
GlobalWin.Tools.TAStudio.TasPlaybackBox.FollowCursor ^= true;
break;
case "Toggle Auto-Restore":
GlobalWin.Tools.TAStudio.TasPlaybackBox.AutoRestore ^= true;
break;
case "Toggle Turbo Seek":
GlobalWin.Tools.TAStudio.TasPlaybackBox.TurboSeek ^= true;
break;
// SNES
case "Toggle BG 1":

View File

@ -17,7 +17,7 @@ namespace BizHawk.Client.EmuHawk
public TAStudio Tastudio { get; set; }
[Browsable(false)]
[Browsable(true)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public bool TurboSeek
{
@ -28,11 +28,11 @@ namespace BizHawk.Client.EmuHawk
set
{
TurboSeekCheckbox.Checked = Global.Config.TurboSeek = value;
TurboSeekCheckbox.Checked = value;
}
}
[Browsable(false)]
[Browsable(true)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public bool AutoRestore
{
@ -43,11 +43,11 @@ namespace BizHawk.Client.EmuHawk
set
{
AutoRestoreCheckbox.Checked = Tastudio.Settings.AutoRestoreLastPosition = value;
AutoRestoreCheckbox.Checked = value;
}
}
[Browsable(false)]
[Browsable(true)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
public bool FollowCursor
{

View File

@ -1692,7 +1692,7 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripMenuItem SettingsSubMenu;
private StatusStripEx TasStatusStrip;
private System.Windows.Forms.ToolStripStatusLabel MessageStatusLabel;
private PlaybackBox TasPlaybackBox;
public PlaybackBox TasPlaybackBox;
private System.Windows.Forms.ToolStripStatusLabel SplicerStatusLabel;
private System.Windows.Forms.ToolStripMenuItem MetaSubMenu;
private System.Windows.Forms.ToolStripMenuItem HeaderMenuItem;

View File

@ -993,8 +993,8 @@ namespace BizHawk.Client.EmuHawk
private void TAStudio_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F)
TasPlaybackBox.FollowCursor ^= true;
//if (e.KeyCode == Keys.F)
// TasPlaybackBox.FollowCursor ^= true;
}
private void MainVertialSplit_SplitterMoved(object sender, SplitterEventArgs e)