TAStudio - use saved window position, save window size, slight GUI tweaks
This commit is contained in:
parent
d6897ad328
commit
672b8455fd
|
@ -200,8 +200,8 @@
|
|||
//
|
||||
this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.saveWindowPositionToolStripMenuItem,
|
||||
this.restoreWindowToolStripMenuItem,
|
||||
this.autoloadToolStripMenuItem});
|
||||
this.autoloadToolStripMenuItem,
|
||||
this.restoreWindowToolStripMenuItem});
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(58, 20);
|
||||
this.settingsToolStripMenuItem.Text = "&Settings";
|
||||
|
@ -242,7 +242,7 @@
|
|||
this.StopButton});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(37, 27);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(185, 25);
|
||||
this.toolStrip1.Size = new System.Drawing.Size(154, 25);
|
||||
this.toolStrip1.TabIndex = 0;
|
||||
//
|
||||
// RewindToBeginning
|
||||
|
@ -368,6 +368,8 @@
|
|||
//
|
||||
// TASView
|
||||
//
|
||||
this.TASView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.TASView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.Frame,
|
||||
this.Log});
|
||||
|
|
|
@ -159,6 +159,15 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
||||
defaultHeight = Size.Height;
|
||||
|
||||
if (Global.Config.TAStudioSaveWindowPosition && Global.Config.TASWndx >= 0 && Global.Config.TASWndy >= 0)
|
||||
this.Location = new Point(Global.Config.TASWndx, Global.Config.TASWndy);
|
||||
|
||||
if (Global.Config.TASWidth >= 0 && Global.Config.TASHeight >= 0)
|
||||
{
|
||||
this.Size = new System.Drawing.Size(Global.Config.TASWidth, Global.Config.TASHeight);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void SaveConfigSettings()
|
||||
|
|
Loading…
Reference in New Issue