TAStudio - implement Restore Defaults menu item (for the features implemented so far at least). Make dialog TopMost = true by default

This commit is contained in:
adelikat 2013-12-14 14:48:05 +00:00
parent 5fee952c3a
commit 518e53e361
3 changed files with 10 additions and 2 deletions

View File

@ -476,7 +476,7 @@ namespace BizHawk.Client.Common
// TAStudio Dialog
public bool TAStudioSaveWindowPosition = true;
public bool AutoloadTAStudio = false;
public bool TAStudioTopMost = false;
public bool TAStudioTopMost = true;
public int TASWndx = -1;
public int TASWndy = -1;
public int TASWidth = -1;

View File

@ -615,10 +615,10 @@ namespace BizHawk.Client.EmuHawk
//
// RestoreDefaultSettingsMenuItem
//
this.RestoreDefaultSettingsMenuItem.Enabled = false;
this.RestoreDefaultSettingsMenuItem.Name = "RestoreDefaultSettingsMenuItem";
this.RestoreDefaultSettingsMenuItem.Size = new System.Drawing.Size(199, 22);
this.RestoreDefaultSettingsMenuItem.Text = "Restore Default Settings";
this.RestoreDefaultSettingsMenuItem.Click += new System.EventHandler(this.RestoreDefaultSettingsMenuItem_Click);
//
// HelpSubMenu
//

View File

@ -366,6 +366,14 @@ namespace BizHawk.Client.EmuHawk
Global.Config.TAStudioTopMost ^= true;
}
private void RestoreDefaultSettingsMenuItem_Click(object sender, EventArgs e)
{
Size = new Size(_defaultWidth, _defaultHeight);
Global.Config.TAStudioSaveWindowPosition = true;
Global.Config.TAStudioTopMost = true;
}
#endregion
#region TASView Events