Tastudio - rotate menu item

This commit is contained in:
adelikat 2014-10-15 17:07:01 +00:00
parent c14028d6c8
commit 7eb28577d0
3 changed files with 32 additions and 2 deletions

View File

@ -546,7 +546,7 @@ namespace BizHawk.Client.EmuHawk
{
Name = "RotateMenuItem",
Text = "Rotate",
ShortcutKeyDisplayString = "Ctrl+Shift+F",
ShortcutKeyDisplayString = RotateHotkeyStr,
};
rotate.Click += (o, ev) =>
@ -557,6 +557,11 @@ namespace BizHawk.Client.EmuHawk
yield return rotate;
}
public string RotateHotkeyStr
{
get { return "Ctrl+Shift+F"; }
}
#endregion
#region Paint

View File

@ -86,6 +86,8 @@ namespace BizHawk.Client.EmuHawk
this.OsdInBranchScreenshotsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
this.AutopauseAtEndOfMovieMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator20 = new System.Windows.Forms.ToolStripSeparator();
this.RotateMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.MetaSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.HeaderMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.GreenzoneSettingsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -478,7 +480,9 @@ namespace BizHawk.Client.EmuHawk
this.BranchesRestoreEntireMovieMenuItem,
this.OsdInBranchScreenshotsMenuItem,
this.toolStripSeparator14,
this.AutopauseAtEndOfMovieMenuItem});
this.AutopauseAtEndOfMovieMenuItem,
this.toolStripSeparator20,
this.RotateMenuItem});
this.ConfigSubMenu.Name = "ConfigSubMenu";
this.ConfigSubMenu.Size = new System.Drawing.Size(55, 20);
this.ConfigSubMenu.Text = "&Config";
@ -579,6 +583,18 @@ namespace BizHawk.Client.EmuHawk
this.AutopauseAtEndOfMovieMenuItem.Text = "Autopause at end of Movie";
this.AutopauseAtEndOfMovieMenuItem.Click += new System.EventHandler(this.AutopauseAtEndMenuItem_Click);
//
// toolStripSeparator20
//
this.toolStripSeparator20.Name = "toolStripSeparator20";
this.toolStripSeparator20.Size = new System.Drawing.Size(285, 6);
//
// RotateMenuItem
//
this.RotateMenuItem.Name = "RotateMenuItem";
this.RotateMenuItem.Size = new System.Drawing.Size(288, 22);
this.RotateMenuItem.Text = "Rotate";
this.RotateMenuItem.Click += new System.EventHandler(this.RotateMenuItem_Click);
//
// MetaSubMenu
//
this.MetaSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -1046,5 +1062,7 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripMenuItem GreenZzoneIntegrityCheckMenuItem;
private System.Windows.Forms.ToolStripMenuItem ColumnsSubMenu;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator19;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator20;
private System.Windows.Forms.ToolStripMenuItem RotateMenuItem;
}
}

View File

@ -975,6 +975,8 @@ namespace BizHawk.Client.EmuHawk
DrawInputByDraggingMenuItem.Checked = Global.Config.TAStudioDrawInput;
AutopauseAtEndOfMovieMenuItem.Checked = Global.Config.TAStudioAutoPause;
EmptyNewMarkerNotesMenuItem.Checked = Global.Config.TAStudioEmptyMarkers;
RotateMenuItem.ShortcutKeyDisplayString = TasView.RotateHotkeyStr;
}
private void DrawInputByDraggingMenuItem_Click(object sender, EventArgs e)
@ -994,6 +996,11 @@ namespace BizHawk.Client.EmuHawk
Global.Config.TAStudioAutoPause ^= true;
}
private void RotateMenuItem_Click(object sender, EventArgs e)
{
TasView.HorizontalOrientation ^= true;
}
#endregion
#region Metadata