mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-21 21:55:38 +01:00
Fix background image tiling and ensure options form is centered.
This commit is contained in:
parent
6d46fa2875
commit
1bbd5e4fc0
2
Giants.Launcher/LauncherForm.Designer.cs
generated
2
Giants.Launcher/LauncherForm.Designer.cs
generated
@ -130,6 +130,7 @@
|
|||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
|
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
this.CancelButton = this.btnExit;
|
this.CancelButton = this.btnExit;
|
||||||
this.ClientSize = new System.Drawing.Size(800, 500);
|
this.ClientSize = new System.Drawing.Size(800, 500);
|
||||||
this.ControlBox = false;
|
this.ControlBox = false;
|
||||||
@ -139,6 +140,7 @@
|
|||||||
this.Controls.Add(this.btnExit);
|
this.Controls.Add(this.btnExit);
|
||||||
this.Controls.Add(this.btnOptions);
|
this.Controls.Add(this.btnOptions);
|
||||||
this.Controls.Add(this.btnPlay);
|
this.Controls.Add(this.btnPlay);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "LauncherForm";
|
this.Name = "LauncherForm";
|
||||||
|
@ -86,6 +86,7 @@ namespace Giants.Launcher
|
|||||||
{
|
{
|
||||||
OptionsForm form = new OptionsForm(GameName + " Options", this.gamePath);
|
OptionsForm form = new OptionsForm(GameName + " Options", this.gamePath);
|
||||||
|
|
||||||
|
form.StartPosition = FormStartPosition.CenterParent;
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
29
Giants.Launcher/OptionsForm.Designer.cs
generated
29
Giants.Launcher/OptionsForm.Designer.cs
generated
@ -38,6 +38,7 @@
|
|||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.cmbMode = new System.Windows.Forms.ComboBox();
|
||||||
this.chkTripleBuffering = new System.Windows.Forms.CheckBox();
|
this.chkTripleBuffering = new System.Windows.Forms.CheckBox();
|
||||||
this.chkVSync = new System.Windows.Forms.CheckBox();
|
this.chkVSync = new System.Windows.Forms.CheckBox();
|
||||||
this.btnOK = new System.Windows.Forms.Button();
|
this.btnOK = new System.Windows.Forms.Button();
|
||||||
@ -45,7 +46,6 @@
|
|||||||
this.btnResetDefaults = new System.Windows.Forms.Button();
|
this.btnResetDefaults = new System.Windows.Forms.Button();
|
||||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
this.chkUpdates = new System.Windows.Forms.CheckBox();
|
this.chkUpdates = new System.Windows.Forms.CheckBox();
|
||||||
this.cmbMode = new System.Windows.Forms.ComboBox();
|
|
||||||
this.groupBox1.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.groupBox2.SuspendLayout();
|
this.groupBox2.SuspendLayout();
|
||||||
this.groupBox3.SuspendLayout();
|
this.groupBox3.SuspendLayout();
|
||||||
@ -153,6 +153,19 @@
|
|||||||
this.groupBox2.TabStop = false;
|
this.groupBox2.TabStop = false;
|
||||||
this.groupBox2.Text = "Mode";
|
this.groupBox2.Text = "Mode";
|
||||||
//
|
//
|
||||||
|
// cmbMode
|
||||||
|
//
|
||||||
|
this.cmbMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.cmbMode.FormattingEnabled = true;
|
||||||
|
this.cmbMode.Items.AddRange(new object[] {
|
||||||
|
"Fullscreen",
|
||||||
|
"Windowed",
|
||||||
|
"Borderless"});
|
||||||
|
this.cmbMode.Location = new System.Drawing.Point(12, 19);
|
||||||
|
this.cmbMode.Name = "cmbMode";
|
||||||
|
this.cmbMode.Size = new System.Drawing.Size(88, 21);
|
||||||
|
this.cmbMode.TabIndex = 3;
|
||||||
|
//
|
||||||
// chkTripleBuffering
|
// chkTripleBuffering
|
||||||
//
|
//
|
||||||
this.chkTripleBuffering.AutoSize = true;
|
this.chkTripleBuffering.AutoSize = true;
|
||||||
@ -224,24 +237,12 @@
|
|||||||
this.chkUpdates.Text = "Check for Updates";
|
this.chkUpdates.Text = "Check for Updates";
|
||||||
this.chkUpdates.UseVisualStyleBackColor = true;
|
this.chkUpdates.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// cmbMode
|
|
||||||
//
|
|
||||||
this.cmbMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
||||||
this.cmbMode.FormattingEnabled = true;
|
|
||||||
this.cmbMode.Items.AddRange(new object[] {
|
|
||||||
"Fullscreen",
|
|
||||||
"Windowed",
|
|
||||||
"Borderless"});
|
|
||||||
this.cmbMode.Location = new System.Drawing.Point(12, 19);
|
|
||||||
this.cmbMode.Name = "cmbMode";
|
|
||||||
this.cmbMode.Size = new System.Drawing.Size(88, 21);
|
|
||||||
this.cmbMode.TabIndex = 3;
|
|
||||||
//
|
|
||||||
// OptionsForm
|
// OptionsForm
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.btnOK;
|
this.AcceptButton = this.btnOK;
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.AutoSize = true;
|
||||||
this.CancelButton = this.btnCancel;
|
this.CancelButton = this.btnCancel;
|
||||||
this.ClientSize = new System.Drawing.Size(406, 273);
|
this.ClientSize = new System.Drawing.Size(406, 273);
|
||||||
this.ControlBox = false;
|
this.ControlBox = false;
|
||||||
|
@ -112,12 +112,12 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue
Block a user