Designer:
- Now supports the exit command, prevents the designer from crashing. Runtime: - Added a GUI based set of buttons for traversing your environments via a click-through method instead of forcing users to type commands. Engine: - Added the Exit command to exit the runtime (At this time it shuts down the Designer as well.)
This commit is contained in:
parent
79f6d36083
commit
59502408ce
6 changed files with 245 additions and 56 deletions
153
Mud Designer/Runtime.Designer.cs
generated
153
Mud Designer/Runtime.Designer.cs
generated
|
@ -29,11 +29,26 @@
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||
this.txtConsole = new System.Windows.Forms.RichTextBox();
|
||||
this.txtCommand = new System.Windows.Forms.TextBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.btnLook = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnWest = new System.Windows.Forms.Button();
|
||||
this.btnEast = new System.Windows.Forms.Button();
|
||||
this.btnSouth = new System.Windows.Forms.Button();
|
||||
this.btnNorth = new System.Windows.Forms.Button();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.splitContainer2.Panel1.SuspendLayout();
|
||||
this.splitContainer2.Panel2.SuspendLayout();
|
||||
this.splitContainer2.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitContainer1
|
||||
|
@ -42,25 +57,44 @@
|
|||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.txtConsole);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.txtCommand);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(693, 422);
|
||||
this.splitContainer1.SplitterDistance = 393;
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox2);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(808, 564);
|
||||
this.splitContainer1.SplitterDistance = 564;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
// splitContainer2
|
||||
//
|
||||
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer2.Name = "splitContainer2";
|
||||
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer2.Panel1
|
||||
//
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtConsole);
|
||||
//
|
||||
// splitContainer2.Panel2
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.txtCommand);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(564, 564);
|
||||
this.splitContainer2.SplitterDistance = 535;
|
||||
this.splitContainer2.TabIndex = 1;
|
||||
//
|
||||
// txtConsole
|
||||
//
|
||||
this.txtConsole.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtConsole.Location = new System.Drawing.Point(0, 0);
|
||||
this.txtConsole.Name = "txtConsole";
|
||||
this.txtConsole.Size = new System.Drawing.Size(693, 393);
|
||||
this.txtConsole.Size = new System.Drawing.Size(564, 535);
|
||||
this.txtConsole.TabIndex = 0;
|
||||
this.txtConsole.Text = "";
|
||||
//
|
||||
|
@ -69,23 +103,114 @@
|
|||
this.txtCommand.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtCommand.Location = new System.Drawing.Point(0, 0);
|
||||
this.txtCommand.Name = "txtCommand";
|
||||
this.txtCommand.Size = new System.Drawing.Size(693, 20);
|
||||
this.txtCommand.Size = new System.Drawing.Size(564, 20);
|
||||
this.txtCommand.TabIndex = 1;
|
||||
this.txtCommand.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCommand_KeyDown);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.flowLayoutPanel1);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 144);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(240, 71);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Environment Commands";
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnLook);
|
||||
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 16);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(234, 52);
|
||||
this.flowLayoutPanel1.TabIndex = 0;
|
||||
//
|
||||
// btnLook
|
||||
//
|
||||
this.btnLook.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnLook.Name = "btnLook";
|
||||
this.btnLook.Size = new System.Drawing.Size(75, 45);
|
||||
this.btnLook.TabIndex = 1;
|
||||
this.btnLook.Text = "Look";
|
||||
this.btnLook.UseVisualStyleBackColor = true;
|
||||
this.btnLook.Click += new System.EventHandler(this.btnLook_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.btnWest);
|
||||
this.groupBox1.Controls.Add(this.btnEast);
|
||||
this.groupBox1.Controls.Add(this.btnSouth);
|
||||
this.groupBox1.Controls.Add(this.btnNorth);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(240, 144);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Travel Directions";
|
||||
//
|
||||
// btnWest
|
||||
//
|
||||
this.btnWest.Location = new System.Drawing.Point(3, 49);
|
||||
this.btnWest.Name = "btnWest";
|
||||
this.btnWest.Size = new System.Drawing.Size(75, 45);
|
||||
this.btnWest.TabIndex = 3;
|
||||
this.btnWest.Text = "West";
|
||||
this.btnWest.UseVisualStyleBackColor = true;
|
||||
this.btnWest.Click += new System.EventHandler(this.btnWest_Click);
|
||||
//
|
||||
// btnEast
|
||||
//
|
||||
this.btnEast.Location = new System.Drawing.Point(159, 49);
|
||||
this.btnEast.Name = "btnEast";
|
||||
this.btnEast.Size = new System.Drawing.Size(75, 45);
|
||||
this.btnEast.TabIndex = 2;
|
||||
this.btnEast.Text = "East";
|
||||
this.btnEast.UseVisualStyleBackColor = true;
|
||||
this.btnEast.Click += new System.EventHandler(this.btnEast_Click);
|
||||
//
|
||||
// btnSouth
|
||||
//
|
||||
this.btnSouth.Location = new System.Drawing.Point(81, 89);
|
||||
this.btnSouth.Name = "btnSouth";
|
||||
this.btnSouth.Size = new System.Drawing.Size(75, 45);
|
||||
this.btnSouth.TabIndex = 1;
|
||||
this.btnSouth.Text = "South";
|
||||
this.btnSouth.UseVisualStyleBackColor = true;
|
||||
this.btnSouth.Click += new System.EventHandler(this.btnSouth_Click);
|
||||
//
|
||||
// btnNorth
|
||||
//
|
||||
this.btnNorth.Location = new System.Drawing.Point(81, 12);
|
||||
this.btnNorth.Name = "btnNorth";
|
||||
this.btnNorth.Size = new System.Drawing.Size(75, 45);
|
||||
this.btnNorth.TabIndex = 0;
|
||||
this.btnNorth.Text = "North";
|
||||
this.btnNorth.UseVisualStyleBackColor = true;
|
||||
this.btnNorth.Click += new System.EventHandler(this.btnNorth_Click);
|
||||
//
|
||||
// Runtime
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(693, 422);
|
||||
this.ClientSize = new System.Drawing.Size(808, 564);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Name = "Runtime";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Runtime";
|
||||
this.Load += new System.EventHandler(this.Runtime_Load);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.PerformLayout();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||
this.splitContainer2.Panel2.PerformLayout();
|
||||
this.splitContainer2.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -93,7 +218,17 @@
|
|||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.SplitContainer splitContainer2;
|
||||
private System.Windows.Forms.RichTextBox txtConsole;
|
||||
private System.Windows.Forms.TextBox txtCommand;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Button btnNorth;
|
||||
private System.Windows.Forms.Button btnWest;
|
||||
private System.Windows.Forms.Button btnEast;
|
||||
private System.Windows.Forms.Button btnSouth;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||
private System.Windows.Forms.Button btnLook;
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue