A bunch of tool dialogs didn't have the save window position flag hooked up
This commit is contained in:
parent
046d815bd3
commit
14054c6f1d
|
@ -49,7 +49,7 @@ namespace BizHawk.MultiClient
|
||||||
defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
||||||
defaultHeight = Size.Height;
|
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);
|
Location = new Point(Global.Config.NESPPUWndx, Global.Config.NESPPUWndy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ namespace BizHawk.MultiClient
|
||||||
defaultDomainWidth = CheatListView.Columns[3].Width;
|
defaultDomainWidth = CheatListView.Columns[3].Width;
|
||||||
defaultOnWidth = CheatListView.Columns[4].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);
|
Location = new Point(Global.Config.CheatsWndx, Global.Config.CheatsWndy);
|
||||||
|
|
||||||
if (Global.Config.CheatsWidth >= 0 && Global.Config.CheatsHeight >= 0)
|
if (Global.Config.CheatsWidth >= 0 && Global.Config.CheatsHeight >= 0)
|
||||||
|
|
|
@ -52,7 +52,7 @@ namespace BizHawk.MultiClient
|
||||||
defaultHeight = this.Size.Height;
|
defaultHeight = this.Size.Height;
|
||||||
if (Global.Config.HexEditorSaveWindowPosition)
|
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);
|
this.Location = new Point(Global.Config.HexEditorWndx, Global.Config.HexEditorWndy);
|
||||||
|
|
||||||
if (Global.Config.HexEditorWidth >= 0 && Global.Config.HexEditorHeight >= 0)
|
if (Global.Config.HexEditorWidth >= 0 && Global.Config.HexEditorHeight >= 0)
|
||||||
|
|
|
@ -126,6 +126,7 @@
|
||||||
this.Controls.Add(this.IDT_SCRIPTFILE);
|
this.Controls.Add(this.IDT_SCRIPTFILE);
|
||||||
this.Name = "LuaWindow";
|
this.Name = "LuaWindow";
|
||||||
this.Text = "Lua Script";
|
this.Text = "Lua Script";
|
||||||
|
this.Load += new System.EventHandler(this.LuaWindow_Load);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
|
|
|
@ -45,5 +45,10 @@ namespace BizHawk.MultiClient.tools
|
||||||
LuaImp.DoLuaFile(IDT_SCRIPTFILE.Text);
|
LuaImp.DoLuaFile(IDT_SCRIPTFILE.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void LuaWindow_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ namespace BizHawk.MultiClient
|
||||||
littleEndianToolStripMenuItem.Checked = true;
|
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);
|
this.Location = new Point(Global.Config.RamSearchWndx, Global.Config.RamSearchWndy);
|
||||||
|
|
||||||
if (Global.Config.RamSearchWidth >= 0 && Global.Config.RamSearchHeight >= 0)
|
if (Global.Config.RamSearchWidth >= 0 && Global.Config.RamSearchHeight >= 0)
|
||||||
|
|
|
@ -78,7 +78,7 @@ namespace BizHawk.MultiClient
|
||||||
defaultChangeWidth = WatchListView.Columns[3].Width;
|
defaultChangeWidth = WatchListView.Columns[3].Width;
|
||||||
NotesWidth = WatchListView.Columns[4].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);
|
Location = new Point(Global.Config.RamWatchWndx, Global.Config.RamWatchWndy);
|
||||||
|
|
||||||
if (Global.Config.RamWatchWidth >= 0 && Global.Config.RamWatchHeight >= 0)
|
if (Global.Config.RamWatchWidth >= 0 && Global.Config.RamWatchHeight >= 0)
|
||||||
|
|
Loading…
Reference in New Issue