diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 7511530..b5f87b4 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -34,6 +34,8 @@ private void InitializeComponent() this.metroContextMenu1 = new MetroFramework.Controls.MetroContextMenu(this.components); this.alwaysOnTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.label9 = new System.Windows.Forms.Label(); + this.ChampsSearchBox = new System.Windows.Forms.TextBox(); this.metroButton4 = new MetroFramework.Controls.MetroButton(); this.Debug = new System.Windows.Forms.Label(); this.Title = new System.Windows.Forms.Label(); @@ -65,11 +67,16 @@ private void InitializeComponent() this.metroPanel1 = new MetroFramework.Controls.MetroPanel(); this.ChampionsTab = new MetroFramework.Controls.MetroTabPage(); this.label8 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); this.metroPanel5 = new MetroFramework.Controls.MetroPanel(); + this.ChampsListContext = new MetroFramework.Controls.MetroContextMenu(this.components); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.ascendingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.descendingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ChampsList = new System.Windows.Forms.FlowLayoutPanel(); + this.label5 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); this.ProbTab = new MetroFramework.Controls.MetroTabPage(); this.label6 = new System.Windows.Forms.Label(); this.metroLabel1 = new MetroFramework.Controls.MetroLabel(); @@ -106,13 +113,9 @@ private void InitializeComponent() this.AddWinBtn = new MetroFramework.Controls.MetroButton(); this.WinLab = new System.Windows.Forms.Label(); this.LoseLab = new System.Windows.Forms.Label(); - this.ChampsSearchBox = new System.Windows.Forms.TextBox(); - this.ChampsListContext = new MetroFramework.Controls.MetroContextMenu(this.components); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.ascendingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.descendingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.label9 = new System.Windows.Forms.Label(); + this.cost3ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.cost4ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.cost5ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panel1.SuspendLayout(); this.metroContextMenu1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -123,12 +126,12 @@ private void InitializeComponent() this.metroPanel1.SuspendLayout(); this.ChampionsTab.SuspendLayout(); this.metroPanel5.SuspendLayout(); + this.ChampsListContext.SuspendLayout(); this.ProbTab.SuspendLayout(); this.TierListTab.SuspendLayout(); this.metroPanel4.SuspendLayout(); this.WinRateTab.SuspendLayout(); this.metroPanel3.SuspendLayout(); - this.ChampsListContext.SuspendLayout(); this.SuspendLayout(); // // panel1 @@ -171,6 +174,27 @@ private void InitializeComponent() this.aboutToolStripMenuItem.Text = "About"; this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); // + // label9 + // + this.label9.AutoSize = true; + this.label9.BackColor = System.Drawing.Color.Transparent; + this.label9.ForeColor = System.Drawing.Color.Black; + this.label9.Location = new System.Drawing.Point(178, 7); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(44, 13); + this.label9.TabIndex = 11; + this.label9.Text = "Search:"; + // + // ChampsSearchBox + // + this.ChampsSearchBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(27)))), ((int)(((byte)(38))))); + this.ChampsSearchBox.Location = new System.Drawing.Point(223, 4); + this.ChampsSearchBox.Name = "ChampsSearchBox"; + this.ChampsSearchBox.Size = new System.Drawing.Size(83, 20); + this.ChampsSearchBox.TabIndex = 10; + this.ChampsSearchBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + this.ChampsSearchBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); + // // metroButton4 // this.metroButton4.BackColor = System.Drawing.Color.Transparent; @@ -635,6 +659,7 @@ private void InitializeComponent() // // ChampionsTab // + this.ChampionsTab.AccessibleName = ""; this.ChampionsTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(27)))), ((int)(((byte)(38))))); this.ChampionsTab.Controls.Add(this.label8); this.ChampionsTab.Controls.Add(this.metroPanel5); @@ -648,6 +673,7 @@ private void InitializeComponent() this.ChampionsTab.Name = "ChampionsTab"; this.ChampionsTab.Size = new System.Drawing.Size(332, 187); this.ChampionsTab.TabIndex = 4; + this.ChampionsTab.Tag = ""; this.ChampionsTab.Text = "Champs"; this.ChampionsTab.UseCustomBackColor = true; this.ChampionsTab.VerticalScrollbarBarColor = true; @@ -664,36 +690,6 @@ private void InitializeComponent() this.label8.TabIndex = 9; this.label8.Text = "Cost"; // - // label7 - // - this.label7.AutoSize = true; - this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); - this.label7.Location = new System.Drawing.Point(101, 5); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(64, 13); - this.label7.TabIndex = 8; - this.label7.Text = "Origin/Class"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); - this.label5.Location = new System.Drawing.Point(172, 5); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(105, 13); - this.label5.TabIndex = 7; - this.label5.Text = "Reccomended Items"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); - this.label4.Location = new System.Drawing.Point(10, 5); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(54, 13); - this.label4.TabIndex = 6; - this.label4.Text = "Champion"; - // // metroPanel5 // this.metroPanel5.AutoScroll = true; @@ -713,6 +709,47 @@ private void InitializeComponent() this.metroPanel5.VerticalScrollbarHighlightOnWheel = false; this.metroPanel5.VerticalScrollbarSize = 10; // + // ChampsListContext + // + this.ChampsListContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripMenuItem2, + this.toolStripMenuItem1}); + this.ChampsListContext.Name = "metroContextMenu1"; + this.ChampsListContext.Size = new System.Drawing.Size(181, 70); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22); + this.toolStripMenuItem2.Text = "Sort by Name"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.ascendingToolStripMenuItem, + this.descendingToolStripMenuItem, + this.cost3ToolStripMenuItem, + this.cost4ToolStripMenuItem, + this.cost5ToolStripMenuItem}); + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(180, 22); + this.toolStripMenuItem1.Text = "Sort by Cost"; + // + // ascendingToolStripMenuItem + // + this.ascendingToolStripMenuItem.Name = "ascendingToolStripMenuItem"; + this.ascendingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.ascendingToolStripMenuItem.Text = "Cost 1"; + this.ascendingToolStripMenuItem.Click += new System.EventHandler(this.ascendingToolStripMenuItem_Click); + // + // descendingToolStripMenuItem + // + this.descendingToolStripMenuItem.Name = "descendingToolStripMenuItem"; + this.descendingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.descendingToolStripMenuItem.Text = "Cost 2"; + this.descendingToolStripMenuItem.Click += new System.EventHandler(this.descendingToolStripMenuItem_Click); + // // ChampsList // this.ChampsList.AutoSize = true; @@ -722,6 +759,36 @@ private void InitializeComponent() this.ChampsList.Size = new System.Drawing.Size(321, 0); this.ChampsList.TabIndex = 4; // + // label5 + // + this.label5.AutoSize = true; + this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); + this.label5.Location = new System.Drawing.Point(172, 5); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(105, 13); + this.label5.TabIndex = 7; + this.label5.Text = "Reccomended Items"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); + this.label7.Location = new System.Drawing.Point(101, 5); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(64, 13); + this.label7.TabIndex = 8; + this.label7.Text = "Origin/Class"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); + this.label4.Location = new System.Drawing.Point(10, 5); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(54, 13); + this.label4.TabIndex = 6; + this.label4.Text = "Champion"; + // // ProbTab // this.ProbTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(27)))), ((int)(((byte)(38))))); @@ -1244,66 +1311,26 @@ private void InitializeComponent() this.LoseLab.Text = "0 L"; this.LoseLab.TextChanged += new System.EventHandler(this.LoseLab_TextChanged); // - // ChampsSearchBox + // cost3ToolStripMenuItem // - this.ChampsSearchBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(27)))), ((int)(((byte)(38))))); - this.ChampsSearchBox.Location = new System.Drawing.Point(223, 4); - this.ChampsSearchBox.Name = "ChampsSearchBox"; - this.ChampsSearchBox.Size = new System.Drawing.Size(83, 20); - this.ChampsSearchBox.TabIndex = 10; - this.ChampsSearchBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged); - this.ChampsSearchBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); - // - // ChampsListContext - // - this.ChampsListContext.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem2, - this.toolStripMenuItem1}); - this.ChampsListContext.Name = "metroContextMenu1"; - this.ChampsListContext.Size = new System.Drawing.Size(147, 48); - // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ascendingToolStripMenuItem, - this.descendingToolStripMenuItem}); - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(146, 22); - this.toolStripMenuItem1.Text = "Sort by Cost"; - // - // toolStripMenuItem2 + this.cost3ToolStripMenuItem.Name = "cost3ToolStripMenuItem"; + this.cost3ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.cost3ToolStripMenuItem.Text = "Cost 3"; + this.cost3ToolStripMenuItem.Click += new System.EventHandler(this.cost3ToolStripMenuItem_Click); // - this.toolStripMenuItem2.Checked = true; - this.toolStripMenuItem2.CheckOnClick = true; - this.toolStripMenuItem2.CheckState = System.Windows.Forms.CheckState.Checked; - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(146, 22); - this.toolStripMenuItem2.Text = "Sort by Name"; - // - // ascendingToolStripMenuItem + // cost4ToolStripMenuItem // - this.ascendingToolStripMenuItem.CheckOnClick = true; - this.ascendingToolStripMenuItem.Name = "ascendingToolStripMenuItem"; - this.ascendingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.ascendingToolStripMenuItem.Text = "Ascending"; - // - // descendingToolStripMenuItem - // - this.descendingToolStripMenuItem.CheckOnClick = true; - this.descendingToolStripMenuItem.Name = "descendingToolStripMenuItem"; - this.descendingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.descendingToolStripMenuItem.Text = "Descending"; + this.cost4ToolStripMenuItem.Name = "cost4ToolStripMenuItem"; + this.cost4ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.cost4ToolStripMenuItem.Text = "Cost 4"; + this.cost4ToolStripMenuItem.Click += new System.EventHandler(this.cost4ToolStripMenuItem_Click); // - // label9 + // cost5ToolStripMenuItem // - this.label9.AutoSize = true; - this.label9.BackColor = System.Drawing.Color.Transparent; - this.label9.ForeColor = System.Drawing.Color.Black; - this.label9.Location = new System.Drawing.Point(178, 7); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(44, 13); - this.label9.TabIndex = 11; - this.label9.Text = "Search:"; + this.cost5ToolStripMenuItem.Name = "cost5ToolStripMenuItem"; + this.cost5ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.cost5ToolStripMenuItem.Text = "Cost 5"; + this.cost5ToolStripMenuItem.Click += new System.EventHandler(this.cost5ToolStripMenuItem_Click); // // TFTCrafter // @@ -1334,6 +1361,7 @@ private void InitializeComponent() this.ChampionsTab.PerformLayout(); this.metroPanel5.ResumeLayout(false); this.metroPanel5.PerformLayout(); + this.ChampsListContext.ResumeLayout(false); this.ProbTab.ResumeLayout(false); this.ProbTab.PerformLayout(); this.TierListTab.ResumeLayout(false); @@ -1342,7 +1370,6 @@ private void InitializeComponent() this.WinRateTab.ResumeLayout(false); this.WinRateTab.PerformLayout(); this.metroPanel3.ResumeLayout(false); - this.ChampsListContext.ResumeLayout(false); this.ResumeLayout(false); } @@ -1432,6 +1459,9 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem ascendingToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem descendingToolStripMenuItem; private System.Windows.Forms.Label label9; + private System.Windows.Forms.ToolStripMenuItem cost3ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem cost4ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem cost5ToolStripMenuItem; } } diff --git a/Form1.cs b/Form1.cs index 901e4ff..ee65998 100644 --- a/Form1.cs +++ b/Form1.cs @@ -63,7 +63,7 @@ public static Cursor LoadCustomCursor(string path) [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] private static extern IntPtr LoadCursorFromFile(string path); } - + public TFTCrafter() { InitializeComponent(); @@ -78,7 +78,8 @@ private void CalculateWR() if (TotalGames != 0) { WinRate.Text = FinalWinRate.ToString("0.0") + "%"; - } else + } + else { WinRate.Text = "0%"; } @@ -126,7 +127,7 @@ private void Form1_Load(object sender, EventArgs e) - + // GET JSON DATA itemsJSON = client.DownloadString("https://solomid-resources.s3.amazonaws.com/blitz/tft/data/items.json"); tiersJSON = client.DownloadString("https://solomid-resources.s3.amazonaws.com/blitz/tft/data/tierlist.json"); @@ -164,7 +165,7 @@ private void Form1_Load(object sender, EventArgs e) // LOAD CHAMPIONS LIST championsListLoop(); - + } @@ -854,14 +855,16 @@ private void alwaysOnTopToolStripMenuItem_Click(object sender, EventArgs e) Properties.Settings.Default.TopMost = false; TopMost = false; Properties.Settings.Default.Save(); - } else { + } + else + { Properties.Settings.Default.TopMost = true; TopMost = true; Properties.Settings.Default.Save(); } } - + private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e) { @@ -892,7 +895,7 @@ private void GetTierList(int TierIndex, string TierType) - string champName = (string)jObject.SelectToken(TierType + "."+ TierIndex + "[" + champIndex.ToString() + "]"); + string champName = (string)jObject.SelectToken(TierType + "." + TierIndex + "[" + champIndex.ToString() + "]"); var picture = new PictureBox { @@ -1094,12 +1097,12 @@ private void ProbTab_Click(object sender, EventArgs e) // DEPRECATED - // private void Pointer_MouseClick(object sender, MouseEventArgs e) - // { - // Cursor = NativeMethods.LoadCustomCursor(Path.GetTempPath() + "Pointer.cur"); - // System.Threading.Thread.Sleep(60); - // Cursor = NativeMethods.LoadCustomCursor(Path.GetTempPath() + "Normal.cur"); - // } + // private void Pointer_MouseClick(object sender, MouseEventArgs e) + // { + // Cursor = NativeMethods.LoadCustomCursor(Path.GetTempPath() + "Pointer.cur"); + // System.Threading.Thread.Sleep(60); + // Cursor = NativeMethods.LoadCustomCursor(Path.GetTempPath() + "Normal.cur"); + // } private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { @@ -1119,11 +1122,11 @@ private void PointerLogicLeave(object sender, EventArgs e) - // CHAMPIONS LIST CODE + // CHAMPIONS LIST CODE private void championsListLoop() { - + JObject jObject = JObject.Parse(champsJSON); // CHAMP LIST (FOREACH) @@ -1137,7 +1140,7 @@ private void championsListLoop() // VARIABLES var key = item.Name.ToString(); - int cost = (int)jObject.SelectToken(key + ".cost"); + int cost = (int)jObject.SelectToken(key + ".cost"); string ability = (string)jObject.SelectToken(key + ".ability.description"); Color tiercost = Color.OrangeRed; @@ -1150,8 +1153,9 @@ private void championsListLoop() tiercost = Color.DimGray; } - if (cost == 2) { - tiercost = Color.ForestGreen; + if (cost == 2) + { + tiercost = Color.ForestGreen; } if (cost == 3) @@ -1184,12 +1188,13 @@ private void championsListLoop() var basepanel = new FlowLayoutPanel { Name = key, + Text = cost.ToString(), Size = new Size(312, 48), + }; ChampsList.Controls.Add(basepanel); SearchPanel = basepanel; - // CHAMP BORDER var ChampBox = new Panel { @@ -1218,13 +1223,15 @@ private void championsListLoop() // CHAMP COST var ChampCost = new MetroLabel { + + Name = cost.ToString(), Text = cost.ToString(), Anchor = AnchorStyles.None, Dock = DockStyle.None, UseCustomBackColor = true, UseCustomForeColor = true, ForeColor = tiercost, - + Size = new Size(12, 18), FontWeight = MetroFramework.MetroLabelWeight.Bold, }; @@ -1309,7 +1316,7 @@ private void championsListLoop() tiup.SetToolTip(picturebox, classes); classesIndex++; } - + // SPACER @@ -1368,13 +1375,17 @@ private void championsListLoop() // TOOLTIPS tiup.SetToolTip(ChampBox, ability); - tiup.SetToolTip(ChampPicture, " "+ ability + " "); + tiup.SetToolTip(ChampPicture, " " + ability + " "); } } + + + + private void textBox1_TextChanged(object sender, EventArgs e) { foreach (Control SearchPanel in ChampsList.Controls) @@ -1407,11 +1418,134 @@ private void metroTabControl1_SelectedIndexChanged(object sender, EventArgs e) { ChampsSearchBox.Visible = false; label9.Visible = false; - } else + } + else { ChampsSearchBox.Visible = true; label9.Visible = true; } } + + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + + } + + private void ascendingToolStripMenuItem_Click(object sender, EventArgs e) + { + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + + for (int i = 0; i < 5; i++) + { + foreach (Control SearchPanel in ChampsList.Controls) + { + + + if (!SearchPanel.Text.ToLower().Contains("1".ToLower())) + { + + Console.WriteLine("Executed"); + ChampsList.Controls.Remove(SearchPanel); + } + + } + } + } + + private void descendingToolStripMenuItem_Click(object sender, EventArgs e) + { + + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + for (int i = 0; i < 5; i++) + { + foreach (Control SearchPanel in ChampsList.Controls) + { + + + if (!SearchPanel.Text.ToLower().Contains("2".ToLower())) + { + + Console.WriteLine("Executed"); + ChampsList.Controls.Remove(SearchPanel); + } + + } + } + } + + private void cost3ToolStripMenuItem_Click(object sender, EventArgs e) + { + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + + for (int i = 0; i < 5; i++) + { + foreach (Control SearchPanel in ChampsList.Controls) + { + + + if (!SearchPanel.Text.ToLower().Contains("3".ToLower())) + { + + Console.WriteLine("Executed"); + ChampsList.Controls.Remove(SearchPanel); + } + + } + } + } + + private void cost4ToolStripMenuItem_Click(object sender, EventArgs e) + { + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + for (int i = 0; i < 5; i++) + { + foreach (Control SearchPanel in ChampsList.Controls) + { + + + if (!SearchPanel.Text.ToLower().Contains("4".ToLower())) + { + + Console.WriteLine("Executed"); + ChampsList.Controls.Remove(SearchPanel); + } + + } + } + } + + private void cost5ToolStripMenuItem_Click(object sender, EventArgs e) + { + ChampsList.Controls.Clear(); + ChampsSearchBox.Clear(); + championsListLoop(); + + for (int i = 0; i < 5; i++) + { + foreach (Control SearchPanel in ChampsList.Controls) + { + + + if (!SearchPanel.Text.ToLower().Contains("5".ToLower())) + { + + Console.WriteLine("Executed"); + ChampsList.Controls.Remove(SearchPanel); + } + + } + } + } } } \ No newline at end of file diff --git a/bin/Release/TFT Overlay.exe b/bin/Release/TFT Overlay.exe index 4fc304a..9e933f9 100644 Binary files a/bin/Release/TFT Overlay.exe and b/bin/Release/TFT Overlay.exe differ diff --git a/bin/Release/TFT Overlay.pdb b/bin/Release/TFT Overlay.pdb index 791c0a3..534ec30 100644 Binary files a/bin/Release/TFT Overlay.pdb and b/bin/Release/TFT Overlay.pdb differ diff --git a/obj/Release/TFT Overlay.csproj.GenerateResource.cache b/obj/Release/TFT Overlay.csproj.GenerateResource.cache index b119667..17565ff 100644 Binary files a/obj/Release/TFT Overlay.csproj.GenerateResource.cache and b/obj/Release/TFT Overlay.csproj.GenerateResource.cache differ diff --git a/obj/Release/TFT Overlay.exe b/obj/Release/TFT Overlay.exe index 4fc304a..9e933f9 100644 Binary files a/obj/Release/TFT Overlay.exe and b/obj/Release/TFT Overlay.exe differ diff --git a/obj/Release/TFT Overlay.pdb b/obj/Release/TFT Overlay.pdb index 791c0a3..534ec30 100644 Binary files a/obj/Release/TFT Overlay.pdb and b/obj/Release/TFT Overlay.pdb differ