From 22b1fe89cf35ba019ba09d5272d6a063265d835c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 18 Aug 2016 23:47:57 +1000 Subject: [PATCH] Remove unused forceCuboid checkbox. --- GUI/Formatter.cs | 6 +++--- GUI/PropertyWindow.Designer.cs | 16 ---------------- GUI/PropertyWindow.cs | 5 ----- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/GUI/Formatter.cs b/GUI/Formatter.cs index 59ad5d088..c1c227ef0 100644 --- a/GUI/Formatter.cs +++ b/GUI/Formatter.cs @@ -130,9 +130,9 @@ namespace MCGalaxy.Gui { public static List GetColorsList() { List colors = new List() { - "Black", "Navy", "Green", "Teal", "Maroon", - "Purple", "Gold", "Silver", "Gray", "Blue", - "Lime", "Aqua", "Red", "Pink", "Yellow", "White" }; + "black", "navy", "green", "teal", "maroon", + "purple", "gold", "silver", "gray", "blue", + "lime", "aqua", "red", "pink", "yellow", "white" }; for (int i = 0; i < 256; i++) { if (Colors.ExtColors[i].Undefined) continue; diff --git a/GUI/PropertyWindow.Designer.cs b/GUI/PropertyWindow.Designer.cs index 605409e91..94405f3f6 100644 --- a/GUI/PropertyWindow.Designer.cs +++ b/GUI/PropertyWindow.Designer.cs @@ -121,7 +121,6 @@ namespace MCGalaxy.Gui this.txtBackup = new System.Windows.Forms.TextBox(); this.txtafk = new System.Windows.Forms.TextBox(); this.txtAFKKick = new System.Windows.Forms.TextBox(); - this.chkForceCuboid = new System.Windows.Forms.CheckBox(); this.hackrank_kick = new System.Windows.Forms.CheckBox(); this.chkIRC = new System.Windows.Forms.CheckBox(); this.txtNick = new System.Windows.Forms.TextBox(); @@ -1243,19 +1242,6 @@ namespace MCGalaxy.Gui this.txtAFKKick.TabIndex = 9; this.toolTip.SetToolTip(this.txtAFKKick, "Kick the user after they have been afk for this many minutes (0 = No kick)"); // - // chkForceCuboid - // - this.chkForceCuboid.Appearance = System.Windows.Forms.Appearance.Button; - this.chkForceCuboid.AutoSize = true; - this.chkForceCuboid.Location = new System.Drawing.Point(523, 266); - this.chkForceCuboid.Name = "chkForceCuboid"; - this.chkForceCuboid.Size = new System.Drawing.Size(78, 23); - this.chkForceCuboid.TabIndex = 29; - this.chkForceCuboid.Text = "Force Cuboid"; - this.toolTip.SetToolTip(this.chkForceCuboid, "When true, runs an attempted cuboid despite cuboid limits, until it hits the grou" + - "p limit for that user."); - this.chkForceCuboid.UseVisualStyleBackColor = true; - // // hackrank_kick // this.hackrank_kick.AutoSize = true; @@ -2206,7 +2192,6 @@ namespace MCGalaxy.Gui this.pageMisc.Controls.Add(this.grpAFK); this.pageMisc.Controls.Add(this.grpBackups); this.pageMisc.Controls.Add(this.chkProfanityFilter); - this.pageMisc.Controls.Add(this.chkForceCuboid); this.pageMisc.Font = new System.Drawing.Font("Calibri", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.pageMisc.Location = new System.Drawing.Point(4, 22); this.pageMisc.Name = "pageMisc"; @@ -4400,7 +4385,6 @@ namespace MCGalaxy.Gui private System.Windows.Forms.CheckBox hackrank_kick; private System.Windows.Forms.CheckBox chkProfanityFilter; private System.Windows.Forms.CheckBox chkRepeatMessages; - private System.Windows.Forms.CheckBox chkForceCuboid; private System.Windows.Forms.CheckBox chat_chkCheap; private System.Windows.Forms.CheckBox chkDeath; private System.Windows.Forms.CheckBox chk17Dollar; diff --git a/GUI/PropertyWindow.cs b/GUI/PropertyWindow.cs index 229cb8235..f3a390313 100644 --- a/GUI/PropertyWindow.cs +++ b/GUI/PropertyWindow.cs @@ -314,10 +314,6 @@ namespace MCGalaxy.Gui { chkLogBeat.Checked = ( value.ToLower() == "true" ); break; - case "force-cuboid": - chkForceCuboid.Checked = ( value.ToLower() == "true" ); - break; - case "profanity-filter": chkProfanityFilter.Checked = ( value.ToLower() == "true" ); break; @@ -594,7 +590,6 @@ namespace MCGalaxy.Gui { Server.afkkickperm = Group.Find(cmbAFKKickPerm.SelectedItem.ToString()).Permission; Server.logbeat = chkLogBeat.Checked; - Server.forceCuboid = chkForceCuboid.Checked; Server.profanityFilter = chkProfanityFilter.Checked; Server.repeatMessage = chkRepeatMessages.Checked; Server.ZallState = chat_txtConsole.Text;