A bunch of tool dialogs didn't have the save window position flag hooked up

This commit is contained in:
andres.delikat 2011-04-06 23:25:53 +00:00
parent 046d815bd3
commit 14054c6f1d
7 changed files with 11 additions and 5 deletions

View File

@ -49,7 +49,7 @@ 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.NESPPUWndx >= 0 && Global.Config.NESPPUWndy >= 0)
if (Global.Config.NESPPUSaveWindowPosition && Global.Config.NESPPUWndx >= 0 && Global.Config.NESPPUWndy >= 0)
Location = new Point(Global.Config.NESPPUWndx, Global.Config.NESPPUWndy);
}

View File

@ -230,7 +230,7 @@ namespace BizHawk.MultiClient
defaultDomainWidth = CheatListView.Columns[3].Width;
defaultOnWidth = CheatListView.Columns[4].Width;
if (Global.Config.CheatsWndx >= 0 && Global.Config.CheatsWndy >= 0)
if (Global.Config.CheatsSaveWindowPosition && Global.Config.CheatsWndx >= 0 && Global.Config.CheatsWndy >= 0)
Location = new Point(Global.Config.CheatsWndx, Global.Config.CheatsWndy);
if (Global.Config.CheatsWidth >= 0 && Global.Config.CheatsHeight >= 0)

View File

@ -52,7 +52,7 @@ namespace BizHawk.MultiClient
defaultHeight = this.Size.Height;
if (Global.Config.HexEditorSaveWindowPosition)
{
if (Global.Config.HexEditorWndx >= 0 && Global.Config.HexEditorWndy >= 0)
if (Global.Config.HexEditorSaveWindowPosition && Global.Config.HexEditorWndx >= 0 && Global.Config.HexEditorWndy >= 0)
this.Location = new Point(Global.Config.HexEditorWndx, Global.Config.HexEditorWndy);
if (Global.Config.HexEditorWidth >= 0 && Global.Config.HexEditorHeight >= 0)

View File

@ -126,6 +126,7 @@
this.Controls.Add(this.IDT_SCRIPTFILE);
this.Name = "LuaWindow";
this.Text = "Lua Script";
this.Load += new System.EventHandler(this.LuaWindow_Load);
this.ResumeLayout(false);
this.PerformLayout();

View File

@ -45,5 +45,10 @@ namespace BizHawk.MultiClient.tools
LuaImp.DoLuaFile(IDT_SCRIPTFILE.Text);
}
private void LuaWindow_Load(object sender, EventArgs e)
{
}
}
}

View File

@ -90,7 +90,7 @@ namespace BizHawk.MultiClient
littleEndianToolStripMenuItem.Checked = true;
}
if (Global.Config.RamSearchWndx >= 0 && Global.Config.RamSearchWndy >= 0)
if (Global.Config.RamSearchSaveWindowPosition && Global.Config.RamSearchWndx >= 0 && Global.Config.RamSearchWndy >= 0)
this.Location = new Point(Global.Config.RamSearchWndx, Global.Config.RamSearchWndy);
if (Global.Config.RamSearchWidth >= 0 && Global.Config.RamSearchHeight >= 0)

View File

@ -78,7 +78,7 @@ namespace BizHawk.MultiClient
defaultChangeWidth = WatchListView.Columns[3].Width;
NotesWidth = WatchListView.Columns[4].Width;
if (Global.Config.RamWatchWndx >= 0 && Global.Config.RamWatchWndy >= 0)
if (Global.Config.RamWatchSaveWindowPosition && Global.Config.RamWatchWndx >= 0 && Global.Config.RamWatchWndy >= 0)
Location = new Point(Global.Config.RamWatchWndx, Global.Config.RamWatchWndy);
if (Global.Config.RamWatchWidth >= 0 && Global.Config.RamWatchHeight >= 0)