From 5625ad3eed1f586383e62a7920d3dec4adb3da61 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 5 Jun 2023 22:31:45 +0200 Subject: [PATCH] new test features --- SC4 Launcher/App.config | 9 + SC4 Launcher/Form1.Designer.cs | 11 + SC4 Launcher/Form1.cs | 6 + SC4 Launcher/Form1.resx | 41 +- SC4 Launcher/Form2.Designer.cs | 74 +- SC4 Launcher/Form2.cs | 7 + SC4 Launcher/Form2.de-DE.resx | 144 +- SC4 Launcher/Form2.en.resx | 23 +- SC4 Launcher/Form2.resx | 1485 +++++++++-------- SC4 Launcher/Form4.Designer.cs | 123 ++ SC4 Launcher/Form4.cs | 55 + SC4 Launcher/Form4.resx | 60 + SC4 Launcher/Properties/Resources.Designer.cs | 10 + SC4 Launcher/Properties/Resources.resx | 6 + SC4 Launcher/Properties/Settings.Designer.cs | 26 +- SC4 Launcher/Properties/Settings.settings | 6 + SC4 Launcher/Resources/Triangle.png | Bin 0 -> 557 bytes 17 files changed, 1370 insertions(+), 716 deletions(-) create mode 100644 SC4 Launcher/Form4.Designer.cs create mode 100644 SC4 Launcher/Form4.cs create mode 100644 SC4 Launcher/Form4.resx create mode 100644 SC4 Launcher/Resources/Triangle.png diff --git a/SC4 Launcher/App.config b/SC4 Launcher/App.config index 78bae7e..9ada38c 100644 --- a/SC4 Launcher/App.config +++ b/SC4 Launcher/App.config @@ -13,6 +13,15 @@ 0 + + + + + False + + + + \ No newline at end of file diff --git a/SC4 Launcher/Form1.Designer.cs b/SC4 Launcher/Form1.Designer.cs index ee69f81..7de77aa 100644 --- a/SC4 Launcher/Form1.Designer.cs +++ b/SC4 Launcher/Form1.Designer.cs @@ -38,6 +38,7 @@ private void InitializeComponent() this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); + this.button3 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // @@ -101,10 +102,19 @@ private void InitializeComponent() this.label3.ForeColor = System.Drawing.Color.DeepSkyBlue; this.label3.Name = "label3"; // + // button3 + // + this.button3.BackgroundImage = global::SC4_Launcher.Properties.Resources.Triangle; + resources.ApplyResources(this.button3, "button3"); + this.button3.Name = "button3"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // // Form1 // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.button3); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.button2); @@ -135,5 +145,6 @@ private void InitializeComponent() private System.ComponentModel.BackgroundWorker backgroundWorker2; private Label label2; private Label label3; + private Button button3; } } \ No newline at end of file diff --git a/SC4 Launcher/Form1.cs b/SC4 Launcher/Form1.cs index 4ccc74b..c3ba75c 100644 --- a/SC4 Launcher/Form1.cs +++ b/SC4 Launcher/Form1.cs @@ -211,5 +211,11 @@ private void pictureBox1_DoubleClick(object sender, EventArgs e) debug_bit = false; } } + + private void button3_Click(object sender, EventArgs e) + { + + } + } } \ No newline at end of file diff --git a/SC4 Launcher/Form1.resx b/SC4 Launcher/Form1.resx index 49bc3f3..090aa3e 100644 --- a/SC4 Launcher/Form1.resx +++ b/SC4 Launcher/Form1.resx @@ -65,7 +65,7 @@ iVBORw0KGgoAAAANSUhEUgAAAb8AAAD9CAIAAACjlu72AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wgAADsIBFShKgAAA/7JJREFUeF4svQV4W+fBv53Bu3fUdsU0bThxzMzMIFsGyZZtWbJkMetIRzogOGJm + wAAADsABataJCQAA/7JJREFUeF4svQV4W+fBv53Bu3fUdsU0bThxzMzMIFsGyZZtWbJkMetIRzogOGJm MMnMdmI7dhI7icPQUNuUGbd27dZt3dZt73jTd9z/d13n0nXy6Ehqrefcz/3TQ3ushpDTNmQ0hGClXQu5 rcaoxRDRql1mnR+BHEa916L3opDDgDgQ0AqDVo3SqAeNGGzVKPQo8P8OFBLDoAgEuAAoUIAipVIIAgKl hCWTC0GNDFazJRKuUgXoUDGMylAU0KkkMCCCADEEyWBQAom5UglHLhcoYSWGKDFIjihFaqkABEUQLANh @@ -5492,7 +5492,7 @@ $this - 6 + 7 True @@ -5519,7 +5519,7 @@ $this - 5 + 6 53, 265 @@ -5540,7 +5540,7 @@ $this - 4 + 5 279, 264 @@ -5564,7 +5564,7 @@ $this - 3 + 4 360, 264 @@ -5588,7 +5588,7 @@ $this - 2 + 3 17, 17 @@ -5630,7 +5630,7 @@ $this - 1 + 2 True @@ -5666,6 +5666,33 @@ $this + 1 + + + Center + + + 247, 264 + + + 26, 23 + + + 9 + + + MiddleRight + + + button3 + + + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + 0 diff --git a/SC4 Launcher/Form2.Designer.cs b/SC4 Launcher/Form2.Designer.cs index 6968cf1..e78f2d1 100644 --- a/SC4 Launcher/Form2.Designer.cs +++ b/SC4 Launcher/Form2.Designer.cs @@ -71,6 +71,7 @@ private void InitializeComponent() this.textBox2 = new System.Windows.Forms.TextBox(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); this.settings.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tabPage2.SuspendLayout(); @@ -84,6 +85,7 @@ private void InitializeComponent() // resources.ApplyResources(this.radioButton1, "radioButton1"); this.radioButton1.Name = "radioButton1"; + this.toolTip1.SetToolTip(this.radioButton1, resources.GetString("radioButton1.ToolTip")); this.radioButton1.UseVisualStyleBackColor = true; this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); // @@ -93,19 +95,22 @@ private void InitializeComponent() this.radioButton2.Checked = true; this.radioButton2.Name = "radioButton2"; this.radioButton2.TabStop = true; + this.toolTip1.SetToolTip(this.radioButton2, resources.GetString("radioButton2.ToolTip")); this.radioButton2.UseVisualStyleBackColor = true; // // profilname_txt // resources.ApplyResources(this.profilname_txt, "profilname_txt"); this.profilname_txt.Name = "profilname_txt"; + this.toolTip1.SetToolTip(this.profilname_txt, resources.GetString("profilname_txt.ToolTip")); // // comboBox1 // - this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; resources.ApplyResources(this.comboBox1, "comboBox1"); + this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; this.comboBox1.Name = "comboBox1"; + this.toolTip1.SetToolTip(this.comboBox1, resources.GetString("comboBox1.ToolTip")); this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // // swradio @@ -113,6 +118,7 @@ private void InitializeComponent() resources.ApplyResources(this.swradio, "swradio"); this.swradio.Name = "swradio"; this.swradio.TabStop = true; + this.toolTip1.SetToolTip(this.swradio, resources.GetString("swradio.ToolTip")); this.swradio.UseVisualStyleBackColor = true; // // openglradio @@ -120,6 +126,7 @@ private void InitializeComponent() resources.ApplyResources(this.openglradio, "openglradio"); this.openglradio.Name = "openglradio"; this.openglradio.TabStop = true; + this.toolTip1.SetToolTip(this.openglradio, resources.GetString("openglradio.ToolTip")); this.openglradio.UseVisualStyleBackColor = true; // // directxradio @@ -127,12 +134,14 @@ private void InitializeComponent() resources.ApplyResources(this.directxradio, "directxradio"); this.directxradio.Name = "directxradio"; this.directxradio.TabStop = true; + this.toolTip1.SetToolTip(this.directxradio, resources.GetString("directxradio.ToolTip")); this.directxradio.UseVisualStyleBackColor = true; // // renderingbox // resources.ApplyResources(this.renderingbox, "renderingbox"); this.renderingbox.Name = "renderingbox"; + this.toolTip1.SetToolTip(this.renderingbox, resources.GetString("renderingbox.ToolTip")); this.renderingbox.UseVisualStyleBackColor = true; this.renderingbox.CheckedChanged += new System.EventHandler(this.renderingbox_CheckedChanged); this.renderingbox.MouseHover += new System.EventHandler(this.renderingbox_MouseHover); @@ -142,36 +151,43 @@ private void InitializeComponent() resources.ApplyResources(this.depth_txt, "depth_txt"); this.depth_txt.FormattingEnabled = true; this.depth_txt.Name = "depth_txt"; + this.toolTip1.SetToolTip(this.depth_txt, resources.GetString("depth_txt.ToolTip")); // // width_txt // resources.ApplyResources(this.width_txt, "width_txt"); this.width_txt.Name = "width_txt"; + this.toolTip1.SetToolTip(this.width_txt, resources.GetString("width_txt.ToolTip")); // // label3 // resources.ApplyResources(this.label3, "label3"); this.label3.Name = "label3"; + this.toolTip1.SetToolTip(this.label3, resources.GetString("label3.ToolTip")); // // height_txt // resources.ApplyResources(this.height_txt, "height_txt"); this.height_txt.Name = "height_txt"; + this.toolTip1.SetToolTip(this.height_txt, resources.GetString("height_txt.ToolTip")); // // label2 // resources.ApplyResources(this.label2, "label2"); this.label2.Name = "label2"; + this.toolTip1.SetToolTip(this.label2, resources.GetString("label2.ToolTip")); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; + this.toolTip1.SetToolTip(this.label1, resources.GetString("label1.ToolTip")); // // customresbox // resources.ApplyResources(this.customresbox, "customresbox"); this.customresbox.Name = "customresbox"; + this.toolTip1.SetToolTip(this.customresbox, resources.GetString("customresbox.ToolTip")); this.customresbox.UseVisualStyleBackColor = true; this.customresbox.CheckedChanged += new System.EventHandler(this.customresbox_CheckedChanged); this.customresbox.MouseHover += new System.EventHandler(this.customresbox_MouseHover); @@ -180,6 +196,7 @@ private void InitializeComponent() // resources.ApplyResources(this.button2, "button2"); this.button2.Name = "button2"; + this.toolTip1.SetToolTip(this.button2, resources.GetString("button2.ToolTip")); this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // @@ -187,22 +204,25 @@ private void InitializeComponent() // resources.ApplyResources(this.button1, "button1"); this.button1.Name = "button1"; + this.toolTip1.SetToolTip(this.button1, resources.GetString("button1.ToolTip")); this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // settings // + resources.ApplyResources(this.settings, "settings"); this.settings.Controls.Add(this.tabPage1); this.settings.Controls.Add(this.tabPage2); this.settings.Controls.Add(this.tabPage3); this.settings.Controls.Add(this.tabPage4); this.settings.Controls.Add(this.tabPage5); - resources.ApplyResources(this.settings, "settings"); this.settings.Name = "settings"; this.settings.SelectedIndex = 0; + this.toolTip1.SetToolTip(this.settings, resources.GetString("settings.ToolTip")); // // tabPage1 // + resources.ApplyResources(this.tabPage1, "tabPage1"); this.tabPage1.Controls.Add(this.windowmode); this.tabPage1.Controls.Add(this.swradio); this.tabPage1.Controls.Add(this.customresbox); @@ -215,66 +235,75 @@ private void InitializeComponent() this.tabPage1.Controls.Add(this.label3); this.tabPage1.Controls.Add(this.depth_txt); this.tabPage1.Controls.Add(this.width_txt); - resources.ApplyResources(this.tabPage1, "tabPage1"); this.tabPage1.Name = "tabPage1"; + this.toolTip1.SetToolTip(this.tabPage1, resources.GetString("tabPage1.ToolTip")); this.tabPage1.UseVisualStyleBackColor = true; // // windowmode // resources.ApplyResources(this.windowmode, "windowmode"); this.windowmode.Name = "windowmode"; + this.toolTip1.SetToolTip(this.windowmode, resources.GetString("windowmode.ToolTip")); this.windowmode.UseVisualStyleBackColor = true; // // tabPage2 // + resources.ApplyResources(this.tabPage2, "tabPage2"); this.tabPage2.Controls.Add(this.cpu_priority); this.tabPage2.Controls.Add(this.label7); this.tabPage2.Controls.Add(this.cpu_cores); this.tabPage2.Controls.Add(this.label6); - resources.ApplyResources(this.tabPage2, "tabPage2"); this.tabPage2.Name = "tabPage2"; + this.toolTip1.SetToolTip(this.tabPage2, resources.GetString("tabPage2.ToolTip")); this.tabPage2.UseVisualStyleBackColor = true; // // cpu_priority // - this.cpu_priority.FormattingEnabled = true; resources.ApplyResources(this.cpu_priority, "cpu_priority"); + this.cpu_priority.FormattingEnabled = true; this.cpu_priority.Name = "cpu_priority"; + this.toolTip1.SetToolTip(this.cpu_priority, resources.GetString("cpu_priority.ToolTip")); // // label7 // resources.ApplyResources(this.label7, "label7"); this.label7.Name = "label7"; + this.toolTip1.SetToolTip(this.label7, resources.GetString("label7.ToolTip")); // // cpu_cores // - this.cpu_cores.FormattingEnabled = true; resources.ApplyResources(this.cpu_cores, "cpu_cores"); + this.cpu_cores.FormattingEnabled = true; this.cpu_cores.Name = "cpu_cores"; + this.toolTip1.SetToolTip(this.cpu_cores, resources.GetString("cpu_cores.ToolTip")); // // label6 // resources.ApplyResources(this.label6, "label6"); this.label6.Name = "label6"; + this.toolTip1.SetToolTip(this.label6, resources.GetString("label6.ToolTip")); // // tabPage3 // - this.tabPage3.Controls.Add(this.sound_set); resources.ApplyResources(this.tabPage3, "tabPage3"); + this.tabPage3.Controls.Add(this.sound_set); this.tabPage3.Name = "tabPage3"; + this.toolTip1.SetToolTip(this.tabPage3, resources.GetString("tabPage3.ToolTip")); this.tabPage3.UseVisualStyleBackColor = true; // // sound_set // resources.ApplyResources(this.sound_set, "sound_set"); this.sound_set.Name = "sound_set"; + this.toolTip1.SetToolTip(this.sound_set, resources.GetString("sound_set.ToolTip")); this.sound_set.UseVisualStyleBackColor = true; // // tabPage4 // - this.tabPage4.Controls.Add(this.intro_set); resources.ApplyResources(this.tabPage4, "tabPage4"); + this.tabPage4.Controls.Add(this.intro_set); this.tabPage4.Name = "tabPage4"; + this.toolTip1.SetToolTip(this.tabPage4, resources.GetString("tabPage4.ToolTip")); this.tabPage4.UseVisualStyleBackColor = true; this.tabPage4.Click += new System.EventHandler(this.tabPage4_Click); // @@ -282,21 +311,24 @@ private void InitializeComponent() // resources.ApplyResources(this.intro_set, "intro_set"); this.intro_set.Name = "intro_set"; + this.toolTip1.SetToolTip(this.intro_set, resources.GetString("intro_set.ToolTip")); this.intro_set.UseVisualStyleBackColor = true; // // tabPage5 // + resources.ApplyResources(this.tabPage5, "tabPage5"); this.tabPage5.Controls.Add(this.label9); this.tabPage5.Controls.Add(this.saveintervall); this.tabPage5.Controls.Add(this.autosave); - resources.ApplyResources(this.tabPage5, "tabPage5"); this.tabPage5.Name = "tabPage5"; + this.toolTip1.SetToolTip(this.tabPage5, resources.GetString("tabPage5.ToolTip")); this.tabPage5.UseVisualStyleBackColor = true; // // label9 // resources.ApplyResources(this.label9, "label9"); this.label9.Name = "label9"; + this.toolTip1.SetToolTip(this.label9, resources.GetString("label9.ToolTip")); // // saveintervall // @@ -312,6 +344,7 @@ private void InitializeComponent() 0, 0}); this.saveintervall.Name = "saveintervall"; + this.toolTip1.SetToolTip(this.saveintervall, resources.GetString("saveintervall.ToolTip")); this.saveintervall.Value = new decimal(new int[] { 10, 0, @@ -322,6 +355,7 @@ private void InitializeComponent() // resources.ApplyResources(this.autosave, "autosave"); this.autosave.Name = "autosave"; + this.toolTip1.SetToolTip(this.autosave, resources.GetString("autosave.ToolTip")); this.autosave.UseVisualStyleBackColor = true; this.autosave.CheckedChanged += new System.EventHandler(this.autosave_CheckedChanged); // @@ -329,17 +363,20 @@ private void InitializeComponent() // resources.ApplyResources(this.label4, "label4"); this.label4.Name = "label4"; + this.toolTip1.SetToolTip(this.label4, resources.GetString("label4.ToolTip")); // // textBox1 // resources.ApplyResources(this.textBox1, "textBox1"); this.textBox1.Name = "textBox1"; + this.toolTip1.SetToolTip(this.textBox1, resources.GetString("textBox1.ToolTip")); this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged_1); // // button3 // resources.ApplyResources(this.button3, "button3"); this.button3.Name = "button3"; + this.toolTip1.SetToolTip(this.button3, resources.GetString("button3.ToolTip")); this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // @@ -347,33 +384,46 @@ private void InitializeComponent() // resources.ApplyResources(this.label5, "label5"); this.label5.Name = "label5"; + this.toolTip1.SetToolTip(this.label5, resources.GetString("label5.ToolTip")); // // textBox2 // resources.ApplyResources(this.textBox2, "textBox2"); this.textBox2.Name = "textBox2"; + this.toolTip1.SetToolTip(this.textBox2, resources.GetString("textBox2.ToolTip")); // // button4 // - this.button4.Image = global::SC4_Launcher.Properties.Resources.Remove; resources.ApplyResources(this.button4, "button4"); + this.button4.Image = global::SC4_Launcher.Properties.Resources.Remove; this.button4.Name = "button4"; + this.toolTip1.SetToolTip(this.button4, resources.GetString("button4.ToolTip")); this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); this.button4.MouseHover += new System.EventHandler(this.button4_MouseHover); // // button5 // - this.button5.Image = global::SC4_Launcher.Properties.Resources.Web; resources.ApplyResources(this.button5, "button5"); + this.button5.Image = global::SC4_Launcher.Properties.Resources.Web; this.button5.Name = "button5"; + this.toolTip1.SetToolTip(this.button5, resources.GetString("button5.ToolTip")); this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); // + // linkLabel1 + // + resources.ApplyResources(this.linkLabel1, "linkLabel1"); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.TabStop = true; + this.toolTip1.SetToolTip(this.linkLabel1, resources.GetString("linkLabel1.ToolTip")); + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // // Form2 // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.linkLabel1); this.Controls.Add(this.button5); this.Controls.Add(this.button4); this.Controls.Add(this.textBox2); @@ -393,6 +443,7 @@ private void InitializeComponent() this.MinimizeBox = false; this.Name = "Form2"; this.ShowIcon = false; + this.toolTip1.SetToolTip(this, resources.GetString("$this.ToolTip")); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form2_FormClosing); this.Load += new System.EventHandler(this.Form2_Load); this.settings.ResumeLayout(false); @@ -454,5 +505,6 @@ private void InitializeComponent() private NumericUpDown saveintervall; private CheckBox autosave; private Button button5; + private LinkLabel linkLabel1; } } \ No newline at end of file diff --git a/SC4 Launcher/Form2.cs b/SC4 Launcher/Form2.cs index f46cf7f..dbcdb88 100644 --- a/SC4 Launcher/Form2.cs +++ b/SC4 Launcher/Form2.cs @@ -12,6 +12,7 @@ using System.Windows.Forms; using Microsoft.VisualBasic.ApplicationServices; using Newtonsoft.Json; +using static System.Windows.Forms.DataFormats; using static System.Windows.Forms.VisualStyles.VisualStyleElement; using static System.Windows.Forms.VisualStyles.VisualStyleElement.Button; @@ -25,6 +26,7 @@ public partial class Form2 : Form write_profile writer = new write_profile(); load_profile loader = new load_profile(); Form3 form3 = new Form3(); + Form4 form4 = new Form4(); string lang = Properties.Settings.Default.language; public Form2() { @@ -511,6 +513,11 @@ private void textBox1_TextChanged_1(object sender, EventArgs e) else { button1.Enabled = false; } } + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + form4.Show(); + form4.Focus(); + } } } diff --git a/SC4 Launcher/Form2.de-DE.resx b/SC4 Launcher/Form2.de-DE.resx index b4c5b4b..f5121c9 100644 --- a/SC4 Launcher/Form2.de-DE.resx +++ b/SC4 Launcher/Form2.de-DE.resx @@ -57,28 +57,96 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 48, 25 + + + + + + + + + + + + + + + + + - - 48, 54 + + + + + + + + + + + + + + + + + + 3, 28 + + + 3, 57 - - 104, 19 + + - - Fenster Modus + + - - - 3, 3, 3, 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -87,32 +155,72 @@ 86, 15 + + + False 51, 23 + + + True 129, 19 + + + + + + 3, 3, 3, 3 + + + + + + + + + + + + + + + + + + + + + + + + + NoControl - - 64, 415 - - - 46, 23 - 21 + + + + + + CenterScreen + + + \ No newline at end of file diff --git a/SC4 Launcher/Form2.en.resx b/SC4 Launcher/Form2.en.resx index 81016b1..358b86c 100644 --- a/SC4 Launcher/Form2.en.resx +++ b/SC4 Launcher/Form2.en.resx @@ -79,27 +79,18 @@ 48, 27 - - 6, 86 - 38, 15 depth - - 48, 54 - 6, 30 width - - 6, 57 - 41, 15 @@ -126,15 +117,15 @@ save - - Graphics - 115, 19 windowed mode + + Graphics + 45, 15 @@ -172,11 +163,17 @@ open - 64, 415 + 64, 437 46, 25 + + 79, 15 + + + more settings + True diff --git a/SC4 Launcher/Form2.resx b/SC4 Launcher/Form2.resx index b8c681a..7b830df 100644 --- a/SC4 Launcher/Form2.resx +++ b/SC4 Launcher/Form2.resx @@ -58,1044 +58,1197 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - True + + 20 - - - 12, 16 + + $this - - 87, 19 + + 1 - - 0 + + tabPage1 - - neues Profil + + 17 - - radioButton1 + + + 112, 19 - - System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 132, 19 - - $this + + True - - 13 + + 46, 23 - - True + + 165, 6 - - 12, 45 + + Autosave aktivieren - - 112, 19 + + 2 - - 1 + + 7 - - Profil bearbeiten + + True - - radioButton2 + + tabPage1 - - System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + - - $this + + Intro deaktivieren - + 12 - - False + + 322, 215 - - 130, 12 + + - - 136, 23 + + tabPage4 - - 2 + + 0 - - profilname_txt + + True - - System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + - - $this + + System.Windows.Forms.Form, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 11 - - False + + Priorität - - 130, 41 + + System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 136, 23 + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 3 + + 14 - - comboBox1 + + - - System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 18 $this - - 10 - - - True - - - False - - - 165, 84 + + 0 - - 71, 19 + + label5 11 - - Software + + 0 - - swradio + + 136, 23 - - System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + tabPage1 - + tabPage1 - - 1 + + 0 - - True + + $this - - False + + tabPage2 - - 165, 55 + + toolTip1 - - 68, 19 + + System.Windows.Forms.ToolTip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 10 - - OpenGL - - - openglradio - - - System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage1 + + 322, 215 - - 3 + + label7 - - True + + 6 - - False + + - - 165, 26 + + comboBox1 63, 19 - - 9 + + - - DirectX + + 62, 23 - - directxradio + + True + + + 1 System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage1 - - - 5 - - - True + + - - 165, 6 + + - - 120, 19 + + 0 - - 8 + + 130, 12 - - Rendering Modus + + - - renderingbox + + customresbox System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + tabPage1 - - 7 + + 25, 23 - - False + + 2 - - 48, 83 + + weitere Einstellungen - - 82, 23 + + 3 - - 7 + + - - depth_txt + + - - System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 116, 439 - - tabPage1 + + 3 - - 10 + + - - False + + 1 - - 48, 25 + + System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 82, 23 + + 322, 215 - - 6 + + - - width_txt + + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 4 - - tabPage1 + + radioButton2 - - 11 + + System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + True - - 6, 86 + + textBox2 - - 32, 15 + + windowmode - - 3 + + False - - Tiefe + + 4, 24 + + + button5 + + + 165, 55 + + + 5 label3 - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label4 - - tabPage1 + + tabPage2 - - 9 + + Auflösung + + + False + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 10 False - - 48, 54 + + Grafik - - 82, 23 + + - - 5 + + 286, 439 - - height_txt + + 6, 86 - - System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + button1 - - tabPage1 + + 4, 24 - - 6 + + button3 - - True + + 75, 23 - - 6, 28 + + System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 37, 15 + + tabPage2 - + + 6, 6 + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Game + + + App-ID + + + sound_set + + + False + + + tabPage4 + + + settings + + 2 - - Breite + + True - - label2 + + 11 - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + cpu_cores - - tabPage1 + + 373, 474 - - 8 + + 1 - + + 48, 25 + + + Steam Pfad + + + 6, 6 + + + 7 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Profil bearbeiten + + + 49, 15 + + + settings + + True - - 6, 57 + + System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 36, 15 + + 4 + + + + + + Sounds deaktivieren + + + 82, 23 + + + $this 1 - - Höhe + + 3, 42 - - label1 + + 3 - + + 143, 24 + + + saveintervall + + + tabPage5 + + + 45, 15 + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage1 + + depth_txt - - 4 + + radioButton1 - + + 14 + + + directxradio + + + 172, 23 + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True - + + 12, 371 + + + height_txt + + + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 6, 6 - - 81, 19 + + 7, 15 - - 0 + + 75, 23 - - Auflösung + + Profil bearbeiten - - customresbox + + + 3, 3, 3, 3 - - System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True - - tabPage1 + + - + 2 - - 116, 415 + + - - 164, 23 + + 15 - - 12 + + settings + + + tabPage1 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + + 19 + + + 1 + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 10 + + + 9 + + + False + + + True + + + Anzahl CPU + + + True + + + Tiefe + + + 0 + + + True + + + 272, 41 - - empfohlene Einstellungen + + 80, 23 button2 - - System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + swradio - + $this - - 8 + + tabPage1 - - 17, 17 - - - 286, 415 + + tabPage1 - - 75, 23 + + 1 - - 5 + + System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Speichern + + CPU - - button1 + + 136, 23 - - System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - $this + + Form2 - - 9 + + 81, 19 - - True + + 0 - - 7, 124 + + 322, 215 - - 104, 19 + + False - - 12 + + Software - - Fenster Modus + + True - - windowmode + + 2 - - System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + $this - - tabPage1 + + 4, 24 - - 0 + + label2 - - 4, 24 + + intro_set - - - 3, 3, 3, 3 + + 48, 83 - - 322, 215 + + 6 - - 0 + + 4 - - Grafik + + System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage1 + + 16 - - System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - settings + + tabPage3 - - 0 + + 2 - - 81, 45 + + 5 - - 82, 23 + + 5 - - 3 + + - - cpu_priority + + - - System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + textBox1 - - tabPage2 + + width_txt - - 0 + + 64, 439 - - True + + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 6, 48 + + 6, 28 - - 49, 15 + + 3 - - 2 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Priorität + + - - label7 + + tabPage1 - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.TabControl, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage2 + + tabPage5 - - 1 + + autosave - - 81, 8 + + 263, 338 - + 82, 23 - - 1 + + 5 - - cpu_cores + + - - System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 8 - - tabPage2 + + - - 2 + + 0 - - True + + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 6, 11 + + 85, 368 + + + 3 + + + label1 + + + $this 69, 15 - + + 3, 3, 3, 3 + + + 104, 19 + + 0 - - Anzahl CPU + + System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - label6 + + $this - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + renderingbox - - tabPage2 + + 82, 23 - - 3 + + tabPage1 - - 4, 24 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 3, 3, 3, 3 + + 6 + + + System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 322, 215 + + False - - 1 + + - - CPU + + 82, 23 - - tabPage2 + + 1 - - System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 8 - - settings + + tabPage5 - - 1 + + 8 - - True + + Rendering Modus - - 6, 6 + + 12 - - 132, 19 + + - - 0 + + 330, 243 - - Sounds deaktivieren + + 12 - - sound_set + + True - - System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 2 - - tabPage3 + + 6, 57 - - 0 + + 6, 11 - + 4, 24 - - 3, 3, 3, 3 + + - - 322, 215 + + 119, 15 - - 2 + + 13 - - Sound + + $this - - tabPage3 + + empfohlene Einstellungen - - System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + DirectX - - settings + + 67, 15 - - 2 + + 3 - - True + + $this - - 6, 6 + + 68, 19 - - 118, 19 + + Autosave - - 0 + + 87, 19 - - Intro deaktivieren + + Öffnen - - intro_set + + - + + 1 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage4 + + Intervall in Min - - 0 + + System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 4, 24 + + 2 - - 3, 3, 3, 3 + + $this - - 322, 215 + + 21 - - 3 + + tabPage3 - - Game + + 4 - - tabPage4 + + settings - - System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + tabPage1 - - settings + + 0 - - 3 + + $this - - 3, 42 + + 7 - - 88, 23 + + 164, 23 - - 2 + + 6, 6 - - Intervall in Min + + 12, 89 - - label9 + + True - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 322, 215 - - tabPage5 + + True - - 0 + + 13 - - 97, 40 + + button4 - - 62, 23 + + True - - 1 + + - - saveintervall + + 120, 19 - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 6, 48 - - tabPage5 + + 3 - - 1 + + tabPage1 - - 6, 6 + + - - 143, 24 + + profilname_txt - - 0 + + - - Autosave aktivieren + + cpu_priority - - autosave + + 130, 41 - - System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 81, 8 - + tabPage5 - - 2 + + Fenster Modus - - 4, 24 + + - - 322, 215 + + 12, 16 - - 4 + + 37, 15 - - Autosave + + System.Windows.Forms.ComboBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - tabPage5 + + OpenGL - - System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 3, 3, 3, 3 - - settings + + 0 - - 4 + + - - 12, 89 + + 2 - - 330, 243 + + 1 - - 13 + + 0 - - settings + + tabPage2 - - System.Windows.Forms.TabControl, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + - - $this + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 7 + + 82, 23 - - True + + neues Profil - - 12, 342 + + Speichern - - 67, 15 + + 48, 54 - - 14 + + 97, 40 - - Steam Pfad + + 165, 84 - - label4 + + 12, 398 - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + settings - - $this + + linkLabel1 - - 6 + + Sound - - 85, 339 + + 118, 19 - - 172, 23 + + 2 - - 15 + + 165, 26 - - textBox1 + + tabPage1 - - System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + - - $this + + - - 5 + + - - 263, 338 + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 75, 23 + + System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 16 + + 3 - - Öffnen + + $this - - button3 + + 88, 23 - + System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - $this + + settings - - 4 + + - + + Höhe + + + 9 + + True - - 12, 371 + + System.Windows.Forms.CheckBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 45, 15 + + 3, 3, 3, 3 - - 17 + + 12, 45 - - App-ID + + 32, 15 - - label5 + + 9 - - System.Windows.Forms.Label, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label6 - - $this + + openglradio - - 3 + + 7, 124 - - 85, 368 + + - - 80, 23 + + - - 18 + + System.Windows.Forms.TabPage, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - textBox2 + + 0 - - System.Windows.Forms.TextBox, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + label9 - - $this + + 71, 19 - - 2 + + False - - 272, 41 + + - - 25, 23 + + 12, 342 - - 19 + + 36, 15 - - button4 + + 85, 339 - - System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 81, 45 - - $this + + System.Windows.Forms.RadioButton, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 1 + + $this - - 64, 415 + + - - 46, 23 + + Breite - - 20 + + - - button5 + + tabPage2 - - System.Windows.Forms.Button, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 0 - + $this - - 0 + + 4, 24 True - - True + + 17, 17 + + + en - - 7, 15 - - - 373, 450 - - - Profil bearbeiten - - - toolTip1 - - - System.Windows.Forms.ToolTip, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Form2 - - - System.Windows.Forms.Form, System.Windows.Forms, Culture=neutral, PublicKeyToken=b77a5c561934e089 - \ No newline at end of file diff --git a/SC4 Launcher/Form4.Designer.cs b/SC4 Launcher/Form4.Designer.cs new file mode 100644 index 0000000..c11fa68 --- /dev/null +++ b/SC4 Launcher/Form4.Designer.cs @@ -0,0 +1,123 @@ +namespace SC4_Launcher +{ + partial class Form4 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.label1 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(12, 27); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(90, 19); + this.checkBox1.TabIndex = 0; + this.checkBox1.Text = "SC4 Mapper"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(34, 15); + this.label1.TabIndex = 1; + this.label1.Text = "Tools"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(108, 23); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(205, 23); + this.textBox1.TabIndex = 2; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(319, 22); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 3; + this.button1.Text = "Öffnen"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // groupBox1 + // + this.groupBox1.Location = new System.Drawing.Point(12, 59); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(376, 100); + this.groupBox1.TabIndex = 4; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "alternative Tasten"; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(313, 165); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 5; + this.button2.Text = "Speichern"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // Form4 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(400, 194); + this.Controls.Add(this.button2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.label1); + this.Controls.Add(this.checkBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "Form4"; + this.Text = "weitere Einstellungen"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form4_FormClosing); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private CheckBox checkBox1; + private Label label1; + private TextBox textBox1; + private Button button1; + private GroupBox groupBox1; + private Button button2; + } +} \ No newline at end of file diff --git a/SC4 Launcher/Form4.cs b/SC4 Launcher/Form4.cs new file mode 100644 index 0000000..c568953 --- /dev/null +++ b/SC4 Launcher/Form4.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SC4_Launcher +{ + public partial class Form4 : Form + { + OpenFileDialog ofd = new OpenFileDialog(); + public Form4() + { + InitializeComponent(); + textBox1.Text = Properties.Settings.Default.sc4_mapper_path; + + } + + private void Form4_FormClosing(object sender, FormClosingEventArgs e) + { + this.Hide(); + this.Parent = null; + e.Cancel = true; + } + + private void button1_Click(object sender, EventArgs e) + { + if (ofd.ShowDialog() == DialogResult.OK) + { + textBox1.Text = ofd.FileName; + + + } + } + + private void button2_Click(object sender, EventArgs e) + { + if (checkBox1.Checked == true && textBox1.Text == "") + { + MessageBox.Show("Bitte Pfad zu erst eingeben", "Kein Pfad", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + else + { + Properties.Settings.Default.sc4_mapper_on = checkBox1.Checked; + Properties.Settings.Default.sc4_mapper_path = textBox1.Text; + this.Close(); + } + } + } +} diff --git a/SC4 Launcher/Form4.resx b/SC4 Launcher/Form4.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/SC4 Launcher/Form4.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SC4 Launcher/Properties/Resources.Designer.cs b/SC4 Launcher/Properties/Resources.Designer.cs index 7ac36ed..b202fb7 100644 --- a/SC4 Launcher/Properties/Resources.Designer.cs +++ b/SC4 Launcher/Properties/Resources.Designer.cs @@ -70,6 +70,16 @@ internal static System.Drawing.Bitmap Remove { } } + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Triangle { + get { + object obj = ResourceManager.GetObject("Triangle", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// diff --git a/SC4 Launcher/Properties/Resources.resx b/SC4 Launcher/Properties/Resources.resx index d2f4f0a..34b36a9 100644 --- a/SC4 Launcher/Properties/Resources.resx +++ b/SC4 Launcher/Properties/Resources.resx @@ -118,10 +118,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\Triangle1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\Remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\Web.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\Triangle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/SC4 Launcher/Properties/Settings.Designer.cs b/SC4 Launcher/Properties/Settings.Designer.cs index dad8709..70d52bb 100644 --- a/SC4 Launcher/Properties/Settings.Designer.cs +++ b/SC4 Launcher/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace SC4_Launcher.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -58,5 +58,29 @@ public string language { this["language"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool sc4_mapper_on { + get { + return ((bool)(this["sc4_mapper_on"])); + } + set { + this["sc4_mapper_on"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string sc4_mapper_path { + get { + return ((string)(this["sc4_mapper_path"])); + } + set { + this["sc4_mapper_path"] = value; + } + } } } diff --git a/SC4 Launcher/Properties/Settings.settings b/SC4 Launcher/Properties/Settings.settings index b0259da..f93a870 100644 --- a/SC4 Launcher/Properties/Settings.settings +++ b/SC4 Launcher/Properties/Settings.settings @@ -11,5 +11,11 @@ + + False + + + + \ No newline at end of file diff --git a/SC4 Launcher/Resources/Triangle.png b/SC4 Launcher/Resources/Triangle.png new file mode 100644 index 0000000000000000000000000000000000000000..58c24afe9b6118220605e2a0ed26718c61defab2 GIT binary patch literal 557 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBD8ZKG?e4$oWHKj!pdN_)Otn#6BF6%iA9Rkfk=`JHnrj!X+YKV6VeR$g6KmOJTf z)Y@r%9Ba0gPWmhH`0SGFT^`~Gy1&=uKj^KTcYbQ>&lRhFD;2fBj5IzrXL;tXJFmaq z3u4eXeTgwbsdBCgXPQTkVHAV^<^%P!`G23T(Cp|Jz6lIZ)e_f;l9a@fRIB8oR3OD* zWME{dYhb8rWDsIxWMyb+Wo)W#U|?lnP*JiU6nzK{x%nxXX_dG&aB8ye1ZrULboFyt I=akR{09*jgjQ{`u literal 0 HcmV?d00001