From b4e54d9f57e4f3fbc605d3eb4e2fe7bd3d92ea03 Mon Sep 17 00:00:00 2001 From: Potatoes Date: Sat, 6 Mar 2021 14:54:04 -0500 Subject: [PATCH] added search bar default text, updated v to 112 --- ModInstaller/Form1.Designer.cs | 1 + ModInstaller/Form1.cs | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ModInstaller/Form1.Designer.cs b/ModInstaller/Form1.Designer.cs index 21ffc0d..12185d2 100644 --- a/ModInstaller/Form1.Designer.cs +++ b/ModInstaller/Form1.Designer.cs @@ -212,6 +212,7 @@ private void InitializeComponent() this.textBox1.Size = new System.Drawing.Size(456, 23); this.textBox1.TabIndex = 12; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + this.textBox1.Click += new System.EventHandler(this.textBox1_Click); // // ControlPanel // diff --git a/ModInstaller/Form1.cs b/ModInstaller/Form1.cs index d365931..e30848b 100644 --- a/ModInstaller/Form1.cs +++ b/ModInstaller/Form1.cs @@ -146,7 +146,7 @@ void startdebugconsole() private void LoadGUI(object sender, EventArgs e) { - AutoUpdater.InstalledVersion = new Version("1.1.1"); + AutoUpdater.InstalledVersion = new Version("1.1.2"); AutoUpdater.Start("https://raw.githubusercontent.com/WFIOST/H3VR-Mod-Installer-Database/main/Database/updateinfo.xml"); //displays screen if out of date, updates automatically. no downside other than it uses fucking xml -- potaotes //also note it gets the current ver from the assembly file ver, so make sure to update that! @@ -170,6 +170,8 @@ private void LoadGUI(object sender, EventArgs e) UpdateCatagories(); DisEnaButton.Hide(); + textBox1.Text = "Search for mod name here..."; + CatagoriesComboBox.SelectedIndex = 0; } @@ -614,6 +616,13 @@ private void textBox1_TextChanged(object sender, EventArgs e) { UpdateModList("n/a", textBox1.Text ); } + private void textBox1_Click(object sender, EventArgs e) + { + if (textBox1.Text == "Search for mod name here...") + { + textBox1.Text = ""; + } + } private void button1_Click(object sender, EventArgs e)