Test Designer:
- Now allows for saving and loading of ProjectInformation and Currencies. - Realm Explorer control created for future Visual World system.
This commit is contained in:
parent
6227b3f690
commit
60aa7d8c33
5 changed files with 173 additions and 28 deletions
60
Mud Designer/Designer.Designer.cs
generated
60
Mud Designer/Designer.Designer.cs
generated
|
@ -29,7 +29,7 @@
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Game Objects");
|
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Game Objects");
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Designer));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Designer));
|
||||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||||
this.mnuFile = new System.Windows.Forms.ToolStripMenuItem();
|
this.mnuFile = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
@ -83,7 +83,12 @@
|
||||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.btnValidate = new System.Windows.Forms.ToolStripButton();
|
this.btnValidate = new System.Windows.Forms.ToolStripButton();
|
||||||
this.propertyObject = new System.Windows.Forms.PropertyGrid();
|
this.propertyObject = new System.Windows.Forms.PropertyGrid();
|
||||||
|
this.currencyEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.realmExplorer1 = new MudDesigner.UIControls.RealmExplorer();
|
||||||
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
|
this.mnuEditObject = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
|
this.containerMain.Panel1.SuspendLayout();
|
||||||
this.containerMain.Panel2.SuspendLayout();
|
this.containerMain.Panel2.SuspendLayout();
|
||||||
this.containerMain.SuspendLayout();
|
this.containerMain.SuspendLayout();
|
||||||
this.containerSidebar.Panel1.SuspendLayout();
|
this.containerSidebar.Panel1.SuspendLayout();
|
||||||
|
@ -91,6 +96,7 @@
|
||||||
this.containerSidebar.SuspendLayout();
|
this.containerSidebar.SuspendLayout();
|
||||||
this.toolStrip1.SuspendLayout();
|
this.toolStrip1.SuspendLayout();
|
||||||
this.toolstripObjectProperties.SuspendLayout();
|
this.toolstripObjectProperties.SuspendLayout();
|
||||||
|
this.contextMenuStrip1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// menuStrip1
|
// menuStrip1
|
||||||
|
@ -117,7 +123,7 @@
|
||||||
// mnuExit
|
// mnuExit
|
||||||
//
|
//
|
||||||
this.mnuExit.Name = "mnuExit";
|
this.mnuExit.Name = "mnuExit";
|
||||||
this.mnuExit.Size = new System.Drawing.Size(152, 22);
|
this.mnuExit.Size = new System.Drawing.Size(92, 22);
|
||||||
this.mnuExit.Text = "Exit";
|
this.mnuExit.Text = "Exit";
|
||||||
//
|
//
|
||||||
// mnuEdit
|
// mnuEdit
|
||||||
|
@ -229,6 +235,7 @@
|
||||||
// mnuGameManagement
|
// mnuGameManagement
|
||||||
//
|
//
|
||||||
this.mnuGameManagement.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.mnuGameManagement.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.currencyEditorToolStripMenuItem,
|
||||||
this.mnuProjectInformation,
|
this.mnuProjectInformation,
|
||||||
this.mnuQuestBuilder});
|
this.mnuQuestBuilder});
|
||||||
this.mnuGameManagement.Name = "mnuGameManagement";
|
this.mnuGameManagement.Name = "mnuGameManagement";
|
||||||
|
@ -365,6 +372,10 @@
|
||||||
this.containerMain.Location = new System.Drawing.Point(0, 24);
|
this.containerMain.Location = new System.Drawing.Point(0, 24);
|
||||||
this.containerMain.Name = "containerMain";
|
this.containerMain.Name = "containerMain";
|
||||||
//
|
//
|
||||||
|
// containerMain.Panel1
|
||||||
|
//
|
||||||
|
this.containerMain.Panel1.Controls.Add(this.realmExplorer1);
|
||||||
|
//
|
||||||
// containerMain.Panel2
|
// containerMain.Panel2
|
||||||
//
|
//
|
||||||
this.containerMain.Panel2.Controls.Add(this.containerSidebar);
|
this.containerMain.Panel2.Controls.Add(this.containerSidebar);
|
||||||
|
@ -397,13 +408,14 @@
|
||||||
//
|
//
|
||||||
// treeExplorer
|
// treeExplorer
|
||||||
//
|
//
|
||||||
|
this.treeExplorer.ContextMenuStrip = this.contextMenuStrip1;
|
||||||
this.treeExplorer.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.treeExplorer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.treeExplorer.Location = new System.Drawing.Point(0, 38);
|
this.treeExplorer.Location = new System.Drawing.Point(0, 38);
|
||||||
this.treeExplorer.Name = "treeExplorer";
|
this.treeExplorer.Name = "treeExplorer";
|
||||||
treeNode4.Name = "nodeGameObjects";
|
treeNode1.Name = "nodeGameObjects";
|
||||||
treeNode4.Text = "Game Objects";
|
treeNode1.Text = "Game Objects";
|
||||||
this.treeExplorer.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
this.treeExplorer.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||||
treeNode4});
|
treeNode1});
|
||||||
this.treeExplorer.Size = new System.Drawing.Size(252, 204);
|
this.treeExplorer.Size = new System.Drawing.Size(252, 204);
|
||||||
this.treeExplorer.TabIndex = 5;
|
this.treeExplorer.TabIndex = 5;
|
||||||
//
|
//
|
||||||
|
@ -429,6 +441,7 @@
|
||||||
this.btnRefreshObjects.Size = new System.Drawing.Size(93, 22);
|
this.btnRefreshObjects.Size = new System.Drawing.Size(93, 22);
|
||||||
this.btnRefreshObjects.Text = "Refresh Objects";
|
this.btnRefreshObjects.Text = "Refresh Objects";
|
||||||
this.btnRefreshObjects.ToolTipText = "Save the current object";
|
this.btnRefreshObjects.ToolTipText = "Save the current object";
|
||||||
|
this.btnRefreshObjects.Click += new System.EventHandler(this.btnRefreshObjects_Click);
|
||||||
//
|
//
|
||||||
// toolStripSeparator2
|
// toolStripSeparator2
|
||||||
//
|
//
|
||||||
|
@ -516,6 +529,37 @@
|
||||||
this.propertyObject.TabIndex = 5;
|
this.propertyObject.TabIndex = 5;
|
||||||
this.propertyObject.ToolbarVisible = false;
|
this.propertyObject.ToolbarVisible = false;
|
||||||
//
|
//
|
||||||
|
// currencyEditorToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.currencyEditorToolStripMenuItem.Name = "currencyEditorToolStripMenuItem";
|
||||||
|
this.currencyEditorToolStripMenuItem.Size = new System.Drawing.Size(177, 22);
|
||||||
|
this.currencyEditorToolStripMenuItem.Text = "Currency Editor";
|
||||||
|
this.currencyEditorToolStripMenuItem.Click += new System.EventHandler(this.currencyEditorToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// realmExplorer1
|
||||||
|
//
|
||||||
|
this.realmExplorer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
|
this.realmExplorer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.realmExplorer1.IsSplashVisible = true;
|
||||||
|
this.realmExplorer1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.realmExplorer1.Name = "realmExplorer1";
|
||||||
|
this.realmExplorer1.Size = new System.Drawing.Size(526, 540);
|
||||||
|
this.realmExplorer1.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// contextMenuStrip1
|
||||||
|
//
|
||||||
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.mnuEditObject});
|
||||||
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||||
|
this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48);
|
||||||
|
//
|
||||||
|
// mnuEditObject
|
||||||
|
//
|
||||||
|
this.mnuEditObject.Name = "mnuEditObject";
|
||||||
|
this.mnuEditObject.Size = new System.Drawing.Size(152, 22);
|
||||||
|
this.mnuEditObject.Text = "Edit Object";
|
||||||
|
this.mnuEditObject.Click += new System.EventHandler(this.mnuEditObject_Click);
|
||||||
|
//
|
||||||
// Designer
|
// Designer
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -529,6 +573,7 @@
|
||||||
this.Text = "Mud Designer Replacement Test";
|
this.Text = "Mud Designer Replacement Test";
|
||||||
this.menuStrip1.ResumeLayout(false);
|
this.menuStrip1.ResumeLayout(false);
|
||||||
this.menuStrip1.PerformLayout();
|
this.menuStrip1.PerformLayout();
|
||||||
|
this.containerMain.Panel1.ResumeLayout(false);
|
||||||
this.containerMain.Panel2.ResumeLayout(false);
|
this.containerMain.Panel2.ResumeLayout(false);
|
||||||
this.containerMain.ResumeLayout(false);
|
this.containerMain.ResumeLayout(false);
|
||||||
this.containerSidebar.Panel1.ResumeLayout(false);
|
this.containerSidebar.Panel1.ResumeLayout(false);
|
||||||
|
@ -540,6 +585,7 @@
|
||||||
this.toolStrip1.PerformLayout();
|
this.toolStrip1.PerformLayout();
|
||||||
this.toolstripObjectProperties.ResumeLayout(false);
|
this.toolstripObjectProperties.ResumeLayout(false);
|
||||||
this.toolstripObjectProperties.PerformLayout();
|
this.toolstripObjectProperties.PerformLayout();
|
||||||
|
this.contextMenuStrip1.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
|
@ -599,6 +645,10 @@
|
||||||
private System.Windows.Forms.ToolStripButton btnValidate;
|
private System.Windows.Forms.ToolStripButton btnValidate;
|
||||||
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label label2;
|
||||||
private System.Windows.Forms.PropertyGrid propertyObject;
|
private System.Windows.Forms.PropertyGrid propertyObject;
|
||||||
|
private MudDesigner.UIControls.RealmExplorer realmExplorer1;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem currencyEditorToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem mnuEditObject;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,18 +28,18 @@ namespace MudDesigner
|
||||||
//instance a baseObject so that we can store inherited classes
|
//instance a baseObject so that we can store inherited classes
|
||||||
//for use during our runtime
|
//for use during our runtime
|
||||||
_GameObject = new BaseObject();
|
_GameObject = new BaseObject();
|
||||||
|
_Project = new ProjectInformation();
|
||||||
|
|
||||||
//Get out saved project file
|
//Get out saved project file
|
||||||
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
||||||
string projectFilename = Path.Combine(projectPath, "Game.xml");
|
string projectFilename = Path.Combine(projectPath, "Game.xml");
|
||||||
|
|
||||||
//Check if the project directory exists
|
//Check if the project directory exists
|
||||||
if (!Directory.Exists(projectPath))
|
ValidatePath(projectPath);
|
||||||
Directory.CreateDirectory(projectPath);
|
|
||||||
|
|
||||||
//Check if the project file exists. If so load it
|
//Check if the project file exists. If so load it
|
||||||
if (File.Exists(projectFilename))
|
if (File.Exists(projectFilename))
|
||||||
_Project = (ProjectInformation)FileManager.Load(projectPath, _Project);
|
_Project = (ProjectInformation)FileManager.Load(projectFilename, _Project);
|
||||||
else
|
else
|
||||||
_Project = new ProjectInformation();
|
_Project = new ProjectInformation();
|
||||||
|
|
||||||
|
@ -57,12 +57,18 @@ namespace MudDesigner
|
||||||
|
|
||||||
private void btnSaveObject_Click(object sender, EventArgs e)
|
private void btnSaveObject_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
//Get the object Type
|
||||||
Type t = propertyObject.SelectedObject.GetType();
|
Type t = propertyObject.SelectedObject.GetType();
|
||||||
|
//We can use to get a copy of the currently selected object
|
||||||
|
//if it is a BaseObject (Aquire it's BaseObject.Filename)
|
||||||
BaseObject obj = new BaseObject();
|
BaseObject obj = new BaseObject();
|
||||||
|
|
||||||
|
//Filepaths
|
||||||
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
||||||
string objectPath = "";
|
string objectPath = "";
|
||||||
string filename = "";
|
string filename = "";
|
||||||
|
|
||||||
|
//Start checking to see what object we are saving
|
||||||
if (t == typeof(ProjectInformation))
|
if (t == typeof(ProjectInformation))
|
||||||
{
|
{
|
||||||
filename = Path.Combine(projectPath, "Game.xml");
|
filename = Path.Combine(projectPath, "Game.xml");
|
||||||
|
@ -76,12 +82,88 @@ namespace MudDesigner
|
||||||
filename = Path.Combine(objectPath, obj.Filename);
|
filename = Path.Combine(objectPath, obj.Filename);
|
||||||
FileManager.Save(filename, obj);
|
FileManager.Save(filename, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btnRefreshObjects_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ValidatePath(string path)
|
private void ValidatePath(string path)
|
||||||
{
|
{
|
||||||
if (!Directory.Exists(path))
|
if (!Directory.Exists(path))
|
||||||
Directory.CreateDirectory(path);
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
||||||
|
|
||||||
|
btnRefreshObjects_Click(null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PopulateTree(string dir, TreeNode node)
|
||||||
|
{
|
||||||
|
// get the information of the directory
|
||||||
|
DirectoryInfo directory = new DirectoryInfo(dir);
|
||||||
|
|
||||||
|
// loop through each subdirectory
|
||||||
|
foreach (DirectoryInfo d in directory.GetDirectories())
|
||||||
|
{
|
||||||
|
// create a new node
|
||||||
|
TreeNode t = new TreeNode(d.Name);
|
||||||
|
// populate the new node recursively
|
||||||
|
PopulateTree(d.FullName, t);
|
||||||
|
node.Nodes.Add(t); // add the node to the "master" node
|
||||||
|
}
|
||||||
|
// lastly, loop through each file in the directory, and add these as nodes
|
||||||
|
foreach (FileInfo f in directory.GetFiles())
|
||||||
|
{
|
||||||
|
// create a new node
|
||||||
|
TreeNode t = new TreeNode(f.Name);
|
||||||
|
// add it to the "master"
|
||||||
|
node.Nodes.Add(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
treeExplorer.SelectedNode = node;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnRefreshObjects_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
treeExplorer.Nodes.Clear();
|
||||||
|
TreeNode node = new TreeNode("Game Objects");
|
||||||
|
treeExplorer.Nodes.Add(node);
|
||||||
|
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
||||||
|
PopulateTree(projectPath, node);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LoadObject(TreeNode selectedNode)
|
||||||
|
{
|
||||||
|
string projectPath = Path.Combine(Application.StartupPath, "Project");
|
||||||
|
string objectPath = "";
|
||||||
|
string objectFilename = "";
|
||||||
|
|
||||||
|
switch(selectedNode.Parent.Text)
|
||||||
|
{
|
||||||
|
case "Game Objects":
|
||||||
|
if (selectedNode.Text == "Game.xml")
|
||||||
|
{
|
||||||
|
objectFilename = Path.Combine(projectPath, selectedNode.Text);
|
||||||
|
propertyObject.SelectedObject = (ProjectInformation)FileManager.Load(objectFilename, new ProjectInformation());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Currencies":
|
||||||
|
objectPath = Path.Combine(projectPath, selectedNode.Parent.Text);
|
||||||
|
objectFilename = Path.Combine(objectPath, selectedNode.Text);
|
||||||
|
propertyObject.SelectedObject = (Currency)FileManager.Load(objectFilename, new Currency());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void currencyEditorToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Currency obj = new Currency();
|
||||||
|
propertyObject.SelectedObject = obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void mnuEditObject_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LoadObject(treeExplorer.SelectedNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,15 +118,33 @@
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>19, 12</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>710, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>417, 17</value>
|
<value>417, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="btnRefreshObjects.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||||
|
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL
|
||||||
|
U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI
|
||||||
|
VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ
|
||||||
|
QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4
|
||||||
|
/g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9
|
||||||
|
cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j
|
||||||
|
3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR
|
||||||
|
dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb
|
||||||
|
NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE
|
||||||
|
s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
<metadata name="toolstripObjectProperties.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolstripObjectProperties.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>522, 17</value>
|
<value>522, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<data name="btnSaveObject.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="btnSaveObject.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||||
|
@ -155,21 +173,6 @@
|
||||||
dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb
|
dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb
|
||||||
NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE
|
NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE
|
||||||
s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC
|
s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC
|
||||||
</value>
|
|
||||||
</data>
|
|
||||||
<data name="btnRefreshObjects.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>
|
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
|
||||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAgxJREFUOE+lkvtL
|
|
||||||
U2EYx+0PEbtpFwnBKPGKiJImGP0gYhIYs1E5GF5gIxkpA00JRSmMEF0ohMh+GaRWYlqabMVcNdS2QpaI
|
|
||||||
VqiDIYhk397vA6fXhCjyhYdzeM/5fp7vczkAdeL2cwho7v/wWzT1zcN+Pwhr51uY2/y41PQaF+wzKKiZ
|
|
||||||
QvaN58g0jyLd5KEUcQbg+84P/Cm2tncQjW3j68YWIqubCC3FcOJc478BAuGoZM6zvoRnakXEruEIjhc4
|
|
||||||
/g5gZop9c+voGAyLbQIfeBZxLL9BA1jzXvuGbWamuKh+GmmVbswE19A59FEBbmoAG7YbsLtm2mZmiml9
|
|
||||||
cvabNDwpz6YB7LYBoMXCumkJr7LOmnnHzBQ/9X2Bo2cOibm1GsBREbAQiYmw/8lnuCeWkVzcgnZlnw1j
|
|
||||||
3HV/wuNXK6i/9x5Hc6wawDlTXHbLJ+LZUBQPRyKwdQdxutwl1h+NLXHh5Ht1ewBHsiwawCW57HyDAfWR
|
|
||||||
dvl0uhZQ1eqX8aVc7EKLqrum651ATLf9OJx5XQM4KmY0xPzZ0hFAiQJnXB0WwME0E3IsL5B17ZlADqWb
|
|
||||||
NYDrOepdlcysmTWWOrxqbceRWtaLk0VO1XW72D5Vckd2gMBfq8zdpmUG62NJvKM4+XyziDk24xmfWoGE
|
|
||||||
s1c0gHPmbrPTpHNJKOCo2G1mZs20zcwUJ5yp1AB5+8/zEwgF5GMVDxh4AAAAAElFTkSuQmCC
|
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
|
|
@ -193,6 +193,10 @@
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="UIControls\RealmExplorer.resx">
|
||||||
|
<DependentUpon>RealmExplorer.cs</DependentUpon>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
@ -210,6 +214,12 @@
|
||||||
<Compile Include="MudEngine\FileSystem\XmlSerialization.cs" />
|
<Compile Include="MudEngine\FileSystem\XmlSerialization.cs" />
|
||||||
<Compile Include="Settings.cs" />
|
<Compile Include="Settings.cs" />
|
||||||
<Compile Include="MudEngine\UITypeEditors\UIScriptEditor.cs" />
|
<Compile Include="MudEngine\UITypeEditors\UIScriptEditor.cs" />
|
||||||
|
<Compile Include="UIControls\RealmExplorer.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UIControls\RealmExplorer.Designer.cs">
|
||||||
|
<DependentUpon>RealmExplorer.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace MudDesigner.MudEngine.GameObjects
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
this._Name = value;
|
this._Name = value;
|
||||||
this.Filename = value + "." + this.GetType().Name.ToLower();
|
this.Filename = value + ".xml";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace MudDesigner.MudEngine.GameObjects
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
string extension = "." + this.GetType().Name.ToLower();
|
string extension = ".xml";
|
||||||
if (!value.EndsWith(extension))
|
if (!value.EndsWith(extension))
|
||||||
value += extension;
|
value += extension;
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ namespace MudDesigner.MudEngine.GameObjects
|
||||||
{
|
{
|
||||||
Script = "";
|
Script = "";
|
||||||
_Name = "New " + this.GetType().Name;
|
_Name = "New " + this.GetType().Name;
|
||||||
_Filename = _Name + "." + this.GetType().Name.ToLower();
|
_Filename = _Name + ".xml";
|
||||||
|
|
||||||
this.Feel = "You feel nothing.";
|
this.Feel = "You feel nothing.";
|
||||||
this.Listen = "You hear nothing of interest.";
|
this.Listen = "You hear nothing of interest.";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue