Gui option to start in full screen
This commit is contained in:
parent
a8530cbdc3
commit
ec0cba444e
|
@ -67,6 +67,7 @@ namespace BizHawk.Client.Common
|
|||
public bool PauseWhenMenuActivated = true;
|
||||
public bool SaveWindowPosition = true;
|
||||
public bool StartPaused = false;
|
||||
public bool StartFullscreen = false;
|
||||
public int MainWndx = -1; // Negative numbers will be ignored
|
||||
public int MainWndy = -1;
|
||||
public bool RunInBackground = true;
|
||||
|
|
|
@ -210,6 +210,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
|
||||
}
|
||||
|
||||
bool startFullscreen = false;
|
||||
for (int i = 0; i < args.Length; i++)
|
||||
{
|
||||
// For some reason sometimes visual studio will pass this to us on the commandline. it makes no sense.
|
||||
|
@ -248,7 +249,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
else if (arg.StartsWith("--fullscreen"))
|
||||
{
|
||||
ToggleFullscreen();
|
||||
startFullscreen = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -303,6 +304,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
if (startFullscreen || Global.Config.StartFullscreen)
|
||||
{
|
||||
ToggleFullscreen();
|
||||
}
|
||||
|
||||
if (cmdLoadState != null && Global.Game != null)
|
||||
{
|
||||
LoadQuickSave("QuickSave" + cmdLoadState);
|
||||
|
|
|
@ -88,6 +88,7 @@
|
|||
this.RecentRomsNumeric = new System.Windows.Forms.NumericUpDown();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.StartFullScreenCheckbox = new System.Windows.Forms.CheckBox();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage3.SuspendLayout();
|
||||
|
@ -144,6 +145,7 @@
|
|||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.StartFullScreenCheckbox);
|
||||
this.tabPage1.Controls.Add(this.label14);
|
||||
this.tabPage1.Controls.Add(this.label3);
|
||||
this.tabPage1.Controls.Add(this.SingleInstanceModeCheckbox);
|
||||
|
@ -844,6 +846,16 @@
|
|||
this.label11.TabIndex = 0;
|
||||
this.label11.Text = "Roms";
|
||||
//
|
||||
// StartFullScreenCheckbox
|
||||
//
|
||||
this.StartFullScreenCheckbox.AutoSize = true;
|
||||
this.StartFullScreenCheckbox.Location = new System.Drawing.Point(104, 100);
|
||||
this.StartFullScreenCheckbox.Name = "StartFullScreenCheckbox";
|
||||
this.StartFullScreenCheckbox.Size = new System.Drawing.Size(107, 17);
|
||||
this.StartFullScreenCheckbox.TabIndex = 13;
|
||||
this.StartFullScreenCheckbox.Text = "Start in fullscreen";
|
||||
this.StartFullScreenCheckbox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// EmuHawkOptions
|
||||
//
|
||||
this.AcceptButton = this.OkBtn;
|
||||
|
@ -942,5 +954,6 @@
|
|||
private System.Windows.Forms.CheckBox SaveLargeScreenshotsCheckbox;
|
||||
private System.Windows.Forms.NumericUpDown BigScreenshotNumeric;
|
||||
private System.Windows.Forms.Label KbLabel;
|
||||
private System.Windows.Forms.CheckBox StartFullScreenCheckbox;
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void GuiOptions_Load(object sender, EventArgs e)
|
||||
{
|
||||
StartFullScreenCheckbox.Checked = Global.Config.StartFullscreen;
|
||||
StartPausedCheckbox.Checked = Global.Config.StartPaused;
|
||||
PauseWhenMenuActivatedCheckbox.Checked = Global.Config.PauseWhenMenuActivated;
|
||||
EnableContextMenuCheckbox.Checked = Global.Config.ShowContextMenu;
|
||||
|
@ -63,6 +64,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void OkBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.StartFullscreen = StartFullScreenCheckbox.Checked;
|
||||
Global.Config.StartPaused = StartPausedCheckbox.Checked;
|
||||
Global.Config.PauseWhenMenuActivated = PauseWhenMenuActivatedCheckbox.Checked;
|
||||
Global.Config.ShowContextMenu = EnableContextMenuCheckbox.Checked;
|
||||
|
|
Loading…
Reference in New Issue