mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Cleanup Window code a bit.
This commit is contained in:
parent
461fb25729
commit
cba1de928b
@ -178,7 +178,7 @@ namespace MCGalaxy.Commands.Building {
|
||||
"If <timespan> is not given, undoes 30 minutes.");
|
||||
Player.Message(p, "%H e.g. to undo the past 90 minutes, <timespan> would be %S1h30m");
|
||||
if (p == null || p.group.maxUndo == -1 || p.group.maxUndo == int.MaxValue)
|
||||
Player.Message(p, "%T/undo [player] all %c- Undoes 68 years for [player]");
|
||||
Player.Message(p, "%T/undo [player] all &c- Undoes 68 years for [player]");
|
||||
Player.Message(p, "%T/undo %H- Undoes your last draw operation.");
|
||||
Player.Message(p, "%T/undo physics [seconds] %H- Undoes physics on current map");
|
||||
}
|
||||
|
106
GUI/Window.Designer.cs
generated
106
GUI/Window.Designer.cs
generated
@ -104,7 +104,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_dateStamp = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsLog_autoScroll = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsLog_separator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsPlayer_copySelected = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsLog_copySelected = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsLog_copyAll = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tsLog_separator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.tsLog_clear = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@ -209,42 +209,42 @@ namespace MCGalaxy.Gui
|
||||
this.tsMap_physics0.Name = "tsMap_physics0";
|
||||
this.tsMap_physics0.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics0.Text = "Off";
|
||||
this.tsMap_physics0.Click += new System.EventHandler(this.toolStripMenuItem2_Click_1);
|
||||
this.tsMap_physics0.Click += new System.EventHandler(this.tsMap_Physics0_Click);
|
||||
//
|
||||
// tsMap_physics1
|
||||
//
|
||||
this.tsMap_physics1.Name = "tsMap_physics1";
|
||||
this.tsMap_physics1.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics1.Text = "Normal";
|
||||
this.tsMap_physics1.Click += new System.EventHandler(this.toolStripMenuItem3_Click_1);
|
||||
this.tsMap_physics1.Click += new System.EventHandler(this.tsMap_Physics1_Click);
|
||||
//
|
||||
// tsMap_physics2
|
||||
//
|
||||
this.tsMap_physics2.Name = "tsMap_physics2";
|
||||
this.tsMap_physics2.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics2.Text = "Advanced";
|
||||
this.tsMap_physics2.Click += new System.EventHandler(this.toolStripMenuItem4_Click_1);
|
||||
this.tsMap_physics2.Click += new System.EventHandler(this.tsMap_Physics2_Click);
|
||||
//
|
||||
// tsMap_physics3
|
||||
//
|
||||
this.tsMap_physics3.Name = "tsMap_physics3";
|
||||
this.tsMap_physics3.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics3.Text = "Hardcore";
|
||||
this.tsMap_physics3.Click += new System.EventHandler(this.toolStripMenuItem5_Click_1);
|
||||
this.tsMap_physics3.Click += new System.EventHandler(this.tsMap_Physics3_Click);
|
||||
//
|
||||
// tsMap_physics4
|
||||
//
|
||||
this.tsMap_physics4.Name = "tsMap_physics4";
|
||||
this.tsMap_physics4.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics4.Text = "Instant";
|
||||
this.tsMap_physics4.Click += new System.EventHandler(this.toolStripMenuItem6_Click_1);
|
||||
this.tsMap_physics4.Click += new System.EventHandler(this.tsMap_Physics4_Click);
|
||||
//
|
||||
// tsMap_physics5
|
||||
//
|
||||
this.tsMap_physics5.Name = "tsMap_physics5";
|
||||
this.tsMap_physics5.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_physics5.Text = "Doors-Only";
|
||||
this.tsMap_physics5.Click += new System.EventHandler(this.toolStripMenuItem7_Click_1);
|
||||
this.tsMap_physics5.Click += new System.EventHandler(this.tsMap_Physics5_Click);
|
||||
//
|
||||
// tsMap_actionsMenu
|
||||
//
|
||||
@ -262,28 +262,28 @@ namespace MCGalaxy.Gui
|
||||
this.tsMap_Save.Name = "tsMap_Save";
|
||||
this.tsMap_Save.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_Save.Text = "Save";
|
||||
this.tsMap_Save.Click += new System.EventHandler(this.saveToolStripMenuItem_Click_1);
|
||||
this.tsMap_Save.Click += new System.EventHandler(this.tsMap_Save_Click);
|
||||
//
|
||||
// tsMap_Reload
|
||||
//
|
||||
this.tsMap_Reload.Name = "tsMap_Reload";
|
||||
this.tsMap_Reload.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_Reload.Text = "Reload";
|
||||
this.tsMap_Reload.Click += new System.EventHandler(this.reloadToolStripMenuItem_Click);
|
||||
this.tsMap_Reload.Click += new System.EventHandler(this.tsMap_Reload_Click);
|
||||
//
|
||||
// tsMap_Unload
|
||||
//
|
||||
this.tsMap_Unload.Name = "tsMap_Unload";
|
||||
this.tsMap_Unload.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_Unload.Text = "Unload";
|
||||
this.tsMap_Unload.Click += new System.EventHandler(this.unloadToolStripMenuItem_Click_1);
|
||||
this.tsMap_Unload.Click += new System.EventHandler(this.tsMap_Unload_Click);
|
||||
//
|
||||
// tsMap_moveAll
|
||||
//
|
||||
this.tsMap_moveAll.Name = "tsMap_moveAll";
|
||||
this.tsMap_moveAll.Size = new System.Drawing.Size(152, 22);
|
||||
this.tsMap_moveAll.Text = "Move All";
|
||||
this.tsMap_moveAll.Click += new System.EventHandler(this.moveAllToolStripMenuItem_Click);
|
||||
this.tsMap_moveAll.Click += new System.EventHandler(this.tsMap_MoveAll_Click);
|
||||
//
|
||||
// tsMap_separator
|
||||
//
|
||||
@ -295,7 +295,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsMap_info.Name = "tsMap_info";
|
||||
this.tsMap_info.Size = new System.Drawing.Size(137, 22);
|
||||
this.tsMap_info.Text = "Info";
|
||||
this.tsMap_info.Click += new System.EventHandler(this.infoToolStripMenuItem_Click);
|
||||
this.tsMap_info.Click += new System.EventHandler(this.tsMap_Info_Click);
|
||||
//
|
||||
// tsPlayer
|
||||
//
|
||||
@ -350,14 +350,14 @@ namespace MCGalaxy.Gui
|
||||
this.tsPlayer_promote.Name = "tsPlayer_promote";
|
||||
this.tsPlayer_promote.Size = new System.Drawing.Size(114, 22);
|
||||
this.tsPlayer_promote.Text = "Promote";
|
||||
this.tsPlayer_promote.Click += new System.EventHandler(this.promoteToolStripMenuItem_Click);
|
||||
this.tsPlayer_promote.Click += new System.EventHandler(this.tsPlayer_promote_Click);
|
||||
//
|
||||
// tsPlayer_demote
|
||||
//
|
||||
this.tsPlayer_demote.Name = "tsPlayer_demote";
|
||||
this.tsPlayer_demote.Size = new System.Drawing.Size(114, 22);
|
||||
this.tsPlayer_demote.Text = "Demote";
|
||||
this.tsPlayer_demote.Click += new System.EventHandler(this.demoteToolStripMenuItem_Click);
|
||||
this.tsPlayer_demote.Click += new System.EventHandler(this.tsPlayer_demote_Click);
|
||||
//
|
||||
// icon_context
|
||||
//
|
||||
@ -387,7 +387,7 @@ namespace MCGalaxy.Gui
|
||||
this.icon_restart.Name = "icon_restart";
|
||||
this.icon_restart.Size = new System.Drawing.Size(157, 22);
|
||||
this.icon_restart.Text = "Restart Server";
|
||||
this.icon_restart.Click += new System.EventHandler(this.restartServerToolStripMenuItem_Click);
|
||||
this.icon_restart.Click += new System.EventHandler(this.icon_restart_Click);
|
||||
//
|
||||
// main_btnProps
|
||||
//
|
||||
@ -423,7 +423,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_btnRestart.TabIndex = 36;
|
||||
this.main_btnRestart.Text = "Restart";
|
||||
this.main_btnRestart.UseVisualStyleBackColor = true;
|
||||
this.main_btnRestart.Click += new System.EventHandler(this.Restart_Click);
|
||||
this.main_btnRestart.Click += new System.EventHandler(this.main_BtnRestart_Click);
|
||||
//
|
||||
// logs_tp
|
||||
//
|
||||
@ -499,7 +499,7 @@ namespace MCGalaxy.Gui
|
||||
this.logs_dateGeneral.Size = new System.Drawing.Size(200, 21);
|
||||
this.logs_dateGeneral.TabIndex = 5;
|
||||
this.logs_dateGeneral.Value = new System.DateTime(2011, 7, 20, 18, 31, 50, 0);
|
||||
this.logs_dateGeneral.ValueChanged += new System.EventHandler(this.logs_dateGeneralValueChanged);
|
||||
this.logs_dateGeneral.ValueChanged += new System.EventHandler(this.logs_dateGeneral_Changed);
|
||||
//
|
||||
// logs_txtGeneral
|
||||
//
|
||||
@ -584,7 +584,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_btnUnloadEmpty.TabIndex = 41;
|
||||
this.main_btnUnloadEmpty.Text = "Unload Empty";
|
||||
this.main_btnUnloadEmpty.UseVisualStyleBackColor = true;
|
||||
this.main_btnUnloadEmpty.Click += new System.EventHandler(this.Unloadempty_button_Click);
|
||||
this.main_btnUnloadEmpty.Click += new System.EventHandler(this.main_BtnUnloadEmpty_Click);
|
||||
//
|
||||
// main_btnKillPhysics
|
||||
//
|
||||
@ -596,7 +596,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_btnKillPhysics.TabIndex = 40;
|
||||
this.main_btnKillPhysics.Text = "Kill All Physics";
|
||||
this.main_btnKillPhysics.UseVisualStyleBackColor = true;
|
||||
this.main_btnKillPhysics.Click += new System.EventHandler(this.killphysics_button_Click);
|
||||
this.main_btnKillPhysics.Click += new System.EventHandler(this.main_BtnKillPhysics_Click);
|
||||
//
|
||||
// main_btnSaveAll
|
||||
//
|
||||
@ -608,7 +608,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_btnSaveAll.TabIndex = 39;
|
||||
this.main_btnSaveAll.Text = "Save All";
|
||||
this.main_btnSaveAll.UseVisualStyleBackColor = true;
|
||||
this.main_btnSaveAll.Click += new System.EventHandler(this.button_saveall_Click);
|
||||
this.main_btnSaveAll.Click += new System.EventHandler(this.main_BtnSaveAll_Click);
|
||||
//
|
||||
// main_Maps
|
||||
//
|
||||
@ -648,7 +648,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_dateStamp,
|
||||
this.tsLog_autoScroll,
|
||||
this.tsLog_separator1,
|
||||
this.tsPlayer_copySelected,
|
||||
this.tsLog_copySelected,
|
||||
this.tsLog_copyAll,
|
||||
this.tsLog_separator2,
|
||||
this.tsLog_clear});
|
||||
@ -660,7 +660,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_night.Name = "tsLog_night";
|
||||
this.tsLog_night.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_night.Text = "Night Theme";
|
||||
this.tsLog_night.Click += new System.EventHandler(this.nightModeToolStripMenuItem_Click_1);
|
||||
this.tsLog_night.Click += new System.EventHandler(this.tsLog_Night_Click);
|
||||
//
|
||||
// tsLog_Colored
|
||||
//
|
||||
@ -669,7 +669,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_Colored.Name = "tsLog_Colored";
|
||||
this.tsLog_Colored.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_Colored.Text = "Colors";
|
||||
this.tsLog_Colored.Click += new System.EventHandler(this.colorsToolStripMenuItem_Click_1);
|
||||
this.tsLog_Colored.Click += new System.EventHandler(this.tsLog_Colored_Click);
|
||||
//
|
||||
// tsLog_dateStamp
|
||||
//
|
||||
@ -678,7 +678,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_dateStamp.Name = "tsLog_dateStamp";
|
||||
this.tsLog_dateStamp.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_dateStamp.Text = "Date Stamp";
|
||||
this.tsLog_dateStamp.Click += new System.EventHandler(this.dateStampToolStripMenuItem_Click);
|
||||
this.tsLog_dateStamp.Click += new System.EventHandler(this.tsLog_DateStamp_Click);
|
||||
//
|
||||
// tsLog_autoScroll
|
||||
//
|
||||
@ -687,7 +687,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_autoScroll.Name = "tsLog_autoScroll";
|
||||
this.tsLog_autoScroll.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_autoScroll.Text = "Auto Scroll";
|
||||
this.tsLog_autoScroll.Click += new System.EventHandler(this.autoScrollToolStripMenuItem_Click);
|
||||
this.tsLog_autoScroll.Click += new System.EventHandler(this.tsLog_AutoScroll_Click);
|
||||
//
|
||||
// tsLog_separator1
|
||||
//
|
||||
@ -696,17 +696,17 @@ namespace MCGalaxy.Gui
|
||||
//
|
||||
// tsPlayer_copySelected
|
||||
//
|
||||
this.tsPlayer_copySelected.Name = "tsPlayer_copySelected";
|
||||
this.tsPlayer_copySelected.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsPlayer_copySelected.Text = "Copy Selected";
|
||||
this.tsPlayer_copySelected.Click += new System.EventHandler(this.copySelectedToolStripMenuItem_Click);
|
||||
this.tsLog_copySelected.Name = "tsLog_copySelected";
|
||||
this.tsLog_copySelected.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_copySelected.Text = "Copy Selected";
|
||||
this.tsLog_copySelected.Click += new System.EventHandler(this.tsLog_CopySelected_Click);
|
||||
//
|
||||
// tsLog_copyAll
|
||||
//
|
||||
this.tsLog_copyAll.Name = "tsLog_copyAll";
|
||||
this.tsLog_copyAll.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_copyAll.Text = "Copy All";
|
||||
this.tsLog_copyAll.Click += new System.EventHandler(this.copyAllToolStripMenuItem_Click);
|
||||
this.tsLog_copyAll.Click += new System.EventHandler(this.tsLog_CopyAll_Click);
|
||||
//
|
||||
// tsLog_separator2
|
||||
//
|
||||
@ -718,7 +718,7 @@ namespace MCGalaxy.Gui
|
||||
this.tsLog_clear.Name = "tsLog_clear";
|
||||
this.tsLog_clear.Size = new System.Drawing.Size(143, 22);
|
||||
this.tsLog_clear.Text = "Clear";
|
||||
this.tsLog_clear.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
|
||||
this.tsLog_clear.Click += new System.EventHandler(this.tsLog_Clear_Click);
|
||||
//
|
||||
// main_txtInput
|
||||
//
|
||||
@ -729,7 +729,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_txtInput.TabIndex = 27;
|
||||
this.toolTip.SetToolTip(this.main_txtInput, "To send chat to players, just type the message in.\nTo enter a command, put a / be" +
|
||||
"fore it. (e.g. /help commands)");
|
||||
this.main_txtInput.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtInput_KeyDown);
|
||||
this.main_txtInput.KeyDown += new System.Windows.Forms.KeyEventHandler(this.main_TxtInput_KeyDown);
|
||||
//
|
||||
// main_txtUrl
|
||||
//
|
||||
@ -741,7 +741,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_txtUrl.Size = new System.Drawing.Size(498, 21);
|
||||
this.main_txtUrl.TabIndex = 25;
|
||||
this.main_txtUrl.Text = "Finding classicube.net url..";
|
||||
this.main_txtUrl.DoubleClick += new System.EventHandler(this.txtUrl_DoubleClick);
|
||||
this.main_txtUrl.DoubleClick += new System.EventHandler(this.main_TxtUrl_DoubleClick);
|
||||
//
|
||||
// main_Players
|
||||
//
|
||||
@ -759,7 +759,7 @@ namespace MCGalaxy.Gui
|
||||
this.main_Players.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.main_Players.Size = new System.Drawing.Size(246, 250);
|
||||
this.main_Players.TabIndex = 37;
|
||||
this.main_Players.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvPlayers_RowPrePaint);
|
||||
this.main_Players.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.main_players_RowPrePaint);
|
||||
//
|
||||
// tabs
|
||||
//
|
||||
@ -774,7 +774,7 @@ namespace MCGalaxy.Gui
|
||||
this.tabs.SelectedIndex = 0;
|
||||
this.tabs.Size = new System.Drawing.Size(775, 514);
|
||||
this.tabs.TabIndex = 2;
|
||||
this.tabs.Click += new System.EventHandler(this.tabControl1_Click);
|
||||
this.tabs.Click += new System.EventHandler(this.tabs_Click);
|
||||
//
|
||||
// tp_Maps
|
||||
//
|
||||
@ -846,7 +846,7 @@ namespace MCGalaxy.Gui
|
||||
this.map_btnLoad.TabIndex = 1;
|
||||
this.map_btnLoad.Text = "Load map";
|
||||
this.map_btnLoad.UseVisualStyleBackColor = true;
|
||||
this.map_btnLoad.Click += new System.EventHandler(this.MapLoadClick);
|
||||
this.map_btnLoad.Click += new System.EventHandler(this.mao_BtnLoad_Click);
|
||||
//
|
||||
// map_lbUnloaded
|
||||
//
|
||||
@ -887,7 +887,7 @@ namespace MCGalaxy.Gui
|
||||
this.map_btnGen.TabIndex = 17;
|
||||
this.map_btnGen.Text = "Generate";
|
||||
this.map_btnGen.UseVisualStyleBackColor = true;
|
||||
this.map_btnGen.Click += new System.EventHandler(this.MapGenClick);
|
||||
this.map_btnGen.Click += new System.EventHandler(this.map_BtnGen_Click);
|
||||
//
|
||||
// map_lblType
|
||||
//
|
||||
@ -1076,7 +1076,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_txtImpersonate.Name = "pl_txtImpersonate";
|
||||
this.pl_txtImpersonate.Size = new System.Drawing.Size(485, 21);
|
||||
this.pl_txtImpersonate.TabIndex = 38;
|
||||
this.pl_txtImpersonate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ImpersonateORSendCmdTxt_KeyDown);
|
||||
this.pl_txtImpersonate.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pl_txtImpersonate_KeyDown);
|
||||
//
|
||||
// pl_btnImpersonate
|
||||
//
|
||||
@ -1086,7 +1086,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnImpersonate.TabIndex = 37;
|
||||
this.pl_btnImpersonate.Text = "Impersonate:";
|
||||
this.pl_btnImpersonate.UseVisualStyleBackColor = true;
|
||||
this.pl_btnImpersonate.Click += new System.EventHandler(this.ImpersonateORSendCmdBt_Click);
|
||||
this.pl_btnImpersonate.Click += new System.EventHandler(this.pl_BtnImpersonate_Click);
|
||||
//
|
||||
// pl_txtMessage
|
||||
//
|
||||
@ -1094,7 +1094,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_txtMessage.Name = "pl_txtMessage";
|
||||
this.pl_txtMessage.Size = new System.Drawing.Size(485, 21);
|
||||
this.pl_txtMessage.TabIndex = 8;
|
||||
this.pl_txtMessage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PLayersMessageTxt_KeyDown);
|
||||
this.pl_txtMessage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pl_txtMessage_KeyDown);
|
||||
//
|
||||
// pl_btnMessage
|
||||
//
|
||||
@ -1104,7 +1104,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnMessage.TabIndex = 9;
|
||||
this.pl_btnMessage.Text = "Message:";
|
||||
this.pl_btnMessage.UseVisualStyleBackColor = true;
|
||||
this.pl_btnMessage.Click += new System.EventHandler(this.MessageBt_Click);
|
||||
this.pl_btnMessage.Click += new System.EventHandler(this.pl_BtnMessage_Click);
|
||||
//
|
||||
// pl_gbActions
|
||||
//
|
||||
@ -1133,7 +1133,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnSpawn.TabIndex = 43;
|
||||
this.pl_btnSpawn.Text = "Spawn";
|
||||
this.pl_btnSpawn.UseVisualStyleBackColor = true;
|
||||
this.pl_btnSpawn.Click += new System.EventHandler(this.SpawnBt_Click);
|
||||
this.pl_btnSpawn.Click += new System.EventHandler(this.pl_BtnSpawn_Click);
|
||||
//
|
||||
// pl_txtUndo
|
||||
//
|
||||
@ -1141,7 +1141,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_txtUndo.Name = "pl_txtUndo";
|
||||
this.pl_txtUndo.Size = new System.Drawing.Size(98, 21);
|
||||
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.pl_txtUndo_KeyDown);
|
||||
//
|
||||
// pl_btnWarn
|
||||
//
|
||||
@ -1151,7 +1151,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnWarn.TabIndex = 10;
|
||||
this.pl_btnWarn.Text = "Warn";
|
||||
this.pl_btnWarn.UseVisualStyleBackColor = true;
|
||||
this.pl_btnWarn.Click += new System.EventHandler(this.WarnBt_Click);
|
||||
this.pl_btnWarn.Click += new System.EventHandler(this.pl_BtnWarn_Click);
|
||||
//
|
||||
// pl_btnRules
|
||||
//
|
||||
@ -1161,7 +1161,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnRules.TabIndex = 39;
|
||||
this.pl_btnRules.Text = "Send Rules";
|
||||
this.pl_btnRules.UseVisualStyleBackColor = true;
|
||||
this.pl_btnRules.Click += new System.EventHandler(this.SendRulesTxt_Click);
|
||||
this.pl_btnRules.Click += new System.EventHandler(this.pl_BtnRules_Click);
|
||||
//
|
||||
// pl_btnKick
|
||||
//
|
||||
@ -1171,7 +1171,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnKick.TabIndex = 4;
|
||||
this.pl_btnKick.Text = "Kick";
|
||||
this.pl_btnKick.UseVisualStyleBackColor = true;
|
||||
this.pl_btnKick.Click += new System.EventHandler(this.KickBt_Click);
|
||||
this.pl_btnKick.Click += new System.EventHandler(this.pl_BtnKick_Click);
|
||||
//
|
||||
// pl_btnBanIP
|
||||
//
|
||||
@ -1181,7 +1181,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnBanIP.TabIndex = 6;
|
||||
this.pl_btnBanIP.Text = "IP Ban";
|
||||
this.pl_btnBanIP.UseVisualStyleBackColor = true;
|
||||
this.pl_btnBanIP.Click += new System.EventHandler(this.IPBanBt_Click);
|
||||
this.pl_btnBanIP.Click += new System.EventHandler(this.pl_BtnIPBan_Click);
|
||||
//
|
||||
// pl_btnUndo
|
||||
//
|
||||
@ -1191,7 +1191,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnUndo.TabIndex = 41;
|
||||
this.pl_btnUndo.Text = "Undo:";
|
||||
this.pl_btnUndo.UseVisualStyleBackColor = true;
|
||||
this.pl_btnUndo.Click += new System.EventHandler(this.UndoBt_Click);
|
||||
this.pl_btnUndo.Click += new System.EventHandler(this.pl_BtnUndo_Click);
|
||||
//
|
||||
// pl_btnSlap
|
||||
//
|
||||
@ -1201,7 +1201,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnSlap.TabIndex = 40;
|
||||
this.pl_btnSlap.Text = "Slap";
|
||||
this.pl_btnSlap.UseVisualStyleBackColor = true;
|
||||
this.pl_btnSlap.Click += new System.EventHandler(this.SlapBt_Click);
|
||||
this.pl_btnSlap.Click += new System.EventHandler(this.pl_BtnSlap_Click);
|
||||
//
|
||||
// pl_btnBan
|
||||
//
|
||||
@ -1211,7 +1211,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnBan.TabIndex = 5;
|
||||
this.pl_btnBan.Text = "Ban";
|
||||
this.pl_btnBan.UseVisualStyleBackColor = true;
|
||||
this.pl_btnBan.Click += new System.EventHandler(this.BanBt_Click);
|
||||
this.pl_btnBan.Click += new System.EventHandler(this.pl_BtnBan_Click);
|
||||
//
|
||||
// pl_btnKill
|
||||
//
|
||||
@ -1221,7 +1221,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_btnKill.TabIndex = 36;
|
||||
this.pl_btnKill.Text = "Kill";
|
||||
this.pl_btnKill.UseVisualStyleBackColor = true;
|
||||
this.pl_btnKill.Click += new System.EventHandler(this.KillBt_Click);
|
||||
this.pl_btnKill.Click += new System.EventHandler(this.pl_BtnKill_Click);
|
||||
//
|
||||
// pl_statusBox
|
||||
//
|
||||
@ -1243,7 +1243,7 @@ namespace MCGalaxy.Gui
|
||||
this.pl_listBox.Name = "pl_listBox";
|
||||
this.pl_listBox.Size = new System.Drawing.Size(123, 459);
|
||||
this.pl_listBox.TabIndex = 62;
|
||||
this.pl_listBox.Click += new System.EventHandler(this.PlyersListBox_Click);
|
||||
this.pl_listBox.Click += new System.EventHandler(this.pl_listBox_Click);
|
||||
//
|
||||
// toolTip
|
||||
//
|
||||
@ -1405,7 +1405,7 @@ namespace MCGalaxy.Gui
|
||||
private ToolStripMenuItem tsLog_night;
|
||||
private ToolStripMenuItem tsLog_Colored;
|
||||
private ToolStripSeparator tsLog_separator1;
|
||||
private ToolStripMenuItem tsPlayer_copySelected;
|
||||
private ToolStripMenuItem tsLog_copySelected;
|
||||
private ToolStripMenuItem tsLog_copyAll;
|
||||
private ToolStripSeparator tsLog_separator2;
|
||||
private ToolStripMenuItem tsLog_clear;
|
||||
|
229
GUI/Window.cs
229
GUI/Window.cs
@ -220,53 +220,55 @@ namespace MCGalaxy.Gui {
|
||||
|
||||
public void UpdateMapList() {
|
||||
if (InvokeRequired) {
|
||||
Invoke(new UpdateList(UpdateMapList));
|
||||
} else {
|
||||
|
||||
if (main_Maps.DataSource == null)
|
||||
main_Maps.DataSource = lc;
|
||||
|
||||
// Try to keep the same selection on update
|
||||
string selected = null;
|
||||
if (lc.Count > 0 && main_Maps.SelectedRows.Count > 0) {
|
||||
selected = (from DataGridViewRow row in main_Maps.Rows where row.Selected select lc[row.Index]).First().name;
|
||||
}
|
||||
|
||||
// Update the data source and control
|
||||
//dgvPlayers.SuspendLayout();
|
||||
lc.Clear();
|
||||
string selectedLvl = null;
|
||||
if (map_lbLoaded.SelectedItem != null)
|
||||
selectedLvl = map_lbLoaded.SelectedItem.ToString();
|
||||
|
||||
map_lbLoaded.Items.Clear();
|
||||
//lc = new LevelCollection(new LevelListView());
|
||||
Server.levels.ForEach(l => lc.Add(l));
|
||||
Server.levels.ForEach(l => map_lbLoaded.Items.Add(l.name));
|
||||
|
||||
if (selectedLvl != null) {
|
||||
int index = map_lbLoaded.Items.IndexOf(selectedLvl);
|
||||
map_lbLoaded.SelectedIndex = index;
|
||||
} else {
|
||||
map_lbLoaded.SelectedIndex = -1;
|
||||
}
|
||||
UpdateSelectedMap(null, null);
|
||||
|
||||
//dgvPlayers.Invalidate();
|
||||
main_Maps.DataSource = null;
|
||||
main_Maps.DataSource = lc;
|
||||
// Reselect map
|
||||
if (selected != null) {
|
||||
foreach (DataGridViewRow row in Server.levels.SelectMany(l => main_Maps.Rows.Cast<DataGridViewRow>().Where(row => (string)row.Cells[0].Value == selected)))
|
||||
row.Selected = true;
|
||||
}
|
||||
|
||||
main_Maps.Refresh();
|
||||
//dgvPlayers.ResumeLayout();
|
||||
|
||||
// Update the data source and control
|
||||
//dgvPlayers.SuspendLayout();
|
||||
Invoke(new UpdateList(UpdateMapList)); return;
|
||||
}
|
||||
|
||||
if (main_Maps.DataSource == null)
|
||||
main_Maps.DataSource = lc;
|
||||
|
||||
// Try to keep the same selection on update
|
||||
string selected = null;
|
||||
if (lc.Count > 0 && main_Maps.SelectedRows.Count > 0) {
|
||||
selected = (from DataGridViewRow row in main_Maps.Rows where row.Selected select lc[row.Index]).First().name;
|
||||
}
|
||||
|
||||
// Update the data source and control
|
||||
//dgvPlayers.SuspendLayout();
|
||||
lc.Clear();
|
||||
string selectedLvl = null;
|
||||
if (map_lbLoaded.SelectedItem != null)
|
||||
selectedLvl = map_lbLoaded.SelectedItem.ToString();
|
||||
|
||||
map_lbLoaded.Items.Clear();
|
||||
//lc = new LevelCollection(new LevelListView());
|
||||
Level[] loaded = LevelInfo.Loaded.Items;
|
||||
foreach (Level lvl in loaded) {
|
||||
lc.Add(lvl);
|
||||
map_lbLoaded.Items.Add(lvl.name);
|
||||
}
|
||||
|
||||
if (selectedLvl != null) {
|
||||
int index = map_lbLoaded.Items.IndexOf(selectedLvl);
|
||||
map_lbLoaded.SelectedIndex = index;
|
||||
} else {
|
||||
map_lbLoaded.SelectedIndex = -1;
|
||||
}
|
||||
UpdateSelectedMap(null, null);
|
||||
|
||||
//dgvPlayers.Invalidate();
|
||||
main_Maps.DataSource = null;
|
||||
main_Maps.DataSource = lc;
|
||||
// Reselect map
|
||||
if (selected != null) {
|
||||
foreach (DataGridViewRow row in Server.levels.SelectMany(l => main_Maps.Rows.Cast<DataGridViewRow>().Where(row => (string)row.Cells[0].Value == selected)))
|
||||
row.Selected = true;
|
||||
}
|
||||
|
||||
main_Maps.Refresh();
|
||||
//dgvPlayers.ResumeLayout();
|
||||
|
||||
// Update the data source and control
|
||||
//dgvPlayers.SuspendLayout();
|
||||
}
|
||||
|
||||
/// <summary> Places the server's URL at the top of the window </summary>
|
||||
@ -350,15 +352,6 @@ namespace MCGalaxy.Gui {
|
||||
Command.all.Find(com).Use(null, prefix + GetSelectedPlayer().name + suffix);
|
||||
}
|
||||
|
||||
|
||||
void finiteModeToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " finite"); }
|
||||
void animalAIToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " ai"); }
|
||||
void edgeWaterToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " edge"); }
|
||||
void growingGrassToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " grass"); }
|
||||
void survivalDeathToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " death"); }
|
||||
void killerBlocksToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " killer"); }
|
||||
void rPChatToolStripMenuItem_Click(object sender, EventArgs e) { LevelCmd("map", " chat"); }
|
||||
|
||||
Level GetSelectedLevel() {
|
||||
if (main_Maps.SelectedRows.Count <= 0) return null;
|
||||
return (Level)(main_Maps.SelectedRows[0].DataBoundItem);
|
||||
@ -374,7 +367,7 @@ namespace MCGalaxy.Gui {
|
||||
Command.all.Find(com).Use(null, GetSelectedLevel().name + args);
|
||||
}
|
||||
|
||||
void tabControl1_Click(object sender, EventArgs e) {
|
||||
void tabs_Click(object sender, EventArgs e) {
|
||||
try { UpdateUnloadedList(); }
|
||||
catch { }
|
||||
try { UpdatePlyersListBox(); }
|
||||
@ -383,36 +376,50 @@ namespace MCGalaxy.Gui {
|
||||
try {
|
||||
if (logs_txtGeneral.Text == "")
|
||||
logs_dateGeneral.Value = DateTime.Now;
|
||||
}
|
||||
catch { }
|
||||
foreach (TextBox txtBox in (from TabPage tP in tabs.TabPages from Control ctrl in tP.Controls select ctrl).OfType<TextBox>())
|
||||
} catch { }
|
||||
|
||||
foreach (TabPage page in tabs.TabPages)
|
||||
foreach (Control control in page.Controls)
|
||||
{
|
||||
txtBox.Update();
|
||||
if (!control.GetType().IsSubclassOf(typeof(TextBox))) continue;
|
||||
control.Update();
|
||||
}
|
||||
tabs.Update();
|
||||
}
|
||||
|
||||
void restartServerToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
Restart_Click(sender, e);
|
||||
void icon_restart_Click(object sender, EventArgs e) {
|
||||
main_BtnRestart_Click(sender, e);
|
||||
}
|
||||
|
||||
void dgvPlayers_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) {
|
||||
void main_players_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) {
|
||||
e.PaintParts &= ~DataGridViewPaintParts.Focus;
|
||||
}
|
||||
|
||||
void promoteToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsPlayer_promote_Click(object sender, EventArgs e) {
|
||||
PlayerCmd("rank", "+up ", "");
|
||||
}
|
||||
|
||||
void demoteToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsPlayer_demote_Click(object sender, EventArgs e) {
|
||||
PlayerCmd("rank", "-down ", "");
|
||||
}
|
||||
|
||||
#region Main tab
|
||||
void tsMap_Info_Click(object sender, EventArgs e) { LevelCmd("map"); LevelCmd("mapinfo"); }
|
||||
void tsMap_MoveAll_Click(object sender, EventArgs e) { LevelCmd("moveall"); }
|
||||
void tsMap_Physics0_Click(object sender, EventArgs e) { LevelCmd("physics", " 0"); }
|
||||
void tsMap_Physics1_Click(object sender, EventArgs e) { LevelCmd("physics", " 1"); }
|
||||
void tsMap_Physics2_Click(object sender, EventArgs e) { LevelCmd("physics", " 2"); }
|
||||
void tsMap_Physics3_Click(object sender, EventArgs e) { LevelCmd("physics", " 3"); }
|
||||
void tsMap_Physics4_Click(object sender, EventArgs e) { LevelCmd("physics", " 4"); }
|
||||
void tsMap_Physics5_Click(object sender, EventArgs e) { LevelCmd("physics", " 5"); }
|
||||
void tsMap_Save_Click(object sender, EventArgs e) { LevelCmd("save"); }
|
||||
void tsMap_Unload_Click(object sender, EventArgs e) { LevelCmd("unload"); }
|
||||
void tsMap_Reload_Click(object sender, EventArgs e) { LevelCmd("reload"); }
|
||||
|
||||
List<string> inputLog = new List<string>(21);
|
||||
int inputIndex = -1;
|
||||
|
||||
void txtInput_KeyDown(object sender, KeyEventArgs e) {
|
||||
void main_TxtInput_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Up) {
|
||||
inputIndex = Math.Min(inputIndex + 1, inputLog.Count - 1);
|
||||
if (inputIndex > -1) SetInputText();
|
||||
@ -453,27 +460,27 @@ namespace MCGalaxy.Gui {
|
||||
main_txtInput.Clear();
|
||||
}
|
||||
|
||||
void Restart_Click(object sender, EventArgs e) {
|
||||
void main_BtnRestart_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 txtUrl_DoubleClick(object sender, EventArgs e) {
|
||||
void main_TxtUrl_DoubleClick(object sender, EventArgs e) {
|
||||
main_txtUrl.SelectAll();
|
||||
}
|
||||
|
||||
void button_saveall_Click(object sender, EventArgs e) {
|
||||
void main_BtnSaveAll_Click(object sender, EventArgs e) {
|
||||
Command.all.Find("save").Use(null, "all");
|
||||
}
|
||||
|
||||
void killphysics_button_Click(object sender, EventArgs e) {
|
||||
void main_BtnKillPhysics_Click(object sender, EventArgs e) {
|
||||
Command.all.Find("physics").Use(null, "kill");
|
||||
try { UpdateMapList(); }
|
||||
catch { }
|
||||
}
|
||||
|
||||
void Unloadempty_button_Click(object sender, EventArgs e) {
|
||||
void main_BtnUnloadEmpty_Click(object sender, EventArgs e) {
|
||||
Command.all.Find("unload").Use(null, "empty");
|
||||
try { UpdateMapList(); }
|
||||
catch { }
|
||||
@ -492,16 +499,16 @@ namespace MCGalaxy.Gui {
|
||||
}
|
||||
}
|
||||
|
||||
void logs_dateGeneralValueChanged(object sender, EventArgs e) {
|
||||
string dayofmonth = logs_dateGeneral.Value.Day.ToString().PadLeft(2, '0');
|
||||
void logs_dateGeneral_Changed(object sender, EventArgs e) {
|
||||
string day = 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";
|
||||
string date = year + "-" + month + "-" + day;
|
||||
string filename = date + ".txt";
|
||||
|
||||
if (!File.Exists(Path.Combine("logs/", filename))) {
|
||||
logs_txtGeneral.Text = "No logs found for: " + ymd;
|
||||
logs_txtGeneral.Text = "No logs found for: " + date;
|
||||
} else {
|
||||
logs_txtGeneral.Text = null;
|
||||
logs_txtGeneral.Text = File.ReadAllText(Path.Combine("logs/", filename));
|
||||
@ -535,7 +542,7 @@ namespace MCGalaxy.Gui {
|
||||
|
||||
#region Map tab
|
||||
|
||||
void MapGenClick(object sender, EventArgs e) {
|
||||
void map_BtnGen_Click(object sender, EventArgs e) {
|
||||
if (mapgen) { MessageBox.Show("A map is already being generated."); return; }
|
||||
string name, x, y, z, type, seed;
|
||||
|
||||
@ -588,7 +595,7 @@ namespace MCGalaxy.Gui {
|
||||
genThread.Start();
|
||||
}
|
||||
|
||||
void MapLoadClick(object sender, EventArgs e) {
|
||||
void mao_BtnLoad_Click(object sender, EventArgs e) {
|
||||
try {
|
||||
Command.all.Find("load").Use(null, map_lbUnloaded.SelectedItem.ToString());
|
||||
} catch {
|
||||
@ -687,7 +694,7 @@ namespace MCGalaxy.Gui {
|
||||
pl_pgProps.Refresh();
|
||||
}
|
||||
|
||||
void UndoBt_Click(object sender, EventArgs e) {
|
||||
void pl_BtnUndo_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;
|
||||
@ -701,14 +708,14 @@ namespace MCGalaxy.Gui {
|
||||
}
|
||||
}
|
||||
|
||||
void MessageBt_Click(object sender, EventArgs e) {
|
||||
void pl_BtnMessage_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) {
|
||||
void pl_BtnImpersonate_Click(object sender, EventArgs e) {
|
||||
if (curPlayer == null) { pl_statusBox.AppendTextAndScroll("No player selected"); return; }
|
||||
|
||||
try {
|
||||
@ -735,12 +742,12 @@ namespace MCGalaxy.Gui {
|
||||
}
|
||||
}
|
||||
|
||||
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 pl_BtnSlap_Click(object sender, EventArgs e) { DoCmd("slap", "Slapped"); }
|
||||
void pl_BtnKill_Click(object sender, EventArgs e) { DoCmd("kill", "Killed"); }
|
||||
void pl_BtnWarn_Click(object sender, EventArgs e) { DoCmd("warn", "Warned"); }
|
||||
void pl_BtnKick_Click(object sender, EventArgs e) { DoCmd("kick", "Kicked"); }
|
||||
void pl_BtnBan_Click(object sender, EventArgs e) { DoCmd("ban", "Banned"); }
|
||||
void pl_BtnIPBan_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; }
|
||||
@ -748,48 +755,38 @@ namespace MCGalaxy.Gui {
|
||||
pl_statusBox.AppendTextAndScroll(action + " player");
|
||||
}
|
||||
|
||||
void SendRulesTxt_Click(object sender, EventArgs e) {
|
||||
void pl_BtnRules_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) {
|
||||
void pl_BtnSpawn_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) {
|
||||
void pl_listBox_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 pl_txtImpersonate_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter) pl_BtnImpersonate_Click(sender, e);
|
||||
}
|
||||
void UndoTxt_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter) UndoBt_Click(sender, e);
|
||||
void pl_txtUndo_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter) pl_BtnUndo_Click(sender, e);
|
||||
}
|
||||
void PLayersMessageTxt_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter) MessageBt_Click(sender, e);
|
||||
void pl_txtMessage_KeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.KeyCode == Keys.Enter) pl_BtnMessage_Click(sender, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
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"); }
|
||||
#region Main tab log - context menu
|
||||
|
||||
#region Colored Reader Context Menu
|
||||
|
||||
void nightModeToolStripMenuItem_Click_1(object sender, EventArgs e) {
|
||||
void tsLog_Night_Click(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;
|
||||
|
||||
@ -797,31 +794,31 @@ namespace MCGalaxy.Gui {
|
||||
tsLog_night.Checked = !tsLog_night.Checked;
|
||||
}
|
||||
|
||||
void colorsToolStripMenuItem_Click_1(object sender, EventArgs e) {
|
||||
void tsLog_Colored_Click(object sender, EventArgs e) {
|
||||
main_txtLog.Colorize = !tsLog_Colored.Checked;
|
||||
tsLog_Colored.Checked = !tsLog_Colored.Checked;
|
||||
}
|
||||
|
||||
void dateStampToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsLog_DateStamp_Click(object sender, EventArgs e) {
|
||||
main_txtLog.DateStamp = !tsLog_dateStamp.Checked;
|
||||
tsLog_dateStamp.Checked = !tsLog_dateStamp.Checked;
|
||||
}
|
||||
|
||||
void autoScrollToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsLog_AutoScroll_Click(object sender, EventArgs e) {
|
||||
main_txtLog.AutoScroll = !tsLog_autoScroll.Checked;
|
||||
tsLog_autoScroll.Checked = !tsLog_autoScroll.Checked;
|
||||
}
|
||||
|
||||
void copySelectedToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsLog_CopySelected_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) {
|
||||
void tsLog_CopyAll_Click(object sender, EventArgs e) {
|
||||
Clipboard.SetText(main_txtLog.Text, TextDataFormat.Text);
|
||||
}
|
||||
|
||||
void clearToolStripMenuItem_Click(object sender, EventArgs e) {
|
||||
void tsLog_Clear_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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user