Tastudio - fix up some behavior of metadata dialogs when the first show
This commit is contained in:
parent
e0207b748f
commit
ae9e31d984
|
@ -94,7 +94,7 @@
|
|||
this.Controls.Add(this.CancelBtn);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "DefaultGreenzoneSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||
this.Text = "Default Savestate History Settings";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MinimumSize = new System.Drawing.Size(225, 165);
|
||||
this.Name = "GreenzoneSettingsForm";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||
this.Text = "Savestate History Settings";
|
||||
this.Load += new System.EventHandler(this.GreenzoneSettings_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.CapacityNumeric)).EndInit();
|
||||
|
|
|
@ -230,7 +230,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MinimumSize = new System.Drawing.Size(150, 311);
|
||||
this.Name = "MovieHeaderEditor";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||
this.Text = "Header Info";
|
||||
this.Load += new System.EventHandler(this.MovieHeaderEditor_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
|
|
@ -9,6 +9,7 @@ using System.Windows.Forms;
|
|||
using BizHawk.Client.Common;
|
||||
using BizHawk.Client.Common.MovieConversionExtensions;
|
||||
using BizHawk.Client.EmuHawk.ToolExtensions;
|
||||
using BizHawk.Client.EmuHawk.WinFormExtensions;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
|
@ -559,13 +560,21 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void HeaderMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
new MovieHeaderEditor(CurrentTasMovie) { Owner = GlobalWin.MainForm }.Show();
|
||||
new MovieHeaderEditor(CurrentTasMovie)
|
||||
{
|
||||
Owner = GlobalWin.MainForm,
|
||||
Location = this.ChildPointToScreen(TasView)
|
||||
}.Show();
|
||||
UpdateChangesIndicator();
|
||||
}
|
||||
|
||||
private void GreenzoneSettingsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
new GreenzoneSettingsForm(CurrentTasMovie.TasStateManager.Settings) { Owner = GlobalWin.MainForm }.Show();
|
||||
new GreenzoneSettingsForm(CurrentTasMovie.TasStateManager.Settings)
|
||||
{
|
||||
Owner = GlobalWin.MainForm,
|
||||
Location = this.ChildPointToScreen(TasView)
|
||||
}.Show();
|
||||
UpdateChangesIndicator();
|
||||
}
|
||||
|
||||
|
@ -586,7 +595,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void DefaultStateSettingsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
new DefaultGreenzoneSettings().ShowDialog();
|
||||
new DefaultGreenzoneSettings
|
||||
{
|
||||
Location = this.ChildPointToScreen(TasView)
|
||||
}.ShowDialog();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue