Finish up new players tab.

This commit is contained in:
UnknownShadow200 2016-08-18 23:23:49 +10:00
parent 757879574d
commit ec80490619
4 changed files with 610 additions and 628 deletions

View File

@ -129,8 +129,11 @@ namespace MCGalaxy.Gui {
} }
public static List<string> GetColorsList() { public static List<string> GetColorsList() {
List<string> colors = new List<string>() { "black", "navy", "green", "teal", "maroon", List<string> colors = new List<string>() {
"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++) { for (int i = 0; i < 256; i++) {
if (Colors.ExtColors[i].Undefined) continue; if (Colors.ExtColors[i].Undefined) continue;
colors.Add(Colors.ExtColors[i].Name); colors.Add(Colors.ExtColors[i].Name);

231
GUI/Window.Designer.cs generated
View File

@ -154,8 +154,8 @@ namespace MCGalaxy.Gui
this.lblMap_Name = new System.Windows.Forms.Label(); this.lblMap_Name = new System.Windows.Forms.Label();
this.txtMap_Name = new System.Windows.Forms.TextBox(); this.txtMap_Name = new System.Windows.Forms.TextBox();
this.tp_Players = new System.Windows.Forms.TabPage(); this.tp_Players = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.pl_gbProps = new System.Windows.Forms.GroupBox();
this.pgPlayers = new System.Windows.Forms.PropertyGrid(); this.pl_pgProps = new System.Windows.Forms.PropertyGrid();
this.pl_gbOther = new System.Windows.Forms.GroupBox(); this.pl_gbOther = new System.Windows.Forms.GroupBox();
this.pl_txtImpersonate = new System.Windows.Forms.TextBox(); this.pl_txtImpersonate = new System.Windows.Forms.TextBox();
this.pl_txtUndo = new System.Windows.Forms.TextBox(); this.pl_txtUndo = new System.Windows.Forms.TextBox();
@ -172,8 +172,8 @@ namespace MCGalaxy.Gui
this.pl_btnSlap = new System.Windows.Forms.Button(); this.pl_btnSlap = new System.Windows.Forms.Button();
this.pl_btnBan = new System.Windows.Forms.Button(); this.pl_btnBan = new System.Windows.Forms.Button();
this.pl_btnKill = new System.Windows.Forms.Button(); this.pl_btnKill = new System.Windows.Forms.Button();
this.PlayersTextBox = new MCGalaxy.Gui.AutoScrollTextBox(); this.pl_statusBox = new MCGalaxy.Gui.AutoScrollTextBox();
this.PlyersListBox = new System.Windows.Forms.ListBox(); this.pl_listBox = new System.Windows.Forms.ListBox();
this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.mapsStrip.SuspendLayout(); this.mapsStrip.SuspendLayout();
this.playerStrip.SuspendLayout(); this.playerStrip.SuspendLayout();
@ -195,7 +195,7 @@ namespace MCGalaxy.Gui
this.gbMap_Unld.SuspendLayout(); this.gbMap_Unld.SuspendLayout();
this.gbMap_New.SuspendLayout(); this.gbMap_New.SuspendLayout();
this.tp_Players.SuspendLayout(); this.tp_Players.SuspendLayout();
this.groupBox1.SuspendLayout(); this.pl_gbProps.SuspendLayout();
this.pl_gbOther.SuspendLayout(); this.pl_gbOther.SuspendLayout();
this.pl_gbActions.SuspendLayout(); this.pl_gbActions.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -209,7 +209,7 @@ namespace MCGalaxy.Gui
this.toolStripSeparator1, this.toolStripSeparator1,
this.infoToolStripMenuItem}); this.infoToolStripMenuItem});
this.mapsStrip.Name = "mapsStrip"; this.mapsStrip.Name = "mapsStrip";
this.mapsStrip.Size = new System.Drawing.Size(138, 98); this.mapsStrip.Size = new System.Drawing.Size(144, 98);
// //
// physicsToolStripMenuItem // physicsToolStripMenuItem
// //
@ -221,48 +221,48 @@ namespace MCGalaxy.Gui
this.toolStripMenuItem6, this.toolStripMenuItem6,
this.toolStripMenuItem7}); this.toolStripMenuItem7});
this.physicsToolStripMenuItem.Name = "physicsToolStripMenuItem"; this.physicsToolStripMenuItem.Name = "physicsToolStripMenuItem";
this.physicsToolStripMenuItem.Size = new System.Drawing.Size(137, 22); this.physicsToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.physicsToolStripMenuItem.Text = "Physics Level"; this.physicsToolStripMenuItem.Text = "Physics Level";
// //
// toolStripMenuItem2 // toolStripMenuItem2
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem2.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem2.Text = "Off"; this.toolStripMenuItem2.Text = "Off";
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click_1); this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click_1);
// //
// toolStripMenuItem3 // toolStripMenuItem3
// //
this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem3.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem3.Text = "Normal"; this.toolStripMenuItem3.Text = "Normal";
this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click_1); this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click_1);
// //
// toolStripMenuItem4 // toolStripMenuItem4
// //
this.toolStripMenuItem4.Name = "toolStripMenuItem4"; this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem4.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem4.Text = "Advanced"; this.toolStripMenuItem4.Text = "Advanced";
this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click_1); this.toolStripMenuItem4.Click += new System.EventHandler(this.toolStripMenuItem4_Click_1);
// //
// toolStripMenuItem5 // toolStripMenuItem5
// //
this.toolStripMenuItem5.Name = "toolStripMenuItem5"; this.toolStripMenuItem5.Name = "toolStripMenuItem5";
this.toolStripMenuItem5.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem5.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem5.Text = "Hardcore"; this.toolStripMenuItem5.Text = "Hardcore";
this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click_1); this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click_1);
// //
// toolStripMenuItem6 // toolStripMenuItem6
// //
this.toolStripMenuItem6.Name = "toolStripMenuItem6"; this.toolStripMenuItem6.Name = "toolStripMenuItem6";
this.toolStripMenuItem6.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem6.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem6.Text = "Instant"; this.toolStripMenuItem6.Text = "Instant";
this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItem6_Click_1); this.toolStripMenuItem6.Click += new System.EventHandler(this.toolStripMenuItem6_Click_1);
// //
// toolStripMenuItem7 // toolStripMenuItem7
// //
this.toolStripMenuItem7.Name = "toolStripMenuItem7"; this.toolStripMenuItem7.Name = "toolStripMenuItem7";
this.toolStripMenuItem7.Size = new System.Drawing.Size(128, 22); this.toolStripMenuItem7.Size = new System.Drawing.Size(135, 22);
this.toolStripMenuItem7.Text = "Doors-Only"; this.toolStripMenuItem7.Text = "Doors-Only";
this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click_1); this.toolStripMenuItem7.Click += new System.EventHandler(this.toolStripMenuItem7_Click_1);
// //
@ -273,7 +273,7 @@ namespace MCGalaxy.Gui
this.loadingToolStripMenuItem, this.loadingToolStripMenuItem,
this.miscToolStripMenuItem}); this.miscToolStripMenuItem});
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(137, 22); this.settingsToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.settingsToolStripMenuItem.Text = "Settings"; this.settingsToolStripMenuItem.Text = "Settings";
// //
// physicsToolStripMenuItem1 // physicsToolStripMenuItem1
@ -287,55 +287,55 @@ namespace MCGalaxy.Gui
this.leafDecayToolStripMenuItem, this.leafDecayToolStripMenuItem,
this.autpPhysicsToolStripMenuItem}); this.autpPhysicsToolStripMenuItem});
this.physicsToolStripMenuItem1.Name = "physicsToolStripMenuItem1"; this.physicsToolStripMenuItem1.Name = "physicsToolStripMenuItem1";
this.physicsToolStripMenuItem1.Size = new System.Drawing.Size(111, 22); this.physicsToolStripMenuItem1.Size = new System.Drawing.Size(117, 22);
this.physicsToolStripMenuItem1.Text = "Physics"; this.physicsToolStripMenuItem1.Text = "Physics";
// //
// finiteModeToolStripMenuItem // finiteModeToolStripMenuItem
// //
this.finiteModeToolStripMenuItem.Name = "finiteModeToolStripMenuItem"; this.finiteModeToolStripMenuItem.Name = "finiteModeToolStripMenuItem";
this.finiteModeToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.finiteModeToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.finiteModeToolStripMenuItem.Text = "Finite Mode"; this.finiteModeToolStripMenuItem.Text = "Finite Mode";
this.finiteModeToolStripMenuItem.Click += new System.EventHandler(this.finiteModeToolStripMenuItem_Click); this.finiteModeToolStripMenuItem.Click += new System.EventHandler(this.finiteModeToolStripMenuItem_Click);
// //
// randomFlowToolStripMenuItem // randomFlowToolStripMenuItem
// //
this.randomFlowToolStripMenuItem.Name = "randomFlowToolStripMenuItem"; this.randomFlowToolStripMenuItem.Name = "randomFlowToolStripMenuItem";
this.randomFlowToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.randomFlowToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.randomFlowToolStripMenuItem.Text = "Random Flow"; this.randomFlowToolStripMenuItem.Text = "Random Flow";
this.randomFlowToolStripMenuItem.Click += new System.EventHandler(this.randomFlowToolStripMenuItem_Click); this.randomFlowToolStripMenuItem.Click += new System.EventHandler(this.randomFlowToolStripMenuItem_Click);
// //
// edgeWaterToolStripMenuItem // edgeWaterToolStripMenuItem
// //
this.edgeWaterToolStripMenuItem.Name = "edgeWaterToolStripMenuItem"; this.edgeWaterToolStripMenuItem.Name = "edgeWaterToolStripMenuItem";
this.edgeWaterToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.edgeWaterToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.edgeWaterToolStripMenuItem.Text = "Edge Water"; this.edgeWaterToolStripMenuItem.Text = "Edge Water";
this.edgeWaterToolStripMenuItem.Click += new System.EventHandler(this.edgeWaterToolStripMenuItem_Click); this.edgeWaterToolStripMenuItem.Click += new System.EventHandler(this.edgeWaterToolStripMenuItem_Click);
// //
// growingGrassToolStripMenuItem // growingGrassToolStripMenuItem
// //
this.growingGrassToolStripMenuItem.Name = "growingGrassToolStripMenuItem"; this.growingGrassToolStripMenuItem.Name = "growingGrassToolStripMenuItem";
this.growingGrassToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.growingGrassToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.growingGrassToolStripMenuItem.Text = "Grass Growing"; this.growingGrassToolStripMenuItem.Text = "Grass Growing";
this.growingGrassToolStripMenuItem.Click += new System.EventHandler(this.growingGrassToolStripMenuItem_Click); this.growingGrassToolStripMenuItem.Click += new System.EventHandler(this.growingGrassToolStripMenuItem_Click);
// //
// treeGrowingToolStripMenuItem // treeGrowingToolStripMenuItem
// //
this.treeGrowingToolStripMenuItem.Name = "treeGrowingToolStripMenuItem"; this.treeGrowingToolStripMenuItem.Name = "treeGrowingToolStripMenuItem";
this.treeGrowingToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.treeGrowingToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.treeGrowingToolStripMenuItem.Text = "Tree Growing"; this.treeGrowingToolStripMenuItem.Text = "Tree Growing";
this.treeGrowingToolStripMenuItem.Click += new System.EventHandler(this.treeGrowingToolStripMenuItem_Click); this.treeGrowingToolStripMenuItem.Click += new System.EventHandler(this.treeGrowingToolStripMenuItem_Click);
// //
// leafDecayToolStripMenuItem // leafDecayToolStripMenuItem
// //
this.leafDecayToolStripMenuItem.Name = "leafDecayToolStripMenuItem"; this.leafDecayToolStripMenuItem.Name = "leafDecayToolStripMenuItem";
this.leafDecayToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.leafDecayToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.leafDecayToolStripMenuItem.Text = "Leaf Decay"; this.leafDecayToolStripMenuItem.Text = "Leaf Decay";
this.leafDecayToolStripMenuItem.Click += new System.EventHandler(this.leafDecayToolStripMenuItem_Click); this.leafDecayToolStripMenuItem.Click += new System.EventHandler(this.leafDecayToolStripMenuItem_Click);
// //
// autpPhysicsToolStripMenuItem // autpPhysicsToolStripMenuItem
// //
this.autpPhysicsToolStripMenuItem.Name = "autpPhysicsToolStripMenuItem"; this.autpPhysicsToolStripMenuItem.Name = "autpPhysicsToolStripMenuItem";
this.autpPhysicsToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.autpPhysicsToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.autpPhysicsToolStripMenuItem.Text = "Auto Physics"; this.autpPhysicsToolStripMenuItem.Text = "Auto Physics";
this.autpPhysicsToolStripMenuItem.Click += new System.EventHandler(this.autpPhysicsToolStripMenuItem_Click); this.autpPhysicsToolStripMenuItem.Click += new System.EventHandler(this.autpPhysicsToolStripMenuItem_Click);
// //
@ -345,20 +345,20 @@ namespace MCGalaxy.Gui
this.unloadToolStripMenuItem1, this.unloadToolStripMenuItem1,
this.loadOngotoToolStripMenuItem}); this.loadOngotoToolStripMenuItem});
this.loadingToolStripMenuItem.Name = "loadingToolStripMenuItem"; this.loadingToolStripMenuItem.Name = "loadingToolStripMenuItem";
this.loadingToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.loadingToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.loadingToolStripMenuItem.Text = "Loading"; this.loadingToolStripMenuItem.Text = "Loading";
// //
// unloadToolStripMenuItem1 // unloadToolStripMenuItem1
// //
this.unloadToolStripMenuItem1.Name = "unloadToolStripMenuItem1"; this.unloadToolStripMenuItem1.Name = "unloadToolStripMenuItem1";
this.unloadToolStripMenuItem1.Size = new System.Drawing.Size(141, 22); this.unloadToolStripMenuItem1.Size = new System.Drawing.Size(150, 22);
this.unloadToolStripMenuItem1.Text = "Auto Unload"; this.unloadToolStripMenuItem1.Text = "Auto Unload";
this.unloadToolStripMenuItem1.Click += new System.EventHandler(this.unloadToolStripMenuItem1_Click); this.unloadToolStripMenuItem1.Click += new System.EventHandler(this.unloadToolStripMenuItem1_Click);
// //
// loadOngotoToolStripMenuItem // loadOngotoToolStripMenuItem
// //
this.loadOngotoToolStripMenuItem.Name = "loadOngotoToolStripMenuItem"; this.loadOngotoToolStripMenuItem.Name = "loadOngotoToolStripMenuItem";
this.loadOngotoToolStripMenuItem.Size = new System.Drawing.Size(141, 22); this.loadOngotoToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
this.loadOngotoToolStripMenuItem.Text = "Load on /goto"; this.loadOngotoToolStripMenuItem.Text = "Load on /goto";
this.loadOngotoToolStripMenuItem.Click += new System.EventHandler(this.loadOngotoToolStripMenuItem_Click); this.loadOngotoToolStripMenuItem.Click += new System.EventHandler(this.loadOngotoToolStripMenuItem_Click);
// //
@ -372,48 +372,48 @@ namespace MCGalaxy.Gui
this.rPChatToolStripMenuItem, this.rPChatToolStripMenuItem,
this.gunsToolStripMenuItem}); this.gunsToolStripMenuItem});
this.miscToolStripMenuItem.Name = "miscToolStripMenuItem"; this.miscToolStripMenuItem.Name = "miscToolStripMenuItem";
this.miscToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.miscToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.miscToolStripMenuItem.Text = "Misc"; this.miscToolStripMenuItem.Text = "Misc";
// //
// animalAIToolStripMenuItem // animalAIToolStripMenuItem
// //
this.animalAIToolStripMenuItem.Name = "animalAIToolStripMenuItem"; this.animalAIToolStripMenuItem.Name = "animalAIToolStripMenuItem";
this.animalAIToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.animalAIToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.animalAIToolStripMenuItem.Text = "Animal AI"; this.animalAIToolStripMenuItem.Text = "Animal AI";
this.animalAIToolStripMenuItem.Click += new System.EventHandler(this.animalAIToolStripMenuItem_Click); this.animalAIToolStripMenuItem.Click += new System.EventHandler(this.animalAIToolStripMenuItem_Click);
// //
// survivalDeathToolStripMenuItem // survivalDeathToolStripMenuItem
// //
this.survivalDeathToolStripMenuItem.Name = "survivalDeathToolStripMenuItem"; this.survivalDeathToolStripMenuItem.Name = "survivalDeathToolStripMenuItem";
this.survivalDeathToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.survivalDeathToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.survivalDeathToolStripMenuItem.Text = "Survival Death"; this.survivalDeathToolStripMenuItem.Text = "Survival Death";
this.survivalDeathToolStripMenuItem.Click += new System.EventHandler(this.survivalDeathToolStripMenuItem_Click); this.survivalDeathToolStripMenuItem.Click += new System.EventHandler(this.survivalDeathToolStripMenuItem_Click);
// //
// killerBlocksToolStripMenuItem // killerBlocksToolStripMenuItem
// //
this.killerBlocksToolStripMenuItem.Name = "killerBlocksToolStripMenuItem"; this.killerBlocksToolStripMenuItem.Name = "killerBlocksToolStripMenuItem";
this.killerBlocksToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.killerBlocksToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.killerBlocksToolStripMenuItem.Text = "Killer Blocks"; this.killerBlocksToolStripMenuItem.Text = "Killer Blocks";
this.killerBlocksToolStripMenuItem.Click += new System.EventHandler(this.killerBlocksToolStripMenuItem_Click); this.killerBlocksToolStripMenuItem.Click += new System.EventHandler(this.killerBlocksToolStripMenuItem_Click);
// //
// instantBuildingToolStripMenuItem // instantBuildingToolStripMenuItem
// //
this.instantBuildingToolStripMenuItem.Name = "instantBuildingToolStripMenuItem"; this.instantBuildingToolStripMenuItem.Name = "instantBuildingToolStripMenuItem";
this.instantBuildingToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.instantBuildingToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.instantBuildingToolStripMenuItem.Text = "Instant Building"; this.instantBuildingToolStripMenuItem.Text = "Instant Building";
this.instantBuildingToolStripMenuItem.Click += new System.EventHandler(this.instantBuildingToolStripMenuItem_Click); this.instantBuildingToolStripMenuItem.Click += new System.EventHandler(this.instantBuildingToolStripMenuItem_Click);
// //
// rPChatToolStripMenuItem // rPChatToolStripMenuItem
// //
this.rPChatToolStripMenuItem.Name = "rPChatToolStripMenuItem"; this.rPChatToolStripMenuItem.Name = "rPChatToolStripMenuItem";
this.rPChatToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.rPChatToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.rPChatToolStripMenuItem.Text = "RP Chat"; this.rPChatToolStripMenuItem.Text = "RP Chat";
this.rPChatToolStripMenuItem.Click += new System.EventHandler(this.rPChatToolStripMenuItem_Click); this.rPChatToolStripMenuItem.Click += new System.EventHandler(this.rPChatToolStripMenuItem_Click);
// //
// gunsToolStripMenuItem // gunsToolStripMenuItem
// //
this.gunsToolStripMenuItem.Name = "gunsToolStripMenuItem"; this.gunsToolStripMenuItem.Name = "gunsToolStripMenuItem";
this.gunsToolStripMenuItem.Size = new System.Drawing.Size(148, 22); this.gunsToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.gunsToolStripMenuItem.Text = "Guns"; this.gunsToolStripMenuItem.Text = "Guns";
this.gunsToolStripMenuItem.Click += new System.EventHandler(this.gunsToolStripMenuItem_Click); this.gunsToolStripMenuItem.Click += new System.EventHandler(this.gunsToolStripMenuItem_Click);
// //
@ -425,46 +425,46 @@ namespace MCGalaxy.Gui
this.unloadToolStripMenuItem, this.unloadToolStripMenuItem,
this.moveAllToolStripMenuItem}); this.moveAllToolStripMenuItem});
this.actiondToolStripMenuItem.Name = "actiondToolStripMenuItem"; this.actiondToolStripMenuItem.Name = "actiondToolStripMenuItem";
this.actiondToolStripMenuItem.Size = new System.Drawing.Size(137, 22); this.actiondToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.actiondToolStripMenuItem.Text = "Actions"; this.actiondToolStripMenuItem.Text = "Actions";
// //
// saveToolStripMenuItem // saveToolStripMenuItem
// //
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.saveToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.saveToolStripMenuItem.Text = "Save"; this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click_1); this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click_1);
// //
// reloadToolStripMenuItem // reloadToolStripMenuItem
// //
this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem"; this.reloadToolStripMenuItem.Name = "reloadToolStripMenuItem";
this.reloadToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.reloadToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.reloadToolStripMenuItem.Text = "Reload"; this.reloadToolStripMenuItem.Text = "Reload";
this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click); this.reloadToolStripMenuItem.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click);
// //
// unloadToolStripMenuItem // unloadToolStripMenuItem
// //
this.unloadToolStripMenuItem.Name = "unloadToolStripMenuItem"; this.unloadToolStripMenuItem.Name = "unloadToolStripMenuItem";
this.unloadToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.unloadToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.unloadToolStripMenuItem.Text = "Unload"; this.unloadToolStripMenuItem.Text = "Unload";
this.unloadToolStripMenuItem.Click += new System.EventHandler(this.unloadToolStripMenuItem_Click_1); this.unloadToolStripMenuItem.Click += new System.EventHandler(this.unloadToolStripMenuItem_Click_1);
// //
// moveAllToolStripMenuItem // moveAllToolStripMenuItem
// //
this.moveAllToolStripMenuItem.Name = "moveAllToolStripMenuItem"; this.moveAllToolStripMenuItem.Name = "moveAllToolStripMenuItem";
this.moveAllToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.moveAllToolStripMenuItem.Size = new System.Drawing.Size(121, 22);
this.moveAllToolStripMenuItem.Text = "Move All"; this.moveAllToolStripMenuItem.Text = "Move All";
this.moveAllToolStripMenuItem.Click += new System.EventHandler(this.moveAllToolStripMenuItem_Click); this.moveAllToolStripMenuItem.Click += new System.EventHandler(this.moveAllToolStripMenuItem_Click);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(134, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(140, 6);
// //
// infoToolStripMenuItem // infoToolStripMenuItem
// //
this.infoToolStripMenuItem.Name = "infoToolStripMenuItem"; this.infoToolStripMenuItem.Name = "infoToolStripMenuItem";
this.infoToolStripMenuItem.Size = new System.Drawing.Size(137, 22); this.infoToolStripMenuItem.Size = new System.Drawing.Size(143, 22);
this.infoToolStripMenuItem.Text = "Info"; this.infoToolStripMenuItem.Text = "Info";
this.infoToolStripMenuItem.Click += new System.EventHandler(this.infoToolStripMenuItem_Click); this.infoToolStripMenuItem.Click += new System.EventHandler(this.infoToolStripMenuItem_Click);
// //
@ -479,54 +479,54 @@ namespace MCGalaxy.Gui
this.promoteToolStripMenuItem, this.promoteToolStripMenuItem,
this.demoteToolStripMenuItem}); this.demoteToolStripMenuItem});
this.playerStrip.Name = "playerStrip"; this.playerStrip.Name = "playerStrip";
this.playerStrip.Size = new System.Drawing.Size(115, 158); this.playerStrip.Size = new System.Drawing.Size(121, 158);
// //
// whoisToolStripMenuItem // whoisToolStripMenuItem
// //
this.whoisToolStripMenuItem.Name = "whoisToolStripMenuItem"; this.whoisToolStripMenuItem.Name = "whoisToolStripMenuItem";
this.whoisToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.whoisToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.whoisToolStripMenuItem.Text = "Whois"; this.whoisToolStripMenuItem.Text = "Whois";
this.whoisToolStripMenuItem.Click += new System.EventHandler(this.whoisToolStripMenuItem_Click); this.whoisToolStripMenuItem.Click += new System.EventHandler(this.whoisToolStripMenuItem_Click);
// //
// kickToolStripMenuItem // kickToolStripMenuItem
// //
this.kickToolStripMenuItem.Name = "kickToolStripMenuItem"; this.kickToolStripMenuItem.Name = "kickToolStripMenuItem";
this.kickToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.kickToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.kickToolStripMenuItem.Text = "Kick"; this.kickToolStripMenuItem.Text = "Kick";
this.kickToolStripMenuItem.Click += new System.EventHandler(this.kickToolStripMenuItem_Click); this.kickToolStripMenuItem.Click += new System.EventHandler(this.kickToolStripMenuItem_Click);
// //
// banToolStripMenuItem // banToolStripMenuItem
// //
this.banToolStripMenuItem.Name = "banToolStripMenuItem"; this.banToolStripMenuItem.Name = "banToolStripMenuItem";
this.banToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.banToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.banToolStripMenuItem.Text = "Ban"; this.banToolStripMenuItem.Text = "Ban";
this.banToolStripMenuItem.Click += new System.EventHandler(this.banToolStripMenuItem_Click); this.banToolStripMenuItem.Click += new System.EventHandler(this.banToolStripMenuItem_Click);
// //
// voiceToolStripMenuItem // voiceToolStripMenuItem
// //
this.voiceToolStripMenuItem.Name = "voiceToolStripMenuItem"; this.voiceToolStripMenuItem.Name = "voiceToolStripMenuItem";
this.voiceToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.voiceToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.voiceToolStripMenuItem.Text = "Voice"; this.voiceToolStripMenuItem.Text = "Voice";
this.voiceToolStripMenuItem.Click += new System.EventHandler(this.voiceToolStripMenuItem_Click); this.voiceToolStripMenuItem.Click += new System.EventHandler(this.voiceToolStripMenuItem_Click);
// //
// clonesToolStripMenuItem // clonesToolStripMenuItem
// //
this.clonesToolStripMenuItem.Name = "clonesToolStripMenuItem"; this.clonesToolStripMenuItem.Name = "clonesToolStripMenuItem";
this.clonesToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.clonesToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.clonesToolStripMenuItem.Text = "Clones"; this.clonesToolStripMenuItem.Text = "Clones";
this.clonesToolStripMenuItem.Click += new System.EventHandler(this.clonesToolStripMenuItem_Click); this.clonesToolStripMenuItem.Click += new System.EventHandler(this.clonesToolStripMenuItem_Click);
// //
// promoteToolStripMenuItem // promoteToolStripMenuItem
// //
this.promoteToolStripMenuItem.Name = "promoteToolStripMenuItem"; this.promoteToolStripMenuItem.Name = "promoteToolStripMenuItem";
this.promoteToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.promoteToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.promoteToolStripMenuItem.Text = "Promote"; this.promoteToolStripMenuItem.Text = "Promote";
this.promoteToolStripMenuItem.Click += new System.EventHandler(this.promoteToolStripMenuItem_Click); this.promoteToolStripMenuItem.Click += new System.EventHandler(this.promoteToolStripMenuItem_Click);
// //
// demoteToolStripMenuItem // demoteToolStripMenuItem
// //
this.demoteToolStripMenuItem.Name = "demoteToolStripMenuItem"; this.demoteToolStripMenuItem.Name = "demoteToolStripMenuItem";
this.demoteToolStripMenuItem.Size = new System.Drawing.Size(114, 22); this.demoteToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
this.demoteToolStripMenuItem.Text = "Demote"; this.demoteToolStripMenuItem.Text = "Demote";
this.demoteToolStripMenuItem.Click += new System.EventHandler(this.demoteToolStripMenuItem_Click); this.demoteToolStripMenuItem.Click += new System.EventHandler(this.demoteToolStripMenuItem_Click);
// //
@ -537,26 +537,26 @@ namespace MCGalaxy.Gui
this.shutdownServer, this.shutdownServer,
this.restartServerToolStripMenuItem}); this.restartServerToolStripMenuItem});
this.iconContext.Name = "iconContext"; this.iconContext.Name = "iconContext";
this.iconContext.Size = new System.Drawing.Size(158, 70); this.iconContext.Size = new System.Drawing.Size(164, 70);
// //
// openConsole // openConsole
// //
this.openConsole.Name = "openConsole"; this.openConsole.Name = "openConsole";
this.openConsole.Size = new System.Drawing.Size(157, 22); this.openConsole.Size = new System.Drawing.Size(163, 22);
this.openConsole.Text = "Open Console"; this.openConsole.Text = "Open Console";
this.openConsole.Click += new System.EventHandler(this.openConsole_Click); this.openConsole.Click += new System.EventHandler(this.openConsole_Click);
// //
// shutdownServer // shutdownServer
// //
this.shutdownServer.Name = "shutdownServer"; this.shutdownServer.Name = "shutdownServer";
this.shutdownServer.Size = new System.Drawing.Size(157, 22); this.shutdownServer.Size = new System.Drawing.Size(163, 22);
this.shutdownServer.Text = "Shutdown Server"; this.shutdownServer.Text = "Shutdown Server";
this.shutdownServer.Click += new System.EventHandler(this.shutdownServer_Click); this.shutdownServer.Click += new System.EventHandler(this.shutdownServer_Click);
// //
// restartServerToolStripMenuItem // restartServerToolStripMenuItem
// //
this.restartServerToolStripMenuItem.Name = "restartServerToolStripMenuItem"; this.restartServerToolStripMenuItem.Name = "restartServerToolStripMenuItem";
this.restartServerToolStripMenuItem.Size = new System.Drawing.Size(157, 22); this.restartServerToolStripMenuItem.Size = new System.Drawing.Size(163, 22);
this.restartServerToolStripMenuItem.Text = "Restart Server"; this.restartServerToolStripMenuItem.Text = "Restart Server";
this.restartServerToolStripMenuItem.Click += new System.EventHandler(this.restartServerToolStripMenuItem_Click); this.restartServerToolStripMenuItem.Click += new System.EventHandler(this.restartServerToolStripMenuItem_Click);
// //
@ -670,7 +670,7 @@ namespace MCGalaxy.Gui
this.logs_dateGeneral.Size = new System.Drawing.Size(200, 21); this.logs_dateGeneral.Size = new System.Drawing.Size(200, 21);
this.logs_dateGeneral.TabIndex = 5; this.logs_dateGeneral.TabIndex = 5;
this.logs_dateGeneral.Value = new System.DateTime(2011, 7, 20, 18, 31, 50, 0); this.logs_dateGeneral.Value = new System.DateTime(2011, 7, 20, 18, 31, 50, 0);
this.logs_dateGeneral.ValueChanged += new System.EventHandler(this.DatePicker1_ValueChanged); this.logs_dateGeneral.ValueChanged += new System.EventHandler(this.logs_dateGeneralValueChanged);
// //
// logs_txtGeneral // logs_txtGeneral
// //
@ -824,12 +824,12 @@ namespace MCGalaxy.Gui
this.toolStripSeparator3, this.toolStripSeparator3,
this.clearToolStripMenuItem}); this.clearToolStripMenuItem});
this.txtLogMenuStrip.Name = "txtLogMenuStrip"; this.txtLogMenuStrip.Name = "txtLogMenuStrip";
this.txtLogMenuStrip.Size = new System.Drawing.Size(144, 170); this.txtLogMenuStrip.Size = new System.Drawing.Size(150, 170);
// //
// nightModeToolStripMenuItem // nightModeToolStripMenuItem
// //
this.nightModeToolStripMenuItem.Name = "nightModeToolStripMenuItem"; this.nightModeToolStripMenuItem.Name = "nightModeToolStripMenuItem";
this.nightModeToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.nightModeToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.nightModeToolStripMenuItem.Text = "Night Theme"; this.nightModeToolStripMenuItem.Text = "Night Theme";
this.nightModeToolStripMenuItem.Click += new System.EventHandler(this.nightModeToolStripMenuItem_Click_1); this.nightModeToolStripMenuItem.Click += new System.EventHandler(this.nightModeToolStripMenuItem_Click_1);
// //
@ -838,7 +838,7 @@ namespace MCGalaxy.Gui
this.colorsToolStripMenuItem.Checked = true; this.colorsToolStripMenuItem.Checked = true;
this.colorsToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.colorsToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.colorsToolStripMenuItem.Name = "colorsToolStripMenuItem"; this.colorsToolStripMenuItem.Name = "colorsToolStripMenuItem";
this.colorsToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.colorsToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.colorsToolStripMenuItem.Text = "Colors"; this.colorsToolStripMenuItem.Text = "Colors";
this.colorsToolStripMenuItem.Click += new System.EventHandler(this.colorsToolStripMenuItem_Click_1); this.colorsToolStripMenuItem.Click += new System.EventHandler(this.colorsToolStripMenuItem_Click_1);
// //
@ -847,7 +847,7 @@ namespace MCGalaxy.Gui
this.dateStampToolStripMenuItem.Checked = true; this.dateStampToolStripMenuItem.Checked = true;
this.dateStampToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.dateStampToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.dateStampToolStripMenuItem.Name = "dateStampToolStripMenuItem"; this.dateStampToolStripMenuItem.Name = "dateStampToolStripMenuItem";
this.dateStampToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.dateStampToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.dateStampToolStripMenuItem.Text = "Date Stamp"; this.dateStampToolStripMenuItem.Text = "Date Stamp";
this.dateStampToolStripMenuItem.Click += new System.EventHandler(this.dateStampToolStripMenuItem_Click); this.dateStampToolStripMenuItem.Click += new System.EventHandler(this.dateStampToolStripMenuItem_Click);
// //
@ -856,38 +856,38 @@ namespace MCGalaxy.Gui
this.autoScrollToolStripMenuItem.Checked = true; this.autoScrollToolStripMenuItem.Checked = true;
this.autoScrollToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.autoScrollToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.autoScrollToolStripMenuItem.Name = "autoScrollToolStripMenuItem"; this.autoScrollToolStripMenuItem.Name = "autoScrollToolStripMenuItem";
this.autoScrollToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.autoScrollToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.autoScrollToolStripMenuItem.Text = "Auto Scroll"; this.autoScrollToolStripMenuItem.Text = "Auto Scroll";
this.autoScrollToolStripMenuItem.Click += new System.EventHandler(this.autoScrollToolStripMenuItem_Click); this.autoScrollToolStripMenuItem.Click += new System.EventHandler(this.autoScrollToolStripMenuItem_Click);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(140, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(146, 6);
// //
// copySelectedToolStripMenuItem // copySelectedToolStripMenuItem
// //
this.copySelectedToolStripMenuItem.Name = "copySelectedToolStripMenuItem"; this.copySelectedToolStripMenuItem.Name = "copySelectedToolStripMenuItem";
this.copySelectedToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.copySelectedToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.copySelectedToolStripMenuItem.Text = "Copy Selected"; this.copySelectedToolStripMenuItem.Text = "Copy Selected";
this.copySelectedToolStripMenuItem.Click += new System.EventHandler(this.copySelectedToolStripMenuItem_Click); this.copySelectedToolStripMenuItem.Click += new System.EventHandler(this.copySelectedToolStripMenuItem_Click);
// //
// copyAllToolStripMenuItem // copyAllToolStripMenuItem
// //
this.copyAllToolStripMenuItem.Name = "copyAllToolStripMenuItem"; this.copyAllToolStripMenuItem.Name = "copyAllToolStripMenuItem";
this.copyAllToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.copyAllToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.copyAllToolStripMenuItem.Text = "Copy All"; this.copyAllToolStripMenuItem.Text = "Copy All";
this.copyAllToolStripMenuItem.Click += new System.EventHandler(this.copyAllToolStripMenuItem_Click); this.copyAllToolStripMenuItem.Click += new System.EventHandler(this.copyAllToolStripMenuItem_Click);
// //
// toolStripSeparator3 // toolStripSeparator3
// //
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(140, 6); this.toolStripSeparator3.Size = new System.Drawing.Size(146, 6);
// //
// clearToolStripMenuItem // clearToolStripMenuItem
// //
this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
this.clearToolStripMenuItem.Size = new System.Drawing.Size(143, 22); this.clearToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
this.clearToolStripMenuItem.Text = "Clear"; this.clearToolStripMenuItem.Text = "Clear";
this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click); this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
// //
@ -1197,11 +1197,11 @@ namespace MCGalaxy.Gui
// //
// tp_Players // tp_Players
// //
this.tp_Players.Controls.Add(this.groupBox1); this.tp_Players.Controls.Add(this.pl_gbProps);
this.tp_Players.Controls.Add(this.pl_gbOther); this.tp_Players.Controls.Add(this.pl_gbOther);
this.tp_Players.Controls.Add(this.pl_gbActions); this.tp_Players.Controls.Add(this.pl_gbActions);
this.tp_Players.Controls.Add(this.PlayersTextBox); this.tp_Players.Controls.Add(this.pl_statusBox);
this.tp_Players.Controls.Add(this.PlyersListBox); this.tp_Players.Controls.Add(this.pl_listBox);
this.tp_Players.Location = new System.Drawing.Point(4, 22); this.tp_Players.Location = new System.Drawing.Point(4, 22);
this.tp_Players.Name = "tp_Players"; this.tp_Players.Name = "tp_Players";
this.tp_Players.Padding = new System.Windows.Forms.Padding(3); this.tp_Players.Padding = new System.Windows.Forms.Padding(3);
@ -1209,43 +1209,41 @@ namespace MCGalaxy.Gui
this.tp_Players.TabIndex = 7; this.tp_Players.TabIndex = 7;
this.tp_Players.Text = "Players"; this.tp_Players.Text = "Players";
// //
// groupBox1 // pl_gbProps
// //
this.groupBox1.Controls.Add(this.pgPlayers); this.pl_gbProps.Controls.Add(this.pl_pgProps);
this.groupBox1.Location = new System.Drawing.Point(147, 9); this.pl_gbProps.Location = new System.Drawing.Point(147, 9);
this.groupBox1.Name = "groupBox1"; this.pl_gbProps.Name = "pl_gbProps";
this.groupBox1.Size = new System.Drawing.Size(363, 349); this.pl_gbProps.Size = new System.Drawing.Size(363, 380);
this.groupBox1.TabIndex = 67; this.pl_gbProps.TabIndex = 67;
this.groupBox1.TabStop = false; this.pl_gbProps.TabStop = false;
this.groupBox1.Text = "Properties for (none selected)"; this.pl_gbProps.Text = "Properties for (none selected)";
// //
// pgPlayers // pl_pgProps
// //
this.pgPlayers.HelpVisible = false; this.pl_pgProps.HelpVisible = false;
this.pgPlayers.Location = new System.Drawing.Point(6, 18); this.pl_pgProps.Location = new System.Drawing.Point(6, 18);
this.pgPlayers.Name = "pgPlayers"; this.pl_pgProps.Name = "pl_pgProps";
this.pgPlayers.Size = new System.Drawing.Size(351, 325); this.pl_pgProps.Size = new System.Drawing.Size(351, 356);
this.pgPlayers.TabIndex = 64; this.pl_pgProps.TabIndex = 64;
this.pgPlayers.ToolbarVisible = false; this.pl_pgProps.ToolbarVisible = false;
// //
// pl_gbOther // pl_gbOther
// //
this.pl_gbOther.Controls.Add(this.pl_txtImpersonate); this.pl_gbOther.Controls.Add(this.pl_txtImpersonate);
this.pl_gbOther.Controls.Add(this.pl_txtUndo);
this.pl_gbOther.Controls.Add(this.pl_btnImpersonate); this.pl_gbOther.Controls.Add(this.pl_btnImpersonate);
this.pl_gbOther.Controls.Add(this.pl_txtMessage); this.pl_gbOther.Controls.Add(this.pl_txtMessage);
this.pl_gbOther.Controls.Add(this.pl_btnMessage); this.pl_gbOther.Controls.Add(this.pl_btnMessage);
this.pl_gbOther.Controls.Add(this.pl_btnUndo); this.pl_gbOther.Location = new System.Drawing.Point(147, 395);
this.pl_gbOther.Location = new System.Drawing.Point(147, 364);
this.pl_gbOther.Name = "pl_gbOther"; this.pl_gbOther.Name = "pl_gbOther";
this.pl_gbOther.Size = new System.Drawing.Size(614, 113); this.pl_gbOther.Size = new System.Drawing.Size(614, 78);
this.pl_gbOther.TabIndex = 66; this.pl_gbOther.TabIndex = 66;
this.pl_gbOther.TabStop = false; this.pl_gbOther.TabStop = false;
this.pl_gbOther.Text = "Other"; this.pl_gbOther.Text = "Other";
// //
// pl_txtImpersonate // pl_txtImpersonate
// //
this.pl_txtImpersonate.Location = new System.Drawing.Point(115, 82); this.pl_txtImpersonate.Location = new System.Drawing.Point(115, 50);
this.pl_txtImpersonate.Name = "pl_txtImpersonate"; this.pl_txtImpersonate.Name = "pl_txtImpersonate";
this.pl_txtImpersonate.Size = new System.Drawing.Size(485, 21); this.pl_txtImpersonate.Size = new System.Drawing.Size(485, 21);
this.pl_txtImpersonate.TabIndex = 38; this.pl_txtImpersonate.TabIndex = 38;
@ -1253,15 +1251,15 @@ namespace MCGalaxy.Gui
// //
// pl_txtUndo // pl_txtUndo
// //
this.pl_txtUndo.Location = new System.Drawing.Point(115, 18); this.pl_txtUndo.Location = new System.Drawing.Point(122, 150);
this.pl_txtUndo.Name = "pl_txtUndo"; this.pl_txtUndo.Name = "pl_txtUndo";
this.pl_txtUndo.Size = new System.Drawing.Size(234, 21); this.pl_txtUndo.Size = new System.Drawing.Size(98, 21);
this.pl_txtUndo.TabIndex = 42; this.pl_txtUndo.TabIndex = 42;
this.pl_txtUndo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UndoTxt_KeyDown); this.pl_txtUndo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.UndoTxt_KeyDown);
// //
// pl_btnImpersonate // pl_btnImpersonate
// //
this.pl_btnImpersonate.Location = new System.Drawing.Point(6, 80); this.pl_btnImpersonate.Location = new System.Drawing.Point(6, 48);
this.pl_btnImpersonate.Name = "pl_btnImpersonate"; this.pl_btnImpersonate.Name = "pl_btnImpersonate";
this.pl_btnImpersonate.Size = new System.Drawing.Size(98, 23); this.pl_btnImpersonate.Size = new System.Drawing.Size(98, 23);
this.pl_btnImpersonate.TabIndex = 37; this.pl_btnImpersonate.TabIndex = 37;
@ -1271,7 +1269,7 @@ namespace MCGalaxy.Gui
// //
// pl_txtMessage // pl_txtMessage
// //
this.pl_txtMessage.Location = new System.Drawing.Point(115, 50); this.pl_txtMessage.Location = new System.Drawing.Point(115, 18);
this.pl_txtMessage.Name = "pl_txtMessage"; this.pl_txtMessage.Name = "pl_txtMessage";
this.pl_txtMessage.Size = new System.Drawing.Size(485, 21); this.pl_txtMessage.Size = new System.Drawing.Size(485, 21);
this.pl_txtMessage.TabIndex = 8; this.pl_txtMessage.TabIndex = 8;
@ -1279,7 +1277,7 @@ namespace MCGalaxy.Gui
// //
// pl_btnMessage // pl_btnMessage
// //
this.pl_btnMessage.Location = new System.Drawing.Point(6, 48); this.pl_btnMessage.Location = new System.Drawing.Point(6, 16);
this.pl_btnMessage.Name = "pl_btnMessage"; this.pl_btnMessage.Name = "pl_btnMessage";
this.pl_btnMessage.Size = new System.Drawing.Size(98, 23); this.pl_btnMessage.Size = new System.Drawing.Size(98, 23);
this.pl_btnMessage.TabIndex = 9; this.pl_btnMessage.TabIndex = 9;
@ -1289,7 +1287,7 @@ namespace MCGalaxy.Gui
// //
// pl_btnUndo // pl_btnUndo
// //
this.pl_btnUndo.Location = new System.Drawing.Point(6, 16); this.pl_btnUndo.Location = new System.Drawing.Point(8, 148);
this.pl_btnUndo.Name = "pl_btnUndo"; this.pl_btnUndo.Name = "pl_btnUndo";
this.pl_btnUndo.Size = new System.Drawing.Size(98, 23); this.pl_btnUndo.Size = new System.Drawing.Size(98, 23);
this.pl_btnUndo.TabIndex = 41; this.pl_btnUndo.TabIndex = 41;
@ -1300,16 +1298,18 @@ namespace MCGalaxy.Gui
// pl_gbActions // pl_gbActions
// //
this.pl_gbActions.Controls.Add(this.pl_btnSpawn); this.pl_gbActions.Controls.Add(this.pl_btnSpawn);
this.pl_gbActions.Controls.Add(this.pl_txtUndo);
this.pl_gbActions.Controls.Add(this.pl_btnWarn); this.pl_gbActions.Controls.Add(this.pl_btnWarn);
this.pl_gbActions.Controls.Add(this.pl_btnRules); this.pl_gbActions.Controls.Add(this.pl_btnRules);
this.pl_gbActions.Controls.Add(this.pl_btnKick); this.pl_gbActions.Controls.Add(this.pl_btnKick);
this.pl_gbActions.Controls.Add(this.pl_btnBanIP); this.pl_gbActions.Controls.Add(this.pl_btnBanIP);
this.pl_gbActions.Controls.Add(this.pl_btnUndo);
this.pl_gbActions.Controls.Add(this.pl_btnSlap); this.pl_gbActions.Controls.Add(this.pl_btnSlap);
this.pl_gbActions.Controls.Add(this.pl_btnBan); this.pl_gbActions.Controls.Add(this.pl_btnBan);
this.pl_gbActions.Controls.Add(this.pl_btnKill); this.pl_gbActions.Controls.Add(this.pl_btnKill);
this.pl_gbActions.Location = new System.Drawing.Point(529, 9); this.pl_gbActions.Location = new System.Drawing.Point(529, 9);
this.pl_gbActions.Name = "pl_gbActions"; this.pl_gbActions.Name = "pl_gbActions";
this.pl_gbActions.Size = new System.Drawing.Size(228, 136); this.pl_gbActions.Size = new System.Drawing.Size(228, 186);
this.pl_gbActions.TabIndex = 65; this.pl_gbActions.TabIndex = 65;
this.pl_gbActions.TabStop = false; this.pl_gbActions.TabStop = false;
this.pl_gbActions.Text = "Actions"; this.pl_gbActions.Text = "Actions";
@ -1394,27 +1394,27 @@ namespace MCGalaxy.Gui
this.pl_btnKill.UseVisualStyleBackColor = true; this.pl_btnKill.UseVisualStyleBackColor = true;
this.pl_btnKill.Click += new System.EventHandler(this.KillBt_Click); this.pl_btnKill.Click += new System.EventHandler(this.KillBt_Click);
// //
// PlayersTextBox // pl_statusBox
// //
this.PlayersTextBox.BackColor = System.Drawing.SystemColors.Window; this.pl_statusBox.BackColor = System.Drawing.SystemColors.Window;
this.PlayersTextBox.Cursor = System.Windows.Forms.Cursors.Default; this.pl_statusBox.Cursor = System.Windows.Forms.Cursors.Default;
this.PlayersTextBox.Font = new System.Drawing.Font("Calibri", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.pl_statusBox.Font = new System.Drawing.Font("Calibri", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.PlayersTextBox.Location = new System.Drawing.Point(529, 151); this.pl_statusBox.Location = new System.Drawing.Point(529, 201);
this.PlayersTextBox.Multiline = true; this.pl_statusBox.Multiline = true;
this.PlayersTextBox.Name = "PlayersTextBox"; this.pl_statusBox.Name = "pl_statusBox";
this.PlayersTextBox.ReadOnly = true; this.pl_statusBox.ReadOnly = true;
this.PlayersTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.pl_statusBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.PlayersTextBox.Size = new System.Drawing.Size(232, 207); this.pl_statusBox.Size = new System.Drawing.Size(232, 188);
this.PlayersTextBox.TabIndex = 63; this.pl_statusBox.TabIndex = 63;
// //
// PlyersListBox // pl_listBox
// //
this.PlyersListBox.FormattingEnabled = true; this.pl_listBox.FormattingEnabled = true;
this.PlyersListBox.Location = new System.Drawing.Point(8, 14); this.pl_listBox.Location = new System.Drawing.Point(8, 14);
this.PlyersListBox.Name = "PlyersListBox"; this.pl_listBox.Name = "pl_listBox";
this.PlyersListBox.Size = new System.Drawing.Size(123, 459); this.pl_listBox.Size = new System.Drawing.Size(123, 459);
this.PlyersListBox.TabIndex = 62; this.pl_listBox.TabIndex = 62;
this.PlyersListBox.Click += new System.EventHandler(this.PlyersListBox_Click); this.pl_listBox.Click += new System.EventHandler(this.PlyersListBox_Click);
// //
// toolTip // toolTip
// //
@ -1468,16 +1468,17 @@ namespace MCGalaxy.Gui
this.gbMap_New.PerformLayout(); this.gbMap_New.PerformLayout();
this.tp_Players.ResumeLayout(false); this.tp_Players.ResumeLayout(false);
this.tp_Players.PerformLayout(); this.tp_Players.PerformLayout();
this.groupBox1.ResumeLayout(false); this.pl_gbProps.ResumeLayout(false);
this.pl_gbOther.ResumeLayout(false); this.pl_gbOther.ResumeLayout(false);
this.pl_gbOther.PerformLayout(); this.pl_gbOther.PerformLayout();
this.pl_gbActions.ResumeLayout(false); this.pl_gbActions.ResumeLayout(false);
this.pl_gbActions.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox pl_gbProps;
private System.Windows.Forms.GroupBox pl_gbActions; private System.Windows.Forms.GroupBox pl_gbActions;
private System.Windows.Forms.GroupBox pl_gbOther; private System.Windows.Forms.GroupBox pl_gbOther;
private System.Windows.Forms.PropertyGrid pgPlayers; private System.Windows.Forms.PropertyGrid pl_pgProps;
private System.Windows.Forms.TextBox txtMap_Name; private System.Windows.Forms.TextBox txtMap_Name;
private System.Windows.Forms.Label lblMap_Name; private System.Windows.Forms.Label lblMap_Name;
private System.Windows.Forms.ComboBox cmbMap_X; private System.Windows.Forms.ComboBox cmbMap_X;
@ -1559,8 +1560,8 @@ namespace MCGalaxy.Gui
private Button pl_btnUndo; private Button pl_btnUndo;
private Button pl_btnSlap; private Button pl_btnSlap;
private Button pl_btnRules; private Button pl_btnRules;
private AutoScrollTextBox PlayersTextBox; private AutoScrollTextBox pl_statusBox;
private ListBox PlyersListBox; private ListBox pl_listBox;
private Button main_btnSaveAll; private Button main_btnSaveAll;
private Button main_btnUnloadEmpty; private Button main_btnUnloadEmpty;
private Button main_btnKillPhysics; private Button main_btnKillPhysics;

View File

@ -57,13 +57,7 @@ namespace MCGalaxy.Gui {
notifyIcon1.Icon = this.Icon; notifyIcon1.Icon = this.Icon;
notifyIcon1.Visible = true; notifyIcon1.Visible = true;
notifyIcon1.MouseClick += new System.Windows.Forms.MouseEventHandler(notifyIcon1_MouseClick); notifyIcon1.MouseClick += new System.Windows.Forms.MouseEventHandler(notifyIcon1_MouseClick);
LoadChangelog();
if (File.Exists("Changelog.txt")) {
logs_txtChangelog.Text = "Changelog for " + Server.Version + ":";
foreach (string line in File.ReadAllLines("Changelog.txt")) {
logs_txtChangelog.AppendText("\r\n " + line);
}
}
// Bind player list // Bind player list
main_Players.DataSource = pc; main_Players.DataSource = pc;
@ -87,8 +81,8 @@ namespace MCGalaxy.Gui {
Server s = new Server(); Server s = new Server();
s.OnLog += WriteLine; s.OnLog += WriteLine;
s.OnCommand += WriteCommand; s.OnCommand += WriteCommand;
s.OnError += newError; s.OnError += LogErrorMessage;
s.OnSystem += newSystem; s.OnSystem += LogSystemMessage;
s.HeartBeatFail += HeartBeatFail; s.HeartBeatFail += HeartBeatFail;
s.OnURLChange += UpdateUrl; s.OnURLChange += UpdateUrl;
@ -102,6 +96,7 @@ namespace MCGalaxy.Gui {
Player.PlayerConnect += Player_PlayerConnect; Player.PlayerConnect += Player_PlayerConnect;
Player.PlayerDisconnect += Player_PlayerDisconnect; Player.PlayerDisconnect += Player_PlayerDisconnect;
Player.OnSendMap += Player_OnSendMap;
Level.LevelLoaded += Level_LevelLoaded; Level.LevelLoaded += Level_LevelLoaded;
Level.LevelUnload += Level_LevelUnload; Level.LevelUnload += Level_LevelUnload;
@ -119,6 +114,10 @@ namespace MCGalaxy.Gui {
UpdatePlyersListBox(); UpdatePlyersListBox();
} }
void Player_OnSendMap(Player p, byte[] buffer) {
UpdatePlayerMapCombo();
}
void Level_LevelUnload(Level l) { void Level_LevelUnload(Level l) {
RunOnUiThread(() => { RunOnUiThread(() => {
UpdateMapList(); UpdateMapList();
@ -149,28 +148,6 @@ namespace MCGalaxy.Gui {
WriteLine("Recent Heartbeat Failed"); WriteLine("Recent Heartbeat Failed");
} }
void newError(string message) {
try {
if (logs_txtError.InvokeRequired) {
Invoke(new LogDelegate(newError), new object[] { message });
} else {
logs_txtError.AppendText(Environment.NewLine + message);
}
} catch {
}
}
void newSystem(string message) {
try {
if (logs_txtSystem.InvokeRequired) {
Invoke(new LogDelegate(newSystem), new object[] { message });
} else {
logs_txtSystem.AppendText(Environment.NewLine + message);
}
} catch {
}
}
delegate void LogDelegate(string message); delegate void LogDelegate(string message);
/// <summary> Does the same as Console.WriteLine() only in the form </summary> /// <summary> Does the same as Console.WriteLine() only in the form </summary>
@ -322,23 +299,6 @@ namespace MCGalaxy.Gui {
} }
} }
void txtInput_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode != Keys.Enter) return;
e.Handled = true;
e.SuppressKeyPress = true;
string text = main_txtInput.Text;
if (text.Length == 0) return;
if (text[0] == '/' && text.Length > 1 && text[1] == '/') {
Handlers.HandleChat(text.Substring(1), WriteLine);
} else if (text[0] == '/') {
Handlers.HandleCommand(text.Substring(1), WriteCommand);
} else {
Handlers.HandleChat(text, WriteLine);
}
main_txtInput.Clear();
}
void btnClose_Click_1(object sender, EventArgs e) { Close(); } void btnClose_Click_1(object sender, EventArgs e) { Close(); }
void btnProperties_Click_1(object sender, EventArgs e) { void btnProperties_Click_1(object sender, EventArgs e) {
@ -417,7 +377,6 @@ namespace MCGalaxy.Gui {
Command.all.Find(com).Use(null, GetSelectedLevel().name + args); Command.all.Find(com).Use(null, GetSelectedLevel().name + args);
} }
void tabControl1_Click(object sender, EventArgs e) { void tabControl1_Click(object sender, EventArgs e) {
try { UpdateUnloadedList(); } try { UpdateUnloadedList(); }
catch { } catch { }
@ -436,36 +395,10 @@ namespace MCGalaxy.Gui {
tabControl1.Update(); tabControl1.Update();
} }
void Restart_Click(object sender, EventArgs e) {
if (MessageBox.Show("Are you sure you want to restart?", "Restart", MessageBoxButtons.OKCancel) == DialogResult.OK) {
MCGalaxy.Gui.App.ExitProgram(true);
}
}
void restartServerToolStripMenuItem_Click(object sender, EventArgs e) { void restartServerToolStripMenuItem_Click(object sender, EventArgs e) {
Restart_Click(sender, e); Restart_Click(sender, e);
} }
void DatePicker1_ValueChanged(object sender, EventArgs e) {
string dayofmonth = logs_dateGeneral.Value.Day.ToString().PadLeft(2, '0');
string year = logs_dateGeneral.Value.Year.ToString();
string month = logs_dateGeneral.Value.Month.ToString().PadLeft(2, '0');
string ymd = year + "-" + month + "-" + dayofmonth;
string filename = ymd + ".txt";
if (!File.Exists(Path.Combine("logs/", filename))) {
logs_txtGeneral.Text = "No logs found for: " + ymd;
} else {
logs_txtGeneral.Text = null;
logs_txtGeneral.Text = File.ReadAllText(Path.Combine("logs/", filename));
}
}
void txtUrl_DoubleClick(object sender, EventArgs e) {
main_txtUrl.SelectAll();
}
void dgvPlayers_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { void dgvPlayers_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) {
e.PaintParts &= ~DataGridViewPaintParts.Focus; e.PaintParts &= ~DataGridViewPaintParts.Focus;
} }
@ -479,170 +412,34 @@ namespace MCGalaxy.Gui {
} }
PlayerProperties playerProps; PlayerProperties playerProps;
#region Tabs #region Main tab
#region playersTab
void LoadPLayerTabDetails(object sender, EventArgs e) {
Player p = PlayerInfo.Find(PlyersListBox.Text);
if (p == null) return;
PlayersTextBox.AppendTextAndScroll("==" + p.name + "=="); void txtInput_KeyDown(object sender, KeyEventArgs e) {
//Top Stuff if (e.KeyCode != Keys.Enter) return;
playerProps = new PlayerProperties(p); e.Handled = true;
pgPlayers.SelectedObject = playerProps; e.SuppressKeyPress = true;
string text = main_txtInput.Text;
if (text.Length == 0) return;
//Map if (text[0] == '/' && text.Length > 1 && text[1] == '/') {
try { Handlers.HandleChat(text.Substring(1), WriteLine);
UpdatePlayerMapCombo(); } else if (text[0] == '/') {
} catch { } Handlers.HandleCommand(text.Substring(1), WriteCommand);
}
void UpdatePlayerMapCombo() {
// TODO: why not working
pgPlayers.Refresh();
if (tabControl1.SelectedTab == tp_Players)
Invalidate();
}
void UndoBt_Click(object sender, EventArgs e) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
if (pl_txtUndo.Text.Trim() == "") {
PlayersTextBox.AppendTextAndScroll("You didn't specify a time"); return;
}
try {
Command.core.Find("undo").Use(null, curPlayer.name + " " + pl_txtUndo.Text);
PlayersTextBox.AppendTextAndScroll("Undid player for " + pl_txtUndo.Text + " Seconds");
} catch {
PlayersTextBox.AppendTextAndScroll("Something went wrong!!");
}
}
void MessageBt_Click(object sender, EventArgs e) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
Player.SendMessage(curPlayer, "<CONSOLE> " + pl_txtMessage.Text);
PlayersTextBox.AppendTextAndScroll("Sent player message '<CONSOLE> " + pl_txtMessage.Text + "'");
pl_txtMessage.Text = "";
}
void ImpersonateORSendCmdBt_Click(object sender, EventArgs e) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
try {
if (pl_txtImpersonate.Text.StartsWith("/")) {
string[] args = pl_txtImpersonate.Text.Trim().SplitSpaces(2);
Command cmd = Command.all.Find(args[0].Replace("/", ""));
if (cmd == null) {
PlayersTextBox.AppendTextAndScroll("That isn't a command!!"); return;
}
cmd.Use(curPlayer, args.Length > 1 ? args[1] : "");
if (args.Length > 1) {
PlayersTextBox.AppendTextAndScroll("Used command '" + args[0] + "' with parameters '" + args[1] + "' as player");
} else { } else {
PlayersTextBox.AppendTextAndScroll("Used command '" + args[0] + "' with no parameters as player"); Handlers.HandleChat(text, WriteLine);
} }
} else { main_txtInput.Clear();
Command.all.Find("impersonate").Use(null, curPlayer.name + " " + pl_txtImpersonate.Text);
PlayersTextBox.AppendTextAndScroll("Sent Message '" + pl_txtImpersonate.Text + "' as player");
} }
pl_txtImpersonate.Text = "";
} catch { void Restart_Click(object sender, EventArgs e) {
PlayersTextBox.AppendTextAndScroll("Something went wrong"); if (MessageBox.Show("Are you sure you want to restart?", "Restart", MessageBoxButtons.OKCancel) == DialogResult.OK) {
MCGalaxy.Gui.App.ExitProgram(true);
} }
} }
void SlapBt_Click(object sender, EventArgs e) { DoCmd("slap", "Slapped"); } void txtUrl_DoubleClick(object sender, EventArgs e) {
void KillBt_Click(object sender, EventArgs e) { DoCmd("kill", "Killed"); } main_txtUrl.SelectAll();
void WarnBt_Click(object sender, EventArgs e) { DoCmd("warn", "Warned"); }
void KickBt_Click(object sender, EventArgs e) { DoCmd("kick", "Kicked"); }
void BanBt_Click(object sender, EventArgs e) { DoCmd("ban", "Banned"); }
void IPBanBt_Click(object sender, EventArgs e) { DoCmd("banip", "IP-Banned"); }
void DoCmd(string cmdName, string action) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
} }
Command.all.Find(cmdName).Use(null, curPlayer.name);
PlayersTextBox.AppendTextAndScroll(action + " player");
}
void DoCmd(string cmdName, string action, string prefix) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
Command.all.Find(cmdName).Use(null, prefix + curPlayer.name);
PlayersTextBox.AppendTextAndScroll(action + " player");
}
void DoToggle(string cmdName, Button target, string targetDesc,
Predicate<Player> getter, string action) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
Command.all.Find(cmdName).Use(null, curPlayer.name);
if (getter(curPlayer)) {
PlayersTextBox.AppendTextAndScroll(action + " player");
target.Text = "Un" + targetDesc;
} else {
PlayersTextBox.AppendTextAndScroll("Un" + action + " player");
target.Text = targetDesc;
}
}
void SendRulesTxt_Click(object sender, EventArgs e) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
Command.all.Find("rules").Use(curPlayer, "");
PlayersTextBox.AppendTextAndScroll("Sent rules to player");
}
void SpawnBt_Click(object sender, EventArgs e) {
if (curPlayer == null || !Player.players.Contains(curPlayer)) {
PlayersTextBox.AppendTextAndScroll("No Player Selected"); return;
}
Player p = curPlayer;
ushort x = (ushort)((0.5 + p.level.spawnx) * 32);
ushort y = (ushort)((1 + p.level.spawny) * 32);
ushort z = (ushort)((0.5 + p.level.spawnz) * 32);
p.SendPos(0xFF, x, y, z, p.level.rotx, p.level.roty);
PlayersTextBox.AppendTextAndScroll("Sent player to spawn");
}
public void UpdatePlyersListBox() {
RunOnUiThread(
delegate {
PlyersListBox.Items.Clear();
foreach (Player p in Player.players)
{
PlyersListBox.Items.Add(p.name);
}
});
}
void PlyersListBox_Click(object sender, EventArgs e) {
LoadPLayerTabDetails(sender, e);
}
void ImpersonateORSendCmdTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) ImpersonateORSendCmdBt_Click(sender, e);
}
void UndoTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) UndoBt_Click(sender, e);
}
void PLayersMessageTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) MessageBt_Click(sender, e);
}
#endregion
#endregion
void button_saveall_Click(object sender, EventArgs e) { void button_saveall_Click(object sender, EventArgs e) {
Command.all.Find("save").Use(null, "all"); Command.all.Find("save").Use(null, "all");
@ -660,67 +457,60 @@ namespace MCGalaxy.Gui {
catch { } catch { }
} }
void loadOngotoToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " loadongoto"); }
void instantBuildingToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " instant"); }
void autpPhysicsToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " restartphysics"); }
void gunsToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("allowguns"); }
void unloadToolStripMenuItem1_Click(object sender, EventArgs e) { LevelCmd("map", " unload"); }
void infoToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map"); LevelCmd("mapinfo"); }
void moveAllToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("moveall"); }
void toolStripMenuItem2_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 0"); }
void toolStripMenuItem3_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 1"); }
void toolStripMenuItem4_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 2"); }
void toolStripMenuItem5_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 3"); }
void toolStripMenuItem6_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 4"); }
void toolStripMenuItem7_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 5"); }
void saveToolStripMenuItem_Click_1(object sender, EventArgs e) { LevelCmd("save"); }
void unloadToolStripMenuItem_Click_1(object sender, EventArgs e) { LevelCmd("unload"); }
void reloadToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("reload"); }
void leafDecayToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " leafdecay"); }
void randomFlowToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " randomflow"); }
void treeGrowingToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " growtrees"); }
#region Colored Reader Context Menu
void nightModeToolStripMenuItem_Click_1(object sender, EventArgs e) {
if (MessageBox.Show("Changing to and from night mode will clear your logs. Do you still want to change?", "You sure?", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.No)
return;
main_txtLog.NightMode = nightModeToolStripMenuItem.Checked;
nightModeToolStripMenuItem.Checked = !nightModeToolStripMenuItem.Checked;
}
void colorsToolStripMenuItem_Click_1(object sender, EventArgs e) {
main_txtLog.Colorize = !colorsToolStripMenuItem.Checked;
colorsToolStripMenuItem.Checked = !colorsToolStripMenuItem.Checked;
}
void dateStampToolStripMenuItem_Click(object sender, EventArgs e) {
main_txtLog.DateStamp = !dateStampToolStripMenuItem.Checked;
dateStampToolStripMenuItem.Checked = !dateStampToolStripMenuItem.Checked;
}
void autoScrollToolStripMenuItem_Click(object sender, EventArgs e) {
main_txtLog.AutoScroll = !autoScrollToolStripMenuItem.Checked;
autoScrollToolStripMenuItem.Checked = !autoScrollToolStripMenuItem.Checked;
}
void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) {
if (String.IsNullOrEmpty(main_txtLog.SelectedText)) return;
Clipboard.SetText(main_txtLog.SelectedText, TextDataFormat.Text);
}
void copyAllToolStripMenuItem_Click(object sender, EventArgs e) {
Clipboard.SetText(main_txtLog.Text, TextDataFormat.Text);
}
void clearToolStripMenuItem_Click(object sender, EventArgs e) {
if (MessageBox.Show("Are you sure you want to clear logs?", "You sure?", MessageBoxButtons.YesNo) == DialogResult.Yes) {
main_txtLog.Clear();
}
}
#endregion #endregion
#region Logs tab
void LoadChangelog() {
if (!File.Exists("Changelog.txt")) return;
logs_txtChangelog.Text = "Changelog for " + Server.Version + ":";
foreach (string line in File.ReadAllLines("Changelog.txt")) {
logs_txtChangelog.AppendText("\r\n " + line);
}
}
void logs_dateGeneralValueChanged(object sender, EventArgs e) {
string dayofmonth = logs_dateGeneral.Value.Day.ToString().PadLeft(2, '0');
string year = logs_dateGeneral.Value.Year.ToString();
string month = logs_dateGeneral.Value.Month.ToString().PadLeft(2, '0');
string ymd = year + "-" + month + "-" + dayofmonth;
string filename = ymd + ".txt";
if (!File.Exists(Path.Combine("logs/", filename))) {
logs_txtGeneral.Text = "No logs found for: " + ymd;
} else {
logs_txtGeneral.Text = null;
logs_txtGeneral.Text = File.ReadAllText(Path.Combine("logs/", filename));
}
}
void LogErrorMessage(string message) {
try {
if (logs_txtError.InvokeRequired) {
Invoke(new LogDelegate(LogErrorMessage), new object[] { message });
} else {
logs_txtError.AppendText(Environment.NewLine + message);
}
} catch {
}
}
void LogSystemMessage(string message) {
try {
if (logs_txtSystem.InvokeRequired) {
Invoke(new LogDelegate(LogSystemMessage), new object[] { message });
} else {
logs_txtSystem.AppendText(Environment.NewLine + message);
}
} catch {
}
}
#endregion
#region Map tab #region Map tab
void MapGenClick(object sender, EventArgs e) { void MapGenClick(object sender, EventArgs e) {
@ -808,8 +598,7 @@ namespace MCGalaxy.Gui {
gbMap_Props.Text = "Properties for " + name; gbMap_Props.Text = "Properties for " + name;
} }
public void UpdateUnloadedList() public void UpdateUnloadedList() {
{
RunOnUiThread(() => RunOnUiThread(() =>
{ {
string selectedLvl = null; string selectedLvl = null;
@ -833,6 +622,195 @@ namespace MCGalaxy.Gui {
}); });
} }
#endregion #endregion
#region Players tab
public void UpdatePlyersListBox() {
RunOnUiThread(
delegate {
pl_listBox.Items.Clear();
Player[] players = PlayerInfo.Online.Items;
foreach (Player p in players)
pl_listBox.Items.Add(p.name);
if (curPlayer == null) return;
if (PlayerInfo.FindExact(curPlayer.name) != null) return;
curPlayer = null;
playerProps = null;
pl_gbProps.Text = "Properties for (none selected)";
pl_pgProps.SelectedObject = null;
});
}
void LoadPlayerTabDetails(object sender, EventArgs e) {
Player p = PlayerInfo.FindExact(pl_listBox.Text);
if (p == null) return;
pl_statusBox.AppendTextAndScroll("==" + p.name + "==");
playerProps = new PlayerProperties(p);
pl_gbProps.Text = "Properties for " + p.name;
pl_pgProps.SelectedObject = playerProps;
curPlayer = p;
try {
UpdatePlayerMapCombo();
} catch { }
}
void UpdatePlayerMapCombo() {
if (tabControl1.SelectedTab != tp_Players) return;
pl_pgProps.Refresh();
}
void UndoBt_Click(object sender, EventArgs e) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No player selected"); return; }
if (pl_txtUndo.Text.Trim() == "") {
pl_statusBox.AppendTextAndScroll("You didn't specify a time"); return;
}
try {
Command.core.Find("undo").Use(null, curPlayer.name + " " + pl_txtUndo.Text);
pl_statusBox.AppendTextAndScroll("Undid player for " + pl_txtUndo.Text + " Seconds");
} catch {
pl_statusBox.AppendTextAndScroll("Something went wrong!!");
}
}
void MessageBt_Click(object sender, EventArgs e) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No player selected"); return; }
Player.SendMessage(curPlayer, "<CONSOLE> " + pl_txtMessage.Text);
pl_statusBox.AppendTextAndScroll("Sent player message '<CONSOLE> " + pl_txtMessage.Text + "'");
pl_txtMessage.Text = "";
}
void ImpersonateORSendCmdBt_Click(object sender, EventArgs e) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No player selected"); return; }
try {
if (pl_txtImpersonate.Text.StartsWith("/")) {
string[] args = pl_txtImpersonate.Text.Trim().SplitSpaces(2);
Command cmd = Command.all.Find(args[0].Replace("/", ""));
if (cmd == null) {
pl_statusBox.AppendTextAndScroll("That isn't a command!!"); return;
}
cmd.Use(curPlayer, args.Length > 1 ? args[1] : "");
if (args.Length > 1) {
pl_statusBox.AppendTextAndScroll("Used command '" + args[0] + "' with parameters '" + args[1] + "' as player");
} else {
pl_statusBox.AppendTextAndScroll("Used command '" + args[0] + "' with no parameters as player");
}
} else {
Command.all.Find("impersonate").Use(null, curPlayer.name + " " + pl_txtImpersonate.Text);
pl_statusBox.AppendTextAndScroll("Sent Message '" + pl_txtImpersonate.Text + "' as player");
}
pl_txtImpersonate.Text = "";
} catch {
pl_statusBox.AppendTextAndScroll("Something went wrong");
}
}
void SlapBt_Click(object sender, EventArgs e) { DoCmd("slap", "Slapped"); }
void KillBt_Click(object sender, EventArgs e) { DoCmd("kill", "Killed"); }
void WarnBt_Click(object sender, EventArgs e) { DoCmd("warn", "Warned"); }
void KickBt_Click(object sender, EventArgs e) { DoCmd("kick", "Kicked"); }
void BanBt_Click(object sender, EventArgs e) { DoCmd("ban", "Banned"); }
void IPBanBt_Click(object sender, EventArgs e) { DoCmd("banip", "IP-Banned"); }
void DoCmd(string cmdName, string action) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No player selected"); return; }
Command.all.Find(cmdName).Use(null, curPlayer.name);
pl_statusBox.AppendTextAndScroll(action + " player");
}
void SendRulesTxt_Click(object sender, EventArgs e) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No Player Selected"); return; }
Command.all.Find("rules").Use(curPlayer, "");
pl_statusBox.AppendTextAndScroll("Sent rules to player");
}
void SpawnBt_Click(object sender, EventArgs e) {
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No Player Selected"); return; }
Command.all.Find("spawn").Use(curPlayer, "");
pl_statusBox.AppendTextAndScroll("Sent player to spawn");
}
void PlyersListBox_Click(object sender, EventArgs e) {
LoadPlayerTabDetails(sender, e);
}
void ImpersonateORSendCmdTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) ImpersonateORSendCmdBt_Click(sender, e);
}
void UndoTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) UndoBt_Click(sender, e);
}
void PLayersMessageTxt_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter) MessageBt_Click(sender, e);
}
#endregion
void loadOngotoToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " loadongoto"); }
void instantBuildingToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " instant"); }
void autpPhysicsToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " restartphysics"); }
void gunsToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("allowguns"); }
void unloadToolStripMenuItem1_Click(object sender, EventArgs e) { LevelCmd("map", " unload"); }
void infoToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map"); LevelCmd("mapinfo"); }
void moveAllToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("moveall"); }
void toolStripMenuItem2_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 0"); }
void toolStripMenuItem3_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 1"); }
void toolStripMenuItem4_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 2"); }
void toolStripMenuItem5_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 3"); }
void toolStripMenuItem6_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 4"); }
void toolStripMenuItem7_Click_1(object sender, EventArgs e) { LevelCmd("physics", " 5"); }
void saveToolStripMenuItem_Click_1(object sender, EventArgs e) { LevelCmd("save"); }
void unloadToolStripMenuItem_Click_1(object sender, EventArgs e) { LevelCmd("unload"); }
void reloadToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("reload"); }
void leafDecayToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " leafdecay"); }
void randomFlowToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " randomflow"); }
void treeGrowingToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " growtrees"); }
#region Colored Reader Context Menu
void nightModeToolStripMenuItem_Click_1(object sender, EventArgs e) {
if (MessageBox.Show("Changing to and from night mode will clear your logs. Do you still want to change?", "You sure?", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.No)
return;
main_txtLog.NightMode = nightModeToolStripMenuItem.Checked;
nightModeToolStripMenuItem.Checked = !nightModeToolStripMenuItem.Checked;
}
void colorsToolStripMenuItem_Click_1(object sender, EventArgs e) {
main_txtLog.Colorize = !colorsToolStripMenuItem.Checked;
colorsToolStripMenuItem.Checked = !colorsToolStripMenuItem.Checked;
}
void dateStampToolStripMenuItem_Click(object sender, EventArgs e) {
main_txtLog.DateStamp = !dateStampToolStripMenuItem.Checked;
dateStampToolStripMenuItem.Checked = !dateStampToolStripMenuItem.Checked;
}
void autoScrollToolStripMenuItem_Click(object sender, EventArgs e) {
main_txtLog.AutoScroll = !autoScrollToolStripMenuItem.Checked;
autoScrollToolStripMenuItem.Checked = !autoScrollToolStripMenuItem.Checked;
}
void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) {
if (String.IsNullOrEmpty(main_txtLog.SelectedText)) return;
Clipboard.SetText(main_txtLog.SelectedText, TextDataFormat.Text);
}
void copyAllToolStripMenuItem_Click(object sender, EventArgs e) {
Clipboard.SetText(main_txtLog.Text, TextDataFormat.Text);
}
void clearToolStripMenuItem_Click(object sender, EventArgs e) {
if (MessageBox.Show("Are you sure you want to clear logs?", "You sure?", MessageBoxButtons.YesNo) == DialogResult.Yes) {
main_txtLog.Clear();
}
}
#endregion
} }
} }