MUD Engine:
- Changed ValidateProjectPath to ValidateDataPaths. Now can use the engines current install location if a path is not supplied - ValidateDataPaths iterates through a new enumerator containing all of the data paths, and creates the directories if they dont exist. - GetDataPath method added for returning the absolute path to any of the save directories specified in the argument. - BaseObject now contains a readonly Filename property that returns the objects Name with it's Type assigned as the files extension. - BaseObject's Script property was added. - Room.StatDrain re-added. Changed property Type to boolean instead of custom struct. - Room Designer's constructor code was refracted to help clean it up. Plugin loading, doorway list compiling and room setup is now contained in three different methods. - Room Designer can now Save scripts. - Room Designer now has default scripts generated. - Changing the Object Management tabs to 'Script' now refreshes the script to display correctly. - Room Designer now accepts a single argument for specifying the name of a room to Load. Use "room=Room Name.room" as the syntax. - Room loading is implemented, but only via a supplied argument during application launch.
This commit is contained in:
parent
d7d92e49af
commit
1cc477f23c
13 changed files with 489 additions and 317 deletions
278
RoomDesigner/frmMain.Designer.cs
generated
278
RoomDesigner/frmMain.Designer.cs
generated
|
@ -43,26 +43,18 @@
|
|||
this.tabBooks = new System.Windows.Forms.TabPage();
|
||||
this.tabEquipment = new System.Windows.Forms.TabPage();
|
||||
this.tabItems = new System.Windows.Forms.TabPage();
|
||||
this.tabScript = new System.Windows.Forms.TabPage();
|
||||
this.tabControl2 = new System.Windows.Forms.TabControl();
|
||||
this.tabFunctions = new System.Windows.Forms.TabPage();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.txtScript = new System.Windows.Forms.RichTextBox();
|
||||
this.tabVariables = new System.Windows.Forms.TabPage();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox7 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox10 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyDoor = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.lstDirections = new System.Windows.Forms.ListBox();
|
||||
this.tabScript = new System.Windows.Forms.TabPage();
|
||||
this.tabControl2 = new System.Windows.Forms.TabControl();
|
||||
this.tabFunctions = new System.Windows.Forms.TabPage();
|
||||
this.tabVariables = new System.Windows.Forms.TabPage();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.txtScript = new System.Windows.Forms.RichTextBox();
|
||||
this.groupBox11 = new System.Windows.Forms.GroupBox();
|
||||
this.comFunctions = new System.Windows.Forms.ComboBox();
|
||||
this.groupBox9 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox13 = new System.Windows.Forms.GroupBox();
|
||||
this.txtFunctionName = new System.Windows.Forms.TextBox();
|
||||
this.groupBox12 = new System.Windows.Forms.GroupBox();
|
||||
this.comReturnTypes = new System.Windows.Forms.ComboBox();
|
||||
this.groupBox14 = new System.Windows.Forms.GroupBox();
|
||||
this.containerMain.Panel1.SuspendLayout();
|
||||
this.containerMain.Panel2.SuspendLayout();
|
||||
this.containerMain.SuspendLayout();
|
||||
|
@ -76,18 +68,14 @@
|
|||
this.containerDesigner.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.groupBox10.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.tabScript.SuspendLayout();
|
||||
this.tabControl2.SuspendLayout();
|
||||
this.tabFunctions.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.groupBox11.SuspendLayout();
|
||||
this.groupBox9.SuspendLayout();
|
||||
this.groupBox13.SuspendLayout();
|
||||
this.groupBox12.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.groupBox10.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// containerMain
|
||||
|
@ -155,6 +143,7 @@
|
|||
this.btnSaveRoom.TabIndex = 1;
|
||||
this.btnSaveRoom.Text = "Save Room";
|
||||
this.btnSaveRoom.UseVisualStyleBackColor = true;
|
||||
this.btnSaveRoom.Click += new System.EventHandler(this.btnSaveRoom_Click);
|
||||
//
|
||||
// btnNewRoom
|
||||
//
|
||||
|
@ -195,6 +184,7 @@
|
|||
this.propertyRoom.Name = "propertyRoom";
|
||||
this.propertyRoom.Size = new System.Drawing.Size(230, 430);
|
||||
this.propertyRoom.TabIndex = 3;
|
||||
this.propertyRoom.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyRoom_PropertyValueChanged);
|
||||
//
|
||||
// containerDesigner
|
||||
//
|
||||
|
@ -237,13 +227,14 @@
|
|||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(542, 299);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
|
||||
//
|
||||
// tabBooks
|
||||
//
|
||||
this.tabBooks.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabBooks.Name = "tabBooks";
|
||||
this.tabBooks.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabBooks.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabBooks.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabBooks.TabIndex = 0;
|
||||
this.tabBooks.Text = "Books";
|
||||
this.tabBooks.UseVisualStyleBackColor = true;
|
||||
|
@ -253,7 +244,7 @@
|
|||
this.tabEquipment.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabEquipment.Name = "tabEquipment";
|
||||
this.tabEquipment.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabEquipment.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabEquipment.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabEquipment.TabIndex = 1;
|
||||
this.tabEquipment.Text = "Equipment";
|
||||
this.tabEquipment.UseVisualStyleBackColor = true;
|
||||
|
@ -262,11 +253,73 @@
|
|||
//
|
||||
this.tabItems.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabItems.Name = "tabItems";
|
||||
this.tabItems.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabItems.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabItems.TabIndex = 2;
|
||||
this.tabItems.Text = "Items";
|
||||
this.tabItems.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabScript
|
||||
//
|
||||
this.tabScript.Controls.Add(this.tabControl2);
|
||||
this.tabScript.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabScript.Name = "tabScript";
|
||||
this.tabScript.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabScript.TabIndex = 3;
|
||||
this.tabScript.Text = "Script";
|
||||
this.tabScript.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl2
|
||||
//
|
||||
this.tabControl2.Controls.Add(this.tabFunctions);
|
||||
this.tabControl2.Controls.Add(this.tabVariables);
|
||||
this.tabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabControl2.Name = "tabControl2";
|
||||
this.tabControl2.SelectedIndex = 0;
|
||||
this.tabControl2.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabControl2.TabIndex = 0;
|
||||
//
|
||||
// tabFunctions
|
||||
//
|
||||
this.tabFunctions.Controls.Add(this.groupBox8);
|
||||
this.tabFunctions.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabFunctions.Name = "tabFunctions";
|
||||
this.tabFunctions.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabFunctions.Size = new System.Drawing.Size(526, 247);
|
||||
this.tabFunctions.TabIndex = 0;
|
||||
this.tabFunctions.Text = "Functions";
|
||||
this.tabFunctions.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox8
|
||||
//
|
||||
this.groupBox8.Controls.Add(this.txtScript);
|
||||
this.groupBox8.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox8.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBox8.Name = "groupBox8";
|
||||
this.groupBox8.Size = new System.Drawing.Size(520, 241);
|
||||
this.groupBox8.TabIndex = 2;
|
||||
this.groupBox8.TabStop = false;
|
||||
this.groupBox8.Text = "Room Script";
|
||||
//
|
||||
// txtScript
|
||||
//
|
||||
this.txtScript.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtScript.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtScript.Name = "txtScript";
|
||||
this.txtScript.Size = new System.Drawing.Size(514, 222);
|
||||
this.txtScript.TabIndex = 0;
|
||||
this.txtScript.Text = "";
|
||||
//
|
||||
// tabVariables
|
||||
//
|
||||
this.tabVariables.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabVariables.Name = "tabVariables";
|
||||
this.tabVariables.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabVariables.Size = new System.Drawing.Size(526, 247);
|
||||
this.tabVariables.TabIndex = 1;
|
||||
this.tabVariables.Text = "Variables";
|
||||
this.tabVariables.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.groupBox7);
|
||||
|
@ -331,160 +384,6 @@
|
|||
this.lstDirections.TabIndex = 0;
|
||||
this.lstDirections.SelectedIndexChanged += new System.EventHandler(this.lstDirections_SelectedIndexChanged);
|
||||
//
|
||||
// tabScript
|
||||
//
|
||||
this.tabScript.Controls.Add(this.tabControl2);
|
||||
this.tabScript.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabScript.Name = "tabScript";
|
||||
this.tabScript.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabScript.TabIndex = 3;
|
||||
this.tabScript.Text = "Script";
|
||||
this.tabScript.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl2
|
||||
//
|
||||
this.tabControl2.Controls.Add(this.tabFunctions);
|
||||
this.tabControl2.Controls.Add(this.tabVariables);
|
||||
this.tabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl2.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabControl2.Name = "tabControl2";
|
||||
this.tabControl2.SelectedIndex = 0;
|
||||
this.tabControl2.Size = new System.Drawing.Size(534, 273);
|
||||
this.tabControl2.TabIndex = 0;
|
||||
//
|
||||
// tabFunctions
|
||||
//
|
||||
this.tabFunctions.Controls.Add(this.groupBox9);
|
||||
this.tabFunctions.Controls.Add(this.groupBox8);
|
||||
this.tabFunctions.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabFunctions.Name = "tabFunctions";
|
||||
this.tabFunctions.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabFunctions.Size = new System.Drawing.Size(526, 247);
|
||||
this.tabFunctions.TabIndex = 0;
|
||||
this.tabFunctions.Text = "Functions";
|
||||
this.tabFunctions.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabVariables
|
||||
//
|
||||
this.tabVariables.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabVariables.Name = "tabVariables";
|
||||
this.tabVariables.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabVariables.Size = new System.Drawing.Size(526, 247);
|
||||
this.tabVariables.TabIndex = 1;
|
||||
this.tabVariables.Text = "Variables";
|
||||
this.tabVariables.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox8
|
||||
//
|
||||
this.groupBox8.Controls.Add(this.txtScript);
|
||||
this.groupBox8.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox8.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBox8.Name = "groupBox8";
|
||||
this.groupBox8.Size = new System.Drawing.Size(359, 241);
|
||||
this.groupBox8.TabIndex = 2;
|
||||
this.groupBox8.TabStop = false;
|
||||
this.groupBox8.Text = "Room Script";
|
||||
//
|
||||
// txtScript
|
||||
//
|
||||
this.txtScript.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtScript.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtScript.Name = "txtScript";
|
||||
this.txtScript.Size = new System.Drawing.Size(353, 222);
|
||||
this.txtScript.TabIndex = 0;
|
||||
this.txtScript.Text = "";
|
||||
//
|
||||
// groupBox11
|
||||
//
|
||||
this.groupBox11.Controls.Add(this.comFunctions);
|
||||
this.groupBox11.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox11.Location = new System.Drawing.Point(3, 16);
|
||||
this.groupBox11.Name = "groupBox11";
|
||||
this.groupBox11.Size = new System.Drawing.Size(152, 41);
|
||||
this.groupBox11.TabIndex = 0;
|
||||
this.groupBox11.TabStop = false;
|
||||
this.groupBox11.Text = "Existing Functions";
|
||||
//
|
||||
// comFunctions
|
||||
//
|
||||
this.comFunctions.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.comFunctions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.comFunctions.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.comFunctions.FormattingEnabled = true;
|
||||
this.comFunctions.Location = new System.Drawing.Point(3, 16);
|
||||
this.comFunctions.Name = "comFunctions";
|
||||
this.comFunctions.Size = new System.Drawing.Size(146, 21);
|
||||
this.comFunctions.Sorted = true;
|
||||
this.comFunctions.TabIndex = 0;
|
||||
//
|
||||
// groupBox9
|
||||
//
|
||||
this.groupBox9.Controls.Add(this.groupBox14);
|
||||
this.groupBox9.Controls.Add(this.groupBox12);
|
||||
this.groupBox9.Controls.Add(this.groupBox13);
|
||||
this.groupBox9.Controls.Add(this.groupBox11);
|
||||
this.groupBox9.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.groupBox9.Location = new System.Drawing.Point(365, 3);
|
||||
this.groupBox9.Name = "groupBox9";
|
||||
this.groupBox9.Size = new System.Drawing.Size(158, 241);
|
||||
this.groupBox9.TabIndex = 3;
|
||||
this.groupBox9.TabStop = false;
|
||||
this.groupBox9.Text = "Script Setup";
|
||||
//
|
||||
// groupBox13
|
||||
//
|
||||
this.groupBox13.Controls.Add(this.txtFunctionName);
|
||||
this.groupBox13.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox13.Location = new System.Drawing.Point(3, 57);
|
||||
this.groupBox13.Name = "groupBox13";
|
||||
this.groupBox13.Size = new System.Drawing.Size(152, 41);
|
||||
this.groupBox13.TabIndex = 6;
|
||||
this.groupBox13.TabStop = false;
|
||||
this.groupBox13.Text = "Function Name";
|
||||
//
|
||||
// txtFunctionName
|
||||
//
|
||||
this.txtFunctionName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtFunctionName.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtFunctionName.Name = "txtFunctionName";
|
||||
this.txtFunctionName.Size = new System.Drawing.Size(146, 20);
|
||||
this.txtFunctionName.TabIndex = 0;
|
||||
//
|
||||
// groupBox12
|
||||
//
|
||||
this.groupBox12.Controls.Add(this.comReturnTypes);
|
||||
this.groupBox12.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox12.Location = new System.Drawing.Point(3, 98);
|
||||
this.groupBox12.Name = "groupBox12";
|
||||
this.groupBox12.Size = new System.Drawing.Size(152, 41);
|
||||
this.groupBox12.TabIndex = 7;
|
||||
this.groupBox12.TabStop = false;
|
||||
this.groupBox12.Text = "Returnable Types";
|
||||
//
|
||||
// comReturnTypes
|
||||
//
|
||||
this.comReturnTypes.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.comReturnTypes.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.comReturnTypes.FormattingEnabled = true;
|
||||
this.comReturnTypes.Items.AddRange(new object[] {
|
||||
"bool",
|
||||
"int",
|
||||
"string"});
|
||||
this.comReturnTypes.Location = new System.Drawing.Point(3, 16);
|
||||
this.comReturnTypes.Name = "comReturnTypes";
|
||||
this.comReturnTypes.Size = new System.Drawing.Size(146, 21);
|
||||
this.comReturnTypes.Sorted = true;
|
||||
this.comReturnTypes.TabIndex = 0;
|
||||
//
|
||||
// groupBox14
|
||||
//
|
||||
this.groupBox14.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.groupBox14.Location = new System.Drawing.Point(3, 139);
|
||||
this.groupBox14.Name = "groupBox14";
|
||||
this.groupBox14.Size = new System.Drawing.Size(152, 96);
|
||||
this.groupBox14.TabIndex = 8;
|
||||
this.groupBox14.TabStop = false;
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -510,19 +409,14 @@
|
|||
this.containerDesigner.ResumeLayout(false);
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.groupBox10.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.tabScript.ResumeLayout(false);
|
||||
this.tabControl2.ResumeLayout(false);
|
||||
this.tabFunctions.ResumeLayout(false);
|
||||
this.groupBox8.ResumeLayout(false);
|
||||
this.groupBox11.ResumeLayout(false);
|
||||
this.groupBox9.ResumeLayout(false);
|
||||
this.groupBox13.ResumeLayout(false);
|
||||
this.groupBox13.PerformLayout();
|
||||
this.groupBox12.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.groupBox10.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -556,14 +450,6 @@
|
|||
private System.Windows.Forms.GroupBox groupBox8;
|
||||
private System.Windows.Forms.RichTextBox txtScript;
|
||||
private System.Windows.Forms.TabPage tabVariables;
|
||||
private System.Windows.Forms.GroupBox groupBox9;
|
||||
private System.Windows.Forms.GroupBox groupBox14;
|
||||
private System.Windows.Forms.GroupBox groupBox12;
|
||||
private System.Windows.Forms.ComboBox comReturnTypes;
|
||||
private System.Windows.Forms.GroupBox groupBox13;
|
||||
private System.Windows.Forms.TextBox txtFunctionName;
|
||||
private System.Windows.Forms.GroupBox groupBox11;
|
||||
private System.Windows.Forms.ComboBox comFunctions;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue