From 308465e055a069cc109beb6b9367d8b0633c6921 Mon Sep 17 00:00:00 2001 From: Bitl Date: Sat, 18 Jul 2020 13:52:36 -0700 Subject: [PATCH] MAP SEARCH AAAAAAAAAAAAAAAAA --- .../Compact/LauncherFormCompact.Designer.cs | 765 +++++++++--------- .../Compact/LauncherFormCompact.cs | 65 ++ .../Compact/LauncherFormCompact.resx | 22 +- .../Extended/LauncherFormExtended.Designer.cs | 155 ++-- .../Extended/LauncherFormExtended.cs | 73 +- 5 files changed, 628 insertions(+), 452 deletions(-) diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.Designer.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.Designer.cs index 0ec198b..13e9cb2 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.Designer.cs @@ -43,46 +43,6 @@ namespace NovetusLauncher { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LauncherFormCompact)); this.tabControl1 = new System.Windows.Forms.TabControl(); - this.button25 = new System.Windows.Forms.Button(); - this.button21 = new System.Windows.Forms.Button(); - this.textBox5 = new System.Windows.Forms.TextBox(); - this.label15 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.button4 = new System.Windows.Forms.Button(); - this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.button8 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.label25 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.label27 = new System.Windows.Forms.Label(); - this.label28 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.button20 = new System.Windows.Forms.Button(); - this.button27 = new System.Windows.Forms.Button(); - this.panel1 = new System.Windows.Forms.Panel(); - this.button33 = new System.Windows.Forms.Button(); - this.button32 = new System.Windows.Forms.Button(); - this.button31 = new System.Windows.Forms.Button(); - this.button30 = new System.Windows.Forms.Button(); - this.button29 = new System.Windows.Forms.Button(); - this.button28 = new System.Windows.Forms.Button(); - this.button34 = new System.Windows.Forms.Button(); - this.panel2 = new System.Windows.Forms.Panel(); - this.label24 = new System.Windows.Forms.Label(); - this.label23 = new System.Windows.Forms.Label(); - this.panel5 = new System.Windows.Forms.Panel(); - this.comboBox2 = new System.Windows.Forms.ComboBox(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.checkBox6 = new System.Windows.Forms.CheckBox(); - this.checkBox7 = new System.Windows.Forms.CheckBox(); - this.label22 = new System.Windows.Forms.Label(); - this.checkBox5 = new System.Windows.Forms.CheckBox(); - this.panel3 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.button35 = new System.Windows.Forms.Button(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); @@ -153,7 +113,48 @@ namespace NovetusLauncher this.richTextBox3 = new System.Windows.Forms.RichTextBox(); this.SettingsButton = new System.Windows.Forms.Button(); this.UAButton = new System.Windows.Forms.Button(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); + this.button25 = new System.Windows.Forms.Button(); + this.button21 = new System.Windows.Forms.Button(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.label15 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button4 = new System.Windows.Forms.Button(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.button8 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.label25 = new System.Windows.Forms.Label(); + this.label26 = new System.Windows.Forms.Label(); + this.label27 = new System.Windows.Forms.Label(); + this.label28 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.button20 = new System.Windows.Forms.Button(); + this.button27 = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.button33 = new System.Windows.Forms.Button(); + this.button32 = new System.Windows.Forms.Button(); + this.button31 = new System.Windows.Forms.Button(); + this.button30 = new System.Windows.Forms.Button(); + this.button29 = new System.Windows.Forms.Button(); + this.button28 = new System.Windows.Forms.Button(); + this.button34 = new System.Windows.Forms.Button(); + this.panel2 = new System.Windows.Forms.Panel(); + this.label24 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.panel5 = new System.Windows.Forms.Panel(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.checkBox6 = new System.Windows.Forms.CheckBox(); + this.checkBox7 = new System.Windows.Forms.CheckBox(); + this.label22 = new System.Windows.Forms.Label(); + this.checkBox5 = new System.Windows.Forms.CheckBox(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.button35 = new System.Windows.Forms.Button(); + this.SearchBar = new System.Windows.Forms.TextBox(); + this.SearchButton = new System.Windows.Forms.Button(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); @@ -166,332 +167,9 @@ namespace NovetusLauncher this.tabPage7.SuspendLayout(); this.tabPage8.SuspendLayout(); this.tabPage5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // - // button25 - // - this.button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button25.Location = new System.Drawing.Point(315, 31); - this.button25.Name = "button25"; - this.button25.Size = new System.Drawing.Size(63, 20); - this.button25.TabIndex = 56; - this.button25.Text = "Install Mod"; - this.button25.UseVisualStyleBackColor = true; - this.button25.Click += new System.EventHandler(this.button25_Click); - // - // button21 - // - this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button21.Location = new System.Drawing.Point(380, 31); - this.button21.Name = "button21"; - this.button21.Size = new System.Drawing.Size(35, 20); - this.button21.TabIndex = 44; - this.button21.Text = "SDK"; - this.button21.UseVisualStyleBackColor = true; - this.button21.Click += new System.EventHandler(this.button34_Click); - // - // textBox5 - // - this.textBox5.Location = new System.Drawing.Point(95, 53); - this.textBox5.Multiline = true; - this.textBox5.Name = "textBox5"; - this.textBox5.Size = new System.Drawing.Size(71, 18); - this.textBox5.TabIndex = 20; - this.textBox5.Text = "0"; - this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged); - // - // label15 - // - this.label15.Location = new System.Drawing.Point(55, 34); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(40, 16); - this.label15.TabIndex = 12; - this.label15.Text = "Name:"; - // - // label13 - // - this.label13.Location = new System.Drawing.Point(55, 55); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(34, 13); - this.label13.TabIndex = 7; - this.label13.Text = "ID:"; - // - // textBox2 - // - this.textBox2.Location = new System.Drawing.Point(95, 31); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(121, 20); - this.textBox2.TabIndex = 11; - this.textBox2.Text = "Player"; - this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBox2.TextChanged += new System.EventHandler(this.TextBox2TextChanged); - // - // button4 - // - this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button4.Location = new System.Drawing.Point(169, 52); - this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(48, 20); - this.button4.TabIndex = 9; - this.button4.Text = "Regen"; - this.button4.UseVisualStyleBackColor = true; - this.button4.Click += new System.EventHandler(this.Button4Click); - // - // pictureBox2 - // - this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage"))); - this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.pictureBox2.Location = new System.Drawing.Point(6, 12); - this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(43, 41); - this.pictureBox2.TabIndex = 7; - this.pictureBox2.TabStop = false; - // - // button8 - // - this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button8.Location = new System.Drawing.Point(223, 31); - this.button8.Name = "button8"; - this.button8.Size = new System.Drawing.Size(47, 20); - this.button8.TabIndex = 35; - this.button8.Text = "Avatar"; - this.button8.UseVisualStyleBackColor = true; - this.button8.Click += new System.EventHandler(this.Button8Click); - // - // button3 - // - this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button3.Location = new System.Drawing.Point(271, 31); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(43, 20); - this.button3.TabIndex = 6; - this.button3.Text = "Studio"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.Button3Click_legacy); - // - // label25 - // - this.label25.Location = new System.Drawing.Point(55, 4); - this.label25.Name = "label25"; - this.label25.Size = new System.Drawing.Size(109, 14); - this.label25.TabIndex = 16; - this.label25.Text = "SELECTED CLIENT:"; - // - // label26 - // - this.label26.Location = new System.Drawing.Point(160, 4); - this.label26.Name = "label26"; - this.label26.Size = new System.Drawing.Size(245, 13); - this.label26.TabIndex = 17; - this.label26.Text = "2009E"; - // - // label27 - // - this.label27.Location = new System.Drawing.Point(55, 18); - this.label27.Name = "label27"; - this.label27.Size = new System.Drawing.Size(95, 12); - this.label27.TabIndex = 18; - this.label27.Text = "SELECTED MAP:"; - // - // label28 - // - this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label28.Location = new System.Drawing.Point(145, 18); - this.label28.Name = "label28"; - this.label28.Size = new System.Drawing.Size(260, 12); - this.label28.TabIndex = 19; - this.label28.Text = "Baseplate.rbxl"; - // - // label11 - // - this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label11.Location = new System.Drawing.Point(4, 51); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(47, 25); - this.label11.TabIndex = 50; - this.label11.Text = "v1.0"; - this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter; - // - // label12 - // - this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label12.Location = new System.Drawing.Point(223, 51); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(192, 21); - this.label12.TabIndex = 0; - this.label12.Text = "Novetus!"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // label16 - // - this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label16.Location = new System.Drawing.Point(54, 6); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(2, 65); - this.label16.TabIndex = 51; - // - // button20 - // - this.button20.Location = new System.Drawing.Point(0, 0); - this.button20.Name = "button20"; - this.button20.Size = new System.Drawing.Size(75, 23); - this.button20.TabIndex = 0; - // - // button27 - // - this.button27.Location = new System.Drawing.Point(0, 0); - this.button27.Name = "button27"; - this.button27.Size = new System.Drawing.Size(75, 23); - this.button27.TabIndex = 0; - // - // panel1 - // - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(200, 100); - this.panel1.TabIndex = 0; - // - // button33 - // - this.button33.Location = new System.Drawing.Point(0, 0); - this.button33.Name = "button33"; - this.button33.Size = new System.Drawing.Size(75, 23); - this.button33.TabIndex = 0; - // - // button32 - // - this.button32.Location = new System.Drawing.Point(0, 0); - this.button32.Name = "button32"; - this.button32.Size = new System.Drawing.Size(75, 23); - this.button32.TabIndex = 0; - // - // button31 - // - this.button31.Location = new System.Drawing.Point(0, 0); - this.button31.Name = "button31"; - this.button31.Size = new System.Drawing.Size(75, 23); - this.button31.TabIndex = 0; - // - // button30 - // - this.button30.Location = new System.Drawing.Point(0, 0); - this.button30.Name = "button30"; - this.button30.Size = new System.Drawing.Size(75, 23); - this.button30.TabIndex = 0; - // - // button29 - // - this.button29.Location = new System.Drawing.Point(0, 0); - this.button29.Name = "button29"; - this.button29.Size = new System.Drawing.Size(75, 23); - this.button29.TabIndex = 0; - // - // button28 - // - this.button28.Location = new System.Drawing.Point(0, 0); - this.button28.Name = "button28"; - this.button28.Size = new System.Drawing.Size(75, 23); - this.button28.TabIndex = 0; - // - // button34 - // - this.button34.Location = new System.Drawing.Point(0, 0); - this.button34.Name = "button34"; - this.button34.Size = new System.Drawing.Size(75, 23); - this.button34.TabIndex = 0; - // - // panel2 - // - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(200, 100); - this.panel2.TabIndex = 0; - // - // label24 - // - this.label24.Location = new System.Drawing.Point(0, 0); - this.label24.Name = "label24"; - this.label24.Size = new System.Drawing.Size(100, 23); - this.label24.TabIndex = 0; - // - // label23 - // - this.label23.Location = new System.Drawing.Point(0, 0); - this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(100, 23); - this.label23.TabIndex = 0; - // - // panel5 - // - this.panel5.Location = new System.Drawing.Point(0, 0); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(200, 100); - this.panel5.TabIndex = 0; - // - // comboBox2 - // - this.comboBox2.Location = new System.Drawing.Point(0, 0); - this.comboBox2.Name = "comboBox2"; - this.comboBox2.Size = new System.Drawing.Size(121, 21); - this.comboBox2.TabIndex = 0; - // - // comboBox1 - // - this.comboBox1.Location = new System.Drawing.Point(0, 0); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(121, 21); - this.comboBox1.TabIndex = 0; - // - // checkBox6 - // - this.checkBox6.Location = new System.Drawing.Point(0, 0); - this.checkBox6.Name = "checkBox6"; - this.checkBox6.Size = new System.Drawing.Size(104, 24); - this.checkBox6.TabIndex = 0; - // - // checkBox7 - // - this.checkBox7.Location = new System.Drawing.Point(0, 0); - this.checkBox7.Name = "checkBox7"; - this.checkBox7.Size = new System.Drawing.Size(104, 24); - this.checkBox7.TabIndex = 0; - // - // label22 - // - this.label22.Location = new System.Drawing.Point(0, 0); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(100, 23); - this.label22.TabIndex = 0; - // - // checkBox5 - // - this.checkBox5.Location = new System.Drawing.Point(0, 0); - this.checkBox5.Name = "checkBox5"; - this.checkBox5.Size = new System.Drawing.Size(104, 24); - this.checkBox5.TabIndex = 0; - // - // panel3 - // - this.panel3.Location = new System.Drawing.Point(0, 0); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(200, 100); - this.panel3.TabIndex = 0; - // - // panel4 - // - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(200, 100); - this.panel4.TabIndex = 0; - // - // button35 - // - this.button35.Location = new System.Drawing.Point(0, 0); - this.button35.Name = "button35"; - this.button35.Size = new System.Drawing.Size(75, 23); - this.button35.TabIndex = 0; - // // tabControl1 // this.tabControl1.Controls.Add(this.tabPage1); @@ -889,6 +567,8 @@ namespace NovetusLauncher // // tabPage4 // + this.tabPage4.Controls.Add(this.SearchButton); + this.tabPage4.Controls.Add(this.SearchBar); this.tabPage4.Controls.Add(this.textBox4); this.tabPage4.Controls.Add(this.button24); this.tabPage4.Controls.Add(this.treeView1); @@ -913,9 +593,9 @@ namespace NovetusLauncher // // button24 // - this.button24.Location = new System.Drawing.Point(7, 3); + this.button24.Location = new System.Drawing.Point(216, 3); this.button24.Name = "button24"; - this.button24.Size = new System.Drawing.Size(188, 23); + this.button24.Size = new System.Drawing.Size(76, 23); this.button24.TabIndex = 59; this.button24.Text = "Refresh List"; this.button24.UseVisualStyleBackColor = true; @@ -933,9 +613,9 @@ namespace NovetusLauncher // button6 // this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button6.Location = new System.Drawing.Point(211, 3); + this.button6.Location = new System.Drawing.Point(294, 3); this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(188, 23); + this.button6.Size = new System.Drawing.Size(105, 23); this.button6.TabIndex = 56; this.button6.Text = "Open Maps Folder"; this.button6.UseVisualStyleBackColor = true; @@ -1170,7 +850,7 @@ namespace NovetusLauncher this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(173, 32); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(33, 13); + this.label5.Size = new System.Drawing.Size(30, 13); this.label5.TabIndex = 62; this.label5.Text = "Style"; // @@ -1326,6 +1006,347 @@ namespace NovetusLauncher this.UAButton.UseVisualStyleBackColor = true; this.UAButton.Click += new System.EventHandler(this.Button21Click); // + // button25 + // + this.button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button25.Location = new System.Drawing.Point(315, 31); + this.button25.Name = "button25"; + this.button25.Size = new System.Drawing.Size(63, 20); + this.button25.TabIndex = 56; + this.button25.Text = "Install Mod"; + this.button25.UseVisualStyleBackColor = true; + this.button25.Click += new System.EventHandler(this.button25_Click); + // + // button21 + // + this.button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button21.Location = new System.Drawing.Point(380, 31); + this.button21.Name = "button21"; + this.button21.Size = new System.Drawing.Size(35, 20); + this.button21.TabIndex = 44; + this.button21.Text = "SDK"; + this.button21.UseVisualStyleBackColor = true; + this.button21.Click += new System.EventHandler(this.button34_Click); + // + // textBox5 + // + this.textBox5.Location = new System.Drawing.Point(95, 53); + this.textBox5.Multiline = true; + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(71, 18); + this.textBox5.TabIndex = 20; + this.textBox5.Text = "0"; + this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged); + // + // label15 + // + this.label15.Location = new System.Drawing.Point(55, 34); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(40, 16); + this.label15.TabIndex = 12; + this.label15.Text = "Name:"; + // + // label13 + // + this.label13.Location = new System.Drawing.Point(55, 55); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(34, 13); + this.label13.TabIndex = 7; + this.label13.Text = "ID:"; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(95, 31); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(121, 20); + this.textBox2.TabIndex = 11; + this.textBox2.Text = "Player"; + this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBox2.TextChanged += new System.EventHandler(this.TextBox2TextChanged); + // + // button4 + // + this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button4.Location = new System.Drawing.Point(169, 52); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(48, 20); + this.button4.TabIndex = 9; + this.button4.Text = "Regen"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.Button4Click); + // + // pictureBox2 + // + this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage"))); + this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.pictureBox2.Location = new System.Drawing.Point(6, 12); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(43, 41); + this.pictureBox2.TabIndex = 7; + this.pictureBox2.TabStop = false; + // + // button8 + // + this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button8.Location = new System.Drawing.Point(223, 31); + this.button8.Name = "button8"; + this.button8.Size = new System.Drawing.Size(47, 20); + this.button8.TabIndex = 35; + this.button8.Text = "Avatar"; + this.button8.UseVisualStyleBackColor = true; + this.button8.Click += new System.EventHandler(this.Button8Click); + // + // button3 + // + this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button3.Location = new System.Drawing.Point(271, 31); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(43, 20); + this.button3.TabIndex = 6; + this.button3.Text = "Studio"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.Button3Click_legacy); + // + // label25 + // + this.label25.Location = new System.Drawing.Point(55, 4); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(109, 14); + this.label25.TabIndex = 16; + this.label25.Text = "SELECTED CLIENT:"; + // + // label26 + // + this.label26.Location = new System.Drawing.Point(160, 4); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(245, 13); + this.label26.TabIndex = 17; + this.label26.Text = "2009E"; + // + // label27 + // + this.label27.Location = new System.Drawing.Point(55, 18); + this.label27.Name = "label27"; + this.label27.Size = new System.Drawing.Size(95, 12); + this.label27.TabIndex = 18; + this.label27.Text = "SELECTED MAP:"; + // + // label28 + // + this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label28.Location = new System.Drawing.Point(145, 18); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(260, 12); + this.label28.TabIndex = 19; + this.label28.Text = "Baseplate.rbxl"; + // + // label11 + // + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label11.Location = new System.Drawing.Point(4, 51); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(47, 25); + this.label11.TabIndex = 50; + this.label11.Text = "v1.0"; + this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // label12 + // + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label12.Location = new System.Drawing.Point(223, 51); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(192, 21); + this.label12.TabIndex = 0; + this.label12.Text = "Novetus!"; + this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label16 + // + this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label16.Location = new System.Drawing.Point(54, 6); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(2, 65); + this.label16.TabIndex = 51; + // + // button20 + // + this.button20.Location = new System.Drawing.Point(0, 0); + this.button20.Name = "button20"; + this.button20.Size = new System.Drawing.Size(75, 23); + this.button20.TabIndex = 0; + // + // button27 + // + this.button27.Location = new System.Drawing.Point(0, 0); + this.button27.Name = "button27"; + this.button27.Size = new System.Drawing.Size(75, 23); + this.button27.TabIndex = 0; + // + // panel1 + // + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(200, 100); + this.panel1.TabIndex = 0; + // + // button33 + // + this.button33.Location = new System.Drawing.Point(0, 0); + this.button33.Name = "button33"; + this.button33.Size = new System.Drawing.Size(75, 23); + this.button33.TabIndex = 0; + // + // button32 + // + this.button32.Location = new System.Drawing.Point(0, 0); + this.button32.Name = "button32"; + this.button32.Size = new System.Drawing.Size(75, 23); + this.button32.TabIndex = 0; + // + // button31 + // + this.button31.Location = new System.Drawing.Point(0, 0); + this.button31.Name = "button31"; + this.button31.Size = new System.Drawing.Size(75, 23); + this.button31.TabIndex = 0; + // + // button30 + // + this.button30.Location = new System.Drawing.Point(0, 0); + this.button30.Name = "button30"; + this.button30.Size = new System.Drawing.Size(75, 23); + this.button30.TabIndex = 0; + // + // button29 + // + this.button29.Location = new System.Drawing.Point(0, 0); + this.button29.Name = "button29"; + this.button29.Size = new System.Drawing.Size(75, 23); + this.button29.TabIndex = 0; + // + // button28 + // + this.button28.Location = new System.Drawing.Point(0, 0); + this.button28.Name = "button28"; + this.button28.Size = new System.Drawing.Size(75, 23); + this.button28.TabIndex = 0; + // + // button34 + // + this.button34.Location = new System.Drawing.Point(0, 0); + this.button34.Name = "button34"; + this.button34.Size = new System.Drawing.Size(75, 23); + this.button34.TabIndex = 0; + // + // panel2 + // + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(200, 100); + this.panel2.TabIndex = 0; + // + // label24 + // + this.label24.Location = new System.Drawing.Point(0, 0); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(100, 23); + this.label24.TabIndex = 0; + // + // label23 + // + this.label23.Location = new System.Drawing.Point(0, 0); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(100, 23); + this.label23.TabIndex = 0; + // + // panel5 + // + this.panel5.Location = new System.Drawing.Point(0, 0); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(200, 100); + this.panel5.TabIndex = 0; + // + // comboBox2 + // + this.comboBox2.Location = new System.Drawing.Point(0, 0); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(121, 21); + this.comboBox2.TabIndex = 0; + // + // comboBox1 + // + this.comboBox1.Location = new System.Drawing.Point(0, 0); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(121, 21); + this.comboBox1.TabIndex = 0; + // + // checkBox6 + // + this.checkBox6.Location = new System.Drawing.Point(0, 0); + this.checkBox6.Name = "checkBox6"; + this.checkBox6.Size = new System.Drawing.Size(104, 24); + this.checkBox6.TabIndex = 0; + // + // checkBox7 + // + this.checkBox7.Location = new System.Drawing.Point(0, 0); + this.checkBox7.Name = "checkBox7"; + this.checkBox7.Size = new System.Drawing.Size(104, 24); + this.checkBox7.TabIndex = 0; + // + // label22 + // + this.label22.Location = new System.Drawing.Point(0, 0); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(100, 23); + this.label22.TabIndex = 0; + // + // checkBox5 + // + this.checkBox5.Location = new System.Drawing.Point(0, 0); + this.checkBox5.Name = "checkBox5"; + this.checkBox5.Size = new System.Drawing.Size(104, 24); + this.checkBox5.TabIndex = 0; + // + // panel3 + // + this.panel3.Location = new System.Drawing.Point(0, 0); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(200, 100); + this.panel3.TabIndex = 0; + // + // panel4 + // + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(200, 100); + this.panel4.TabIndex = 0; + // + // button35 + // + this.button35.Location = new System.Drawing.Point(0, 0); + this.button35.Name = "button35"; + this.button35.Size = new System.Drawing.Size(75, 23); + this.button35.TabIndex = 0; + // + // SearchBar + // + this.SearchBar.Location = new System.Drawing.Point(7, 5); + this.SearchBar.Name = "SearchBar"; + this.SearchBar.Size = new System.Drawing.Size(151, 20); + this.SearchBar.TabIndex = 68; + // + // SearchButton + // + this.SearchButton.Location = new System.Drawing.Point(164, 3); + this.SearchButton.Name = "SearchButton"; + this.SearchButton.Size = new System.Drawing.Size(49, 23); + this.SearchButton.TabIndex = 69; + this.SearchButton.Text = "Search"; + this.SearchButton.UseVisualStyleBackColor = true; + this.SearchButton.Click += new System.EventHandler(this.SearchButton_Click); + // // LauncherFormCompact // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1359,7 +1380,6 @@ namespace NovetusLauncher this.Text = "Novetus"; this.Closing += new System.ComponentModel.CancelEventHandler(this.MainFormClose); this.Load += new System.EventHandler(this.MainFormLoad); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); @@ -1377,6 +1397,7 @@ namespace NovetusLauncher this.tabPage8.ResumeLayout(false); this.tabPage5.ResumeLayout(false); this.tabPage5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1494,6 +1515,8 @@ namespace NovetusLauncher private System.Windows.Forms.Label label3; private System.Windows.Forms.ComboBox comboBox3; private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox SearchBar; + private System.Windows.Forms.Button SearchButton; //private System.Windows.Forms.CheckBox checkBox8; } } diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.cs index 00d851e..f203e40 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.cs @@ -17,6 +17,9 @@ namespace NovetusLauncher { #region Private Variables private DiscordRPC.EventHandlers handlers; + private List CurrentNodeMatches = new List(); + private int LastNodeIndex = 0; + private string LastSearchText; #endregion #region Constructor @@ -1243,6 +1246,68 @@ namespace NovetusLauncher break; } } + + // FINALLY. https://stackoverflow.com/questions/11530643/treeview-search + + private void SearchButton_Click(object sender, EventArgs e) + { + string searchText = SearchBar.Text; + if (string.IsNullOrWhiteSpace(searchText)) + { + return; + }; + + if (LastSearchText != searchText) + { + //It's a new Search + CurrentNodeMatches.Clear(); + LastSearchText = searchText; + LastNodeIndex = 0; + SearchNodes(searchText, treeView1.Nodes[0]); + } + + if (LastNodeIndex >= 0 && CurrentNodeMatches.Count > 0 && LastNodeIndex < CurrentNodeMatches.Count) + { + TreeNode selectedNode = CurrentNodeMatches[LastNodeIndex]; + LastNodeIndex++; + treeView1.SelectedNode = selectedNode; + treeView1.SelectedNode.Expand(); + treeView1.Select(); + } + else + { + //It's a new Search + CurrentNodeMatches.Clear(); + LastSearchText = searchText; + LastNodeIndex = 0; + SearchNodes(searchText, treeView1.Nodes[0]); + TreeNode selectedNode = CurrentNodeMatches[LastNodeIndex]; + LastNodeIndex++; + treeView1.SelectedNode = selectedNode; + treeView1.SelectedNode.Expand(); + treeView1.Select(); + } + } + #endregion + + #region Functions + private void SearchNodes(string SearchText, TreeNode StartNode) + { + TreeNode node; + while (StartNode != null) + { + if (StartNode.Text.ToLower().Contains(SearchText.ToLower())) + { + CurrentNodeMatches.Add(StartNode); + }; + if (StartNode.Nodes.Count != 0) + { + SearchNodes(SearchText, StartNode.Nodes[0]);//Recursive Search + }; + StartNode = StartNode.NextNode; + }; + + } #endregion } #endregion diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.resx b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.resx index 2afb042..9aa1c53 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.resx +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Compact/LauncherFormCompact.resx @@ -117,6 +117,17 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + NOTE: +- If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER. +- If you tried to connect to the server and you get an error, REJOIN THE SERVER. +- To reset your character, type !!!reset into chat. +- Your tripcode will only be seen by you and the server host of any server you join. It is used to verify that you are a unique player. + + + + + @@ -19613,17 +19624,6 @@ aMoiAAAAAAAAAIymLAIAAAAAAADAaMoiAAAAAAAAAIymLAIAAAAAAADAaMoiAAAAAAAAAIymLAIAAAAA AADAaMoiAAAAAAAAAIymLAIAAAAAAADAaMoiAAAAAAAAAIymLAIAAAAAAADAaMoiAAAAAAAAAIxlc9X/ AxppXSXTqYivAAAAAElFTkSuQmCC - - - - NOTE: -- If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER. -- If you tried to connect to the server and you get an error, REJOIN THE SERVER. -- To reset your character, type !!!reset into chat. -- Your tripcode will only be seen by you and the server host of any server you join. It is used to verify that you are a unique player. - - - diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.Designer.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.Designer.cs index 24949ca..6e470e0 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.Designer.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.Designer.cs @@ -70,6 +70,11 @@ namespace NovetusLauncher this.button28 = new System.Windows.Forms.Button(); this.button34 = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); + this.SettingsButton = new System.Windows.Forms.Button(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel4 = new System.Windows.Forms.Panel(); + this.button35 = new System.Windows.Forms.Button(); + this.UAButton = new System.Windows.Forms.Button(); this.tabControl1 = new TabControlWithoutHeader(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.label24 = new System.Windows.Forms.Label(); @@ -102,6 +107,8 @@ namespace NovetusLauncher this.label30 = new System.Windows.Forms.Label(); this.listBox2 = new System.Windows.Forms.ListBox(); this.tabPage4 = new System.Windows.Forms.TabPage(); + this.SearchButton = new System.Windows.Forms.Button(); + this.SearchBar = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.button24 = new System.Windows.Forms.Button(); this.treeView1 = new System.Windows.Forms.TreeView(); @@ -148,14 +155,11 @@ namespace NovetusLauncher this.label18 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); - this.SettingsButton = new System.Windows.Forms.Button(); - this.panel3 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.button35 = new System.Windows.Forms.Button(); - this.UAButton = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); + this.panel3.SuspendLayout(); + this.panel4.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); @@ -169,8 +173,6 @@ namespace NovetusLauncher this.tabPage8.SuspendLayout(); this.tabPage5.SuspendLayout(); this.panel5.SuspendLayout(); - this.panel3.SuspendLayout(); - this.panel4.SuspendLayout(); this.SuspendLayout(); // // button25 @@ -304,7 +306,7 @@ namespace NovetusLauncher this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label28.Location = new System.Drawing.Point(329, 25); this.label28.Name = "label28"; - this.label28.Size = new System.Drawing.Size(403, 11); + this.label28.Size = new System.Drawing.Size(403, 18); this.label28.TabIndex = 19; this.label28.Text = "Baseplate.rbxl"; // @@ -461,6 +463,61 @@ namespace NovetusLauncher this.panel2.Size = new System.Drawing.Size(646, 311); this.panel2.TabIndex = 61; // + // SettingsButton + // + this.SettingsButton.Location = new System.Drawing.Point(0, 0); + this.SettingsButton.Name = "SettingsButton"; + this.SettingsButton.Size = new System.Drawing.Size(75, 23); + this.SettingsButton.TabIndex = 0; + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.panel3.Controls.Add(this.pictureBox2); + this.panel3.Controls.Add(this.textBox2); + this.panel3.Controls.Add(this.textBox5); + this.panel3.Controls.Add(this.button4); + this.panel3.Controls.Add(this.label16); + this.panel3.Controls.Add(this.label15); + this.panel3.Controls.Add(this.label12); + this.panel3.Controls.Add(this.label13); + this.panel3.Location = new System.Drawing.Point(1, 4); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(229, 69); + this.panel3.TabIndex = 62; + // + // panel4 + // + this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.panel4.Controls.Add(this.button35); + this.panel4.Controls.Add(this.button34); + this.panel4.Controls.Add(this.button21); + this.panel4.Controls.Add(this.button8); + this.panel4.Controls.Add(this.button3); + this.panel4.Controls.Add(this.button25); + this.panel4.Location = new System.Drawing.Point(236, 41); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(501, 32); + this.panel4.TabIndex = 63; + // + // button35 + // + this.button35.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button35.Location = new System.Drawing.Point(113, 3); + this.button35.Name = "button35"; + this.button35.Size = new System.Drawing.Size(41, 20); + this.button35.TabIndex = 61; + this.button35.Text = "Studio"; + this.button35.UseVisualStyleBackColor = true; + this.button35.Click += new System.EventHandler(this.button35_Click); + // + // UAButton + // + this.UAButton.Location = new System.Drawing.Point(0, 0); + this.UAButton.Name = "UAButton"; + this.UAButton.Size = new System.Drawing.Size(75, 23); + this.UAButton.TabIndex = 0; + // // tabControl1 // this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Bottom; @@ -851,6 +908,8 @@ namespace NovetusLauncher // // tabPage4 // + this.tabPage4.Controls.Add(this.SearchButton); + this.tabPage4.Controls.Add(this.SearchBar); this.tabPage4.Controls.Add(this.textBox4); this.tabPage4.Controls.Add(this.button24); this.tabPage4.Controls.Add(this.treeView1); @@ -862,6 +921,23 @@ namespace NovetusLauncher this.tabPage4.Text = "MAPS"; this.tabPage4.UseVisualStyleBackColor = true; // + // SearchButton + // + this.SearchButton.Location = new System.Drawing.Point(343, 3); + this.SearchButton.Name = "SearchButton"; + this.SearchButton.Size = new System.Drawing.Size(51, 23); + this.SearchButton.TabIndex = 69; + this.SearchButton.Text = "Search"; + this.SearchButton.UseVisualStyleBackColor = true; + this.SearchButton.Click += new System.EventHandler(this.SearchButton_Click); + // + // SearchBar + // + this.SearchBar.Location = new System.Drawing.Point(7, 5); + this.SearchBar.Name = "SearchBar"; + this.SearchBar.Size = new System.Drawing.Size(330, 20); + this.SearchBar.TabIndex = 68; + // // textBox4 // this.textBox4.BackColor = System.Drawing.SystemColors.ControlLightLight; @@ -1376,61 +1452,6 @@ namespace NovetusLauncher this.label7.Text = "PROJECT STARLIGHT"; this.label7.TextAlign = System.Drawing.ContentAlignment.TopCenter; // - // SettingsButton - // - this.SettingsButton.Location = new System.Drawing.Point(0, 0); - this.SettingsButton.Name = "SettingsButton"; - this.SettingsButton.Size = new System.Drawing.Size(75, 23); - this.SettingsButton.TabIndex = 0; - // - // panel3 - // - this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.panel3.Controls.Add(this.pictureBox2); - this.panel3.Controls.Add(this.textBox2); - this.panel3.Controls.Add(this.textBox5); - this.panel3.Controls.Add(this.button4); - this.panel3.Controls.Add(this.label16); - this.panel3.Controls.Add(this.label15); - this.panel3.Controls.Add(this.label12); - this.panel3.Controls.Add(this.label13); - this.panel3.Location = new System.Drawing.Point(1, 4); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(229, 69); - this.panel3.TabIndex = 62; - // - // panel4 - // - this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.panel4.Controls.Add(this.button35); - this.panel4.Controls.Add(this.button34); - this.panel4.Controls.Add(this.button21); - this.panel4.Controls.Add(this.button8); - this.panel4.Controls.Add(this.button3); - this.panel4.Controls.Add(this.button25); - this.panel4.Location = new System.Drawing.Point(236, 41); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(501, 32); - this.panel4.TabIndex = 63; - // - // button35 - // - this.button35.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button35.Location = new System.Drawing.Point(113, 3); - this.button35.Name = "button35"; - this.button35.Size = new System.Drawing.Size(41, 20); - this.button35.TabIndex = 61; - this.button35.Text = "Studio"; - this.button35.UseVisualStyleBackColor = true; - this.button35.Click += new System.EventHandler(this.button35_Click); - // - // UAButton - // - this.UAButton.Location = new System.Drawing.Point(0, 0); - this.UAButton.Name = "UAButton"; - this.UAButton.Size = new System.Drawing.Size(75, 23); - this.UAButton.TabIndex = 0; - // // LauncherFormExtended // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1457,6 +1478,9 @@ namespace NovetusLauncher ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + this.panel4.ResumeLayout(false); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); @@ -1475,9 +1499,6 @@ namespace NovetusLauncher this.tabPage5.ResumeLayout(false); this.panel5.ResumeLayout(false); this.panel5.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); - this.panel4.ResumeLayout(false); this.ResumeLayout(false); } @@ -1594,6 +1615,8 @@ namespace NovetusLauncher private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label5; private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.TextBox SearchBar; + private System.Windows.Forms.Button SearchButton; //private System.Windows.Forms.CheckBox checkBox8; } } diff --git a/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.cs b/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.cs index d639d0f..d20d909 100644 --- a/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.cs +++ b/Novetus/NovetusLauncher/Forms/LauncherForm/Extended/LauncherFormExtended.cs @@ -18,10 +18,13 @@ namespace NovetusLauncher { #region Private Variables private DiscordRPC.EventHandlers handlers; - #endregion + private List CurrentNodeMatches = new List(); + private int LastNodeIndex = 0; + private string LastSearchText; + #endregion - #region Constructor - public LauncherFormExtended() + #region Constructor + public LauncherFormExtended() { _fieldsTreeCache = new TreeView(); InitializeComponent(); @@ -1351,7 +1354,69 @@ namespace NovetusLauncher break; } } - #endregion + + // FINALLY. https://stackoverflow.com/questions/11530643/treeview-search + + private void SearchButton_Click(object sender, EventArgs e) + { + string searchText = SearchBar.Text; + if (string.IsNullOrWhiteSpace(searchText)) + { + return; + }; + + if (LastSearchText != searchText) + { + //It's a new Search + CurrentNodeMatches.Clear(); + LastSearchText = searchText; + LastNodeIndex = 0; + SearchNodes(searchText, treeView1.Nodes[0]); + } + + if (LastNodeIndex >= 0 && CurrentNodeMatches.Count > 0 && LastNodeIndex < CurrentNodeMatches.Count) + { + TreeNode selectedNode = CurrentNodeMatches[LastNodeIndex]; + LastNodeIndex++; + treeView1.SelectedNode = selectedNode; + treeView1.SelectedNode.Expand(); + treeView1.Select(); + } + else + { + //It's a new Search + CurrentNodeMatches.Clear(); + LastSearchText = searchText; + LastNodeIndex = 0; + SearchNodes(searchText, treeView1.Nodes[0]); + TreeNode selectedNode = CurrentNodeMatches[LastNodeIndex]; + LastNodeIndex++; + treeView1.SelectedNode = selectedNode; + treeView1.SelectedNode.Expand(); + treeView1.Select(); + } + } + #endregion + + #region Functions + private void SearchNodes(string SearchText, TreeNode StartNode) + { + TreeNode node; + while (StartNode != null) + { + if (StartNode.Text.ToLower().Contains(SearchText.ToLower())) + { + CurrentNodeMatches.Add(StartNode); + }; + if (StartNode.Nodes.Count != 0) + { + SearchNodes(SearchText, StartNode.Nodes[0]);//Recursive Search + }; + StartNode = StartNode.NextNode; + }; + + } + #endregion } #endregion }