Visual Designer:

- Deleted from Solution.

Mud Designer:
 - Now checks for arguments, allowing the other editors to launch the Mud Designer with another editor supplied as an argument, allowing one editor to launch another one without needing to copy-paste a bunch of code.

MUD Engine:
 - BaseObject now sets default values for Script and Name so it's child classes won't need to.
 - Realm and Room no longer set Name and Script property default values.

Realm Explorer:
 - Now validates Script code.
 - Changed from using Managed Scripting Serialization to MUDEngine filesystem layer for saving/loading.
 - Added support for launching the Zone Builder from within the Realm Explorer.

Room Designer:
 - Changed from using Managed Scripting Serialization code, to MUD Engine Filesystem layer for saving/loading.

Zone Builder:
 - Initial UI Designs
 - Launches Room Designer for editing of rooms.
This commit is contained in:
Scionwest_cp 2009-11-28 00:30:40 -08:00
parent 0b350c3222
commit 24b5c3f687
23 changed files with 432 additions and 1130 deletions

View file

@ -80,6 +80,8 @@ namespace MUDEngine.Objects
public BaseObject()
{
Control = new Controls.VisualContainer(this);
Script = "";
this.Name = "New " + this.GetType().Name;
}
}
}

View file

@ -12,9 +12,7 @@ namespace MUDEngine.Objects.Environment
public Realm()
{
this.Name = "New Realm";
Zones = new List<Zone>();
Script = "";
}
}
}

View file

@ -77,14 +77,10 @@ namespace MUDEngine.Objects.Environment
public Room()
{
InstalledDoors = new List<Door>();
Script = "";
this.Feel = "You feel nothing.";
this.Listen = "You hear nothing of interest.";
this.Smell = "You don't smell anything unsual.";
this.StatDrainAmount = 0;
Name = "New Room";
Control = new MUDEngine.Controls.RoomControl(this);
Control.Title = "Room Designer";
}
private Controls.RoomControl _Control;

View file

@ -9,7 +9,7 @@
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MudDesigner</RootNamespace>
<AssemblyName>MudDesigner</AssemblyName>
<AssemblyName>Mud Designer</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>

View file

@ -2,10 +2,14 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<StartWorkingDirectory>
</StartWorkingDirectory>
<StartArguments>
</StartArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<StartWorkingDirectory>
</StartWorkingDirectory>
<StartArguments>
</StartArguments>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>

View file

@ -19,8 +19,26 @@ namespace MudDesigner
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
MudHUB = new frmMain();
Application.Run(MudHUB);
bool bExit = false;
foreach (string arg in Environment.GetCommandLineArgs())
{
if (arg.ToLower().StartsWith("run="))
{
string app = arg.Substring("Run=".Length);
if (!app.EndsWith(".exe"))
app += ".exe";
ExecuteApp(app);
bExit = true;
}
}
if (!bExit)
{
MudHUB = new frmMain();
Application.Run(MudHUB);
}
}
internal static void ExecuteApp(string appName)
@ -83,7 +101,9 @@ namespace MudDesigner
try
{
process.Start();
MudHUB.Hide();
if (MudHUB != null)
MudHUB.Hide();
process.WaitForExit();
}
catch (Exception ex)
@ -93,7 +113,10 @@ namespace MudDesigner
finally
{
process = null;
MudHUB.Show();
//It will be null if the HUB was launched from another editor using it's arguments
//to launch another editor.
if (MudHUB != null)
MudHUB.Show();
}
}
}

View file

@ -33,8 +33,9 @@
this.lstRealms = new System.Windows.Forms.ListBox();
this.propertyRealm = new System.Windows.Forms.PropertyGrid();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.btnRemoveZone = new System.Windows.Forms.Button();
this.btnPlaceZone = new System.Windows.Forms.Button();
this.btnBuildZone = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lstZonesInRealm = new System.Windows.Forms.ListBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
@ -42,6 +43,7 @@
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabOptions = new System.Windows.Forms.TabPage();
this.btnValidateScript = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnSaveRealm = new System.Windows.Forms.Button();
this.btnDeleteRealm = new System.Windows.Forms.Button();
@ -123,34 +125,46 @@
//
// groupBox4
//
this.groupBox4.Controls.Add(this.button2);
this.groupBox4.Controls.Add(this.button1);
this.groupBox4.Location = new System.Drawing.Point(2, 278);
this.groupBox4.Controls.Add(this.btnRemoveZone);
this.groupBox4.Controls.Add(this.btnPlaceZone);
this.groupBox4.Controls.Add(this.btnBuildZone);
this.groupBox4.Location = new System.Drawing.Point(2, 256);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(260, 66);
this.groupBox4.Size = new System.Drawing.Size(260, 88);
this.groupBox4.TabIndex = 3;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "Realm Zone Setup";
//
// button2
// btnRemoveZone
//
this.button2.Dock = System.Windows.Forms.DockStyle.Top;
this.button2.Location = new System.Drawing.Point(3, 39);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(254, 23);
this.button2.TabIndex = 2;
this.button2.Text = "Remove Zone From Realm";
this.button2.UseVisualStyleBackColor = true;
this.btnRemoveZone.Dock = System.Windows.Forms.DockStyle.Top;
this.btnRemoveZone.Location = new System.Drawing.Point(3, 62);
this.btnRemoveZone.Name = "btnRemoveZone";
this.btnRemoveZone.Size = new System.Drawing.Size(254, 23);
this.btnRemoveZone.TabIndex = 3;
this.btnRemoveZone.Text = "Remove Zone From Realm";
this.btnRemoveZone.UseVisualStyleBackColor = true;
//
// button1
// btnPlaceZone
//
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
this.button1.Location = new System.Drawing.Point(3, 16);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(254, 23);
this.button1.TabIndex = 1;
this.button1.Text = "Insert Zone Into Realm";
this.button1.UseVisualStyleBackColor = true;
this.btnPlaceZone.Dock = System.Windows.Forms.DockStyle.Top;
this.btnPlaceZone.Location = new System.Drawing.Point(3, 39);
this.btnPlaceZone.Name = "btnPlaceZone";
this.btnPlaceZone.Size = new System.Drawing.Size(254, 23);
this.btnPlaceZone.TabIndex = 2;
this.btnPlaceZone.Text = "Place Zone In Realm";
this.btnPlaceZone.UseVisualStyleBackColor = true;
//
// btnBuildZone
//
this.btnBuildZone.Dock = System.Windows.Forms.DockStyle.Top;
this.btnBuildZone.Location = new System.Drawing.Point(3, 16);
this.btnBuildZone.Name = "btnBuildZone";
this.btnBuildZone.Size = new System.Drawing.Size(254, 23);
this.btnBuildZone.TabIndex = 1;
this.btnBuildZone.Text = "Build A Zone";
this.btnBuildZone.UseVisualStyleBackColor = true;
this.btnBuildZone.Click += new System.EventHandler(this.btnBuildZone_Click);
//
// groupBox3
//
@ -176,7 +190,7 @@
this.groupBox2.Controls.Add(this.lstAvailableZones);
this.groupBox2.Location = new System.Drawing.Point(2, 148);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(260, 124);
this.groupBox2.Size = new System.Drawing.Size(260, 102);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Available Zones";
@ -187,7 +201,7 @@
this.lstAvailableZones.FormattingEnabled = true;
this.lstAvailableZones.Location = new System.Drawing.Point(3, 16);
this.lstAvailableZones.Name = "lstAvailableZones";
this.lstAvailableZones.Size = new System.Drawing.Size(254, 95);
this.lstAvailableZones.Size = new System.Drawing.Size(254, 82);
this.lstAvailableZones.TabIndex = 1;
//
// groupBox1
@ -214,6 +228,7 @@
//
// tabOptions
//
this.tabOptions.Controls.Add(this.btnValidateScript);
this.tabOptions.Controls.Add(this.btnClose);
this.tabOptions.Controls.Add(this.btnSaveRealm);
this.tabOptions.Controls.Add(this.btnDeleteRealm);
@ -226,9 +241,20 @@
this.tabOptions.Text = "Explorer Options";
this.tabOptions.UseVisualStyleBackColor = true;
//
// btnValidateScript
//
this.btnValidateScript.Dock = System.Windows.Forms.DockStyle.Bottom;
this.btnValidateScript.Location = new System.Drawing.Point(3, 71);
this.btnValidateScript.Name = "btnValidateScript";
this.btnValidateScript.Size = new System.Drawing.Size(245, 23);
this.btnValidateScript.TabIndex = 8;
this.btnValidateScript.Text = "Validate Script";
this.btnValidateScript.UseVisualStyleBackColor = true;
this.btnValidateScript.Click += new System.EventHandler(this.btnValidateScript_Click);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(139, 50);
this.btnClose.Location = new System.Drawing.Point(139, 35);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(109, 23);
this.btnClose.TabIndex = 7;
@ -238,7 +264,7 @@
//
// btnSaveRealm
//
this.btnSaveRealm.Location = new System.Drawing.Point(139, 21);
this.btnSaveRealm.Location = new System.Drawing.Point(139, 6);
this.btnSaveRealm.Name = "btnSaveRealm";
this.btnSaveRealm.Size = new System.Drawing.Size(109, 23);
this.btnSaveRealm.TabIndex = 6;
@ -248,7 +274,7 @@
//
// btnDeleteRealm
//
this.btnDeleteRealm.Location = new System.Drawing.Point(3, 50);
this.btnDeleteRealm.Location = new System.Drawing.Point(3, 35);
this.btnDeleteRealm.Name = "btnDeleteRealm";
this.btnDeleteRealm.Size = new System.Drawing.Size(114, 23);
this.btnDeleteRealm.TabIndex = 5;
@ -258,7 +284,7 @@
//
// btnNewRealm
//
this.btnNewRealm.Location = new System.Drawing.Point(3, 21);
this.btnNewRealm.Location = new System.Drawing.Point(3, 6);
this.btnNewRealm.Name = "btnNewRealm";
this.btnNewRealm.Size = new System.Drawing.Size(114, 23);
this.btnNewRealm.TabIndex = 4;
@ -324,8 +350,8 @@
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.ListBox lstZonesInRealm;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnPlaceZone;
private System.Windows.Forms.Button btnBuildZone;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabOptions;
private System.Windows.Forms.Button btnClose;
@ -334,6 +360,8 @@
private System.Windows.Forms.Button btnNewRealm;
private System.Windows.Forms.TabPage tabScript;
private System.Windows.Forms.RichTextBox txtScript;
private System.Windows.Forms.Button btnValidateScript;
private System.Windows.Forms.Button btnRemoveZone;
}

View file

@ -6,6 +6,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ManagedScripting;
using MUDEngine.Objects.Environment;
using MUDEngine;
@ -16,6 +17,7 @@ namespace RealmExplorer
Zone _Zone;
Realm _Realm;
List<Zone> _AvailableZones;
ScriptingEngine _ScriptEngine;
public frmMain()
{
@ -23,6 +25,9 @@ namespace RealmExplorer
_Zone = new Zone();
_Realm = new Realm();
_AvailableZones = new List<Zone>();
_ScriptEngine = new ScriptingEngine();
_ScriptEngine.CompileStyle = ManagedScripting.Compilers.BaseCompiler.ScriptCompileStyle.CompileToMemory;
_ScriptEngine.KeepTempFiles = false;
BuildZoneLists();
@ -132,7 +137,7 @@ namespace RealmExplorer
string path = Engine.GetDataPath(Engine.SaveDataTypes.Realms);
string filename = System.IO.Path.Combine(path, lstRealms.SelectedItem.ToString() + ".realm");
_Realm = (Realm)ManagedScripting.XmlSerialization.Load(filename, _Realm);
_Realm = (Realm)MUDEngine.FileSystem.FileSystem.Load(filename, _Realm);
propertyRealm.SelectedObject = _Realm;
}
@ -169,5 +174,41 @@ namespace RealmExplorer
txtScript.Text = _Realm.Script;
}
}
private void btnValidateScript_Click(object sender, EventArgs e)
{
_ScriptEngine.Compiler = ManagedScripting.ScriptingEngine.CompilerSelections.SourceCompiler;
_ScriptEngine.AddReference(Application.StartupPath + "/MUDEngine.dll");
string code = "namespace MUDEngine.Objects.Environment\n"
+ "{\n"
+ " public class " + _Realm.Name.Replace(" ", "") + " : Realm\n"
+ " {\n"
+ " " + txtScript.Text + "\n"
+ " }\n"
+ "}\n";
MessageBox.Show(_ScriptEngine.Compile(code), "Script Compiling", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void btnBuildZone_Click(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
info.Arguments = "\"Run=Zone Builder.exe\"";
info.Domain = "Zone Builder";
#if DEBUG
info.FileName = @"E:\Codeplex\MudDesigner\MudDesigner\bin\Debug\Mud Designer.exe";
#else
info.FileName = "Mud Designer.exe";
#endif
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
process.StartInfo = info;
process.Start();
this.Hide();
process.WaitForExit();
this.Show();
process = null;
}
}
}

View file

@ -333,7 +333,7 @@ namespace RoomDesigner
return;
}
ManagedScripting.XmlSerialization.Save(filePath, _CurrentRoom);
MUDEngine.FileSystem.FileSystem.Save(filePath, _CurrentRoom);
MessageBox.Show("Saved.", "Room Designer");
}

View file

@ -1,3 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:ignore</Name><Value>obj
bin
</Value></Property></Properties></ItemProperties>

View file

@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace VisualDesigner
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
MUDEngine.Engine.ValidateDataPaths();
MUDEngine.FileSystem.FileSystem.FileType = MUDEngine.FileSystem.FileSystem.OutputFormats.XML;
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
}
}
}

View file

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("VisualDesigner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VisualDesigner")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7ea7d8a2-f7de-451b-bc80-5c998f76c58c")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View file

@ -1,71 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4200
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VisualDesigner.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VisualDesigner.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View file

@ -1,117 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4200
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VisualDesigner.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View file

@ -1,7 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View file

@ -1,100 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{2E20971A-E968-4AE9-B7B2-58236D499618}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VisualDesigner</RootNamespace>
<AssemblyName>VisualDesigner</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ManagedScriptingWIN, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ManagedScriptingWIN.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmDesigner.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmDesigner.Designer.cs">
<DependentUpon>frmDesigner.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="frmDesigner.resx">
<DependentUpon>frmDesigner.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MUDEngine\MUDEngine.csproj">
<Project>{33828B3B-F227-4726-8FCD-3D9D780E643D}</Project>
<Name>MUDEngine</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View file

@ -1,403 +0,0 @@
namespace VisualDesigner
{
partial class frmMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("Game Objects");
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("Game", new System.Windows.Forms.TreeNode[] {
treeNode11});
this.containerMain = new System.Windows.Forms.SplitContainer();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.containerProperties = new System.Windows.Forms.SplitContainer();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.page1 = new System.Windows.Forms.TabPage();
this.panel4 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.containerLeftPane = new System.Windows.Forms.SplitContainer();
this.treeProjectExplorer = new System.Windows.Forms.TreeView();
this.panel2 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
this.panel3 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.projectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.createNewObjectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.refreshObjectBrowserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.containerMain.Panel1.SuspendLayout();
this.containerMain.Panel2.SuspendLayout();
this.containerMain.SuspendLayout();
this.panel1.SuspendLayout();
this.containerProperties.Panel1.SuspendLayout();
this.containerProperties.Panel2.SuspendLayout();
this.containerProperties.SuspendLayout();
this.tabControl1.SuspendLayout();
this.panel4.SuspendLayout();
this.containerLeftPane.Panel1.SuspendLayout();
this.containerLeftPane.Panel2.SuspendLayout();
this.containerLeftPane.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// containerMain
//
this.containerMain.BackColor = System.Drawing.Color.Gray;
this.containerMain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.containerMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.containerMain.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.containerMain.Location = new System.Drawing.Point(0, 24);
this.containerMain.Name = "containerMain";
//
// containerMain.Panel1
//
this.containerMain.Panel1.Controls.Add(this.flowLayoutPanel1);
this.containerMain.Panel1.Controls.Add(this.panel1);
//
// containerMain.Panel2
//
this.containerMain.Panel2.Controls.Add(this.containerProperties);
this.containerMain.Size = new System.Drawing.Size(1050, 589);
this.containerMain.SplitterDistance = 133;
this.containerMain.TabIndex = 0;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(131, 29);
this.panel1.TabIndex = 0;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Silver;
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.label1.Size = new System.Drawing.Size(129, 27);
this.label1.TabIndex = 0;
this.label1.Text = "Object Browser";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// containerProperties
//
this.containerProperties.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.containerProperties.Dock = System.Windows.Forms.DockStyle.Fill;
this.containerProperties.Location = new System.Drawing.Point(0, 0);
this.containerProperties.Name = "containerProperties";
//
// containerProperties.Panel1
//
this.containerProperties.Panel1.Controls.Add(this.tabControl1);
this.containerProperties.Panel1.Controls.Add(this.panel4);
//
// containerProperties.Panel2
//
this.containerProperties.Panel2.Controls.Add(this.containerLeftPane);
this.containerProperties.Size = new System.Drawing.Size(913, 589);
this.containerProperties.SplitterDistance = 667;
this.containerProperties.TabIndex = 0;
//
// tabControl1
//
this.tabControl1.AllowDrop = true;
this.tabControl1.Controls.Add(this.page1);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 29);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(665, 558);
this.tabControl1.TabIndex = 2;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// page1
//
this.page1.AllowDrop = true;
this.page1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.page1.Location = new System.Drawing.Point(4, 22);
this.page1.Name = "page1";
this.page1.Padding = new System.Windows.Forms.Padding(3);
this.page1.Size = new System.Drawing.Size(657, 532);
this.page1.TabIndex = 1;
this.page1.Text = "Empty";
this.page1.DragDrop += new System.Windows.Forms.DragEventHandler(this.page1_DragDrop);
this.page1.DragEnter += new System.Windows.Forms.DragEventHandler(this.page1_DragEnter);
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.label4);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(665, 29);
this.panel4.TabIndex = 1;
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Silver;
this.label4.Location = new System.Drawing.Point(0, 0);
this.label4.Name = "label4";
this.label4.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.label4.Size = new System.Drawing.Size(663, 27);
this.label4.TabIndex = 0;
this.label4.Text = "Visual Designer";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// containerLeftPane
//
this.containerLeftPane.Dock = System.Windows.Forms.DockStyle.Fill;
this.containerLeftPane.Location = new System.Drawing.Point(0, 0);
this.containerLeftPane.Name = "containerLeftPane";
this.containerLeftPane.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// containerLeftPane.Panel1
//
this.containerLeftPane.Panel1.Controls.Add(this.treeProjectExplorer);
this.containerLeftPane.Panel1.Controls.Add(this.panel2);
//
// containerLeftPane.Panel2
//
this.containerLeftPane.Panel2.Controls.Add(this.propertyGrid1);
this.containerLeftPane.Panel2.Controls.Add(this.panel3);
this.containerLeftPane.Size = new System.Drawing.Size(240, 587);
this.containerLeftPane.SplitterDistance = 297;
this.containerLeftPane.TabIndex = 0;
//
// treeProjectExplorer
//
this.treeProjectExplorer.BackColor = System.Drawing.Color.Gray;
this.treeProjectExplorer.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeProjectExplorer.Location = new System.Drawing.Point(0, 29);
this.treeProjectExplorer.Name = "treeProjectExplorer";
treeNode11.Name = "nodeGameObjects";
treeNode11.Text = "Game Objects";
treeNode12.Name = "nodeGame";
treeNode12.Text = "Game";
this.treeProjectExplorer.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode12});
this.treeProjectExplorer.Size = new System.Drawing.Size(240, 268);
this.treeProjectExplorer.TabIndex = 2;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.label2);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(240, 29);
this.panel2.TabIndex = 1;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.Silver;
this.label2.Location = new System.Drawing.Point(0, 0);
this.label2.Name = "label2";
this.label2.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.label2.Size = new System.Drawing.Size(238, 27);
this.label2.TabIndex = 0;
this.label2.Text = "Project Explorer";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// propertyGrid1
//
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
this.propertyGrid1.Location = new System.Drawing.Point(0, 29);
this.propertyGrid1.Name = "propertyGrid1";
this.propertyGrid1.Size = new System.Drawing.Size(240, 257);
this.propertyGrid1.TabIndex = 2;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.label3);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(240, 29);
this.panel3.TabIndex = 1;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.Silver;
this.label3.Location = new System.Drawing.Point(0, 0);
this.label3.Name = "label3";
this.label3.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.label3.Size = new System.Drawing.Size(238, 27);
this.label3.TabIndex = 0;
this.label3.Text = "Object Properties";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// menuStrip1
//
this.menuStrip1.BackColor = System.Drawing.Color.Silver;
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.projectToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.menuStrip1.Size = new System.Drawing.Size(1050, 24);
this.menuStrip1.TabIndex = 1;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.closeToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// closeToolStripMenuItem
//
this.closeToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
this.closeToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.closeToolStripMenuItem.Text = "Close";
this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
//
// projectToolStripMenuItem
//
this.projectToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.createNewObjectToolStripMenuItem,
this.toolStripMenuItem1,
this.refreshObjectBrowserToolStripMenuItem});
this.projectToolStripMenuItem.Name = "projectToolStripMenuItem";
this.projectToolStripMenuItem.Size = new System.Drawing.Size(59, 20);
this.projectToolStripMenuItem.Text = "Objects";
//
// createNewObjectToolStripMenuItem
//
this.createNewObjectToolStripMenuItem.Name = "createNewObjectToolStripMenuItem";
this.createNewObjectToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
this.createNewObjectToolStripMenuItem.Text = "Managed Objects";
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(193, 6);
//
// refreshObjectBrowserToolStripMenuItem
//
this.refreshObjectBrowserToolStripMenuItem.Name = "refreshObjectBrowserToolStripMenuItem";
this.refreshObjectBrowserToolStripMenuItem.Size = new System.Drawing.Size(196, 22);
this.refreshObjectBrowserToolStripMenuItem.Text = "Refresh Object Browser";
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 29);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(131, 558);
this.flowLayoutPanel1.TabIndex = 2;
//
// frmMain
//
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1050, 613);
this.Controls.Add(this.containerMain);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "frmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Visual Mud Designer";
this.Load += new System.EventHandler(this.frmMain_Load);
this.containerMain.Panel1.ResumeLayout(false);
this.containerMain.Panel2.ResumeLayout(false);
this.containerMain.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.containerProperties.Panel1.ResumeLayout(false);
this.containerProperties.Panel2.ResumeLayout(false);
this.containerProperties.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.containerLeftPane.Panel1.ResumeLayout(false);
this.containerLeftPane.Panel2.ResumeLayout(false);
this.containerLeftPane.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.SplitContainer containerMain;
private System.Windows.Forms.SplitContainer containerProperties;
private System.Windows.Forms.SplitContainer containerLeftPane;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage page1;
private System.Windows.Forms.PropertyGrid propertyGrid1;
private System.Windows.Forms.TreeView treeProjectExplorer;
private System.Windows.Forms.ToolStripMenuItem projectToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem createNewObjectToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem refreshObjectBrowserToolStripMenuItem;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
}
}

View file

@ -1,171 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ManagedScripting;
using MUDEngine;
using MUDEngine.Controls;
using MUDEngine.Objects;
using MUDEngine.Objects.Environment;
using MUDEngine.FileSystem;
namespace VisualDesigner
{
public partial class frmMain : Form
{
//Script engine used to load and instance objects
ScriptingEngine engine = new ScriptingEngine();
//The current object being edited
ScriptObject currentScript;
//Collection of types the engine is holding from compiled scripts and the engine Objects namespace
Type[] types;
//The object being dragged by the mouse onto the visual designer
object movingObject;
public frmMain()
{
InitializeComponent();
//Load the engine's assembly
engine.LoadAssembly(Application.StartupPath + "/MUDEngine.dll");
//Get all of the Types it contains.
types = engine.GetAssembly.GetTypes();
//instance the current script object
currentScript = new ScriptObject();
}
/// <summary>
/// Closes the application
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
/// <summary>
/// Sets up the initial editor
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void frmMain_Load(object sender, EventArgs e)
{
//The button that will be placed within the Object Browser for object creation
Button button = new Button();
//Collections used to sort out the non-useable objects and sort them
ListBox lst = new ListBox();
lst.Sorted = true;
//Scan the types array and only save the Types inheriting from BaseObject
foreach (Type t in types)
{
if (t.BaseType.Name == "BaseObject")
{
lst.Items.Add(t.Name);
}
}
//Loop through our now sorted Object collection and create new buttons
//within the Object Browser for each Object, and tie them into the same
//MouseDown event handler.
foreach (string t in lst.Items)
{
button = new Button();
button.Width = flowLayoutPanel1.Width - 10;
button.Text = t;
button.AllowDrop = true;
button.Dock = DockStyle.Top;
button.MouseDown += new MouseEventHandler(newObject_MouseDown);
button.FlatStyle = FlatStyle.Flat;
flowLayoutPanel1.Controls.Add(button);
}
}
/// <summary>
/// When the mouse is pressed down, begin the drag and drop
/// Store the button within the movingObject so we can access it
/// due to DoDragDrop not coping the button like it should when I
/// try to access it via the DragDrop method of the tabpage
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void newObject_MouseDown(object sender, MouseEventArgs e)
{
Button button = (Button)sender;
movingObject = button;
DoDragDrop(button, DragDropEffects.Copy);
}
/// <summary>
/// Create a new instance of the object dropped onto this tab and
/// create a new page once the object is created.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void page1_DragDrop(object sender, DragEventArgs e)
{
//Check if the object is a button being dropped on here
if (movingObject is Button)
{
//create a new button based off the one being dropped on here
Button button = (Button)movingObject;
//loop through all the types we have at the moment
//and find the one that matches the one the button represents
foreach (Type t in types)
{
if (t.Name == button.Text)
{
//Create an instance of the object within the engine
engine.InstanceObject(t, null);
//Get a copy of it
currentScript = engine.GetObject(t.Name);
//Place it in the propertygrid so we can edit it
propertyGrid1.SelectedObject = currentScript.Instance;
//If the first page is still empty, use it
if (page1.Text == "Empty")
{
page1.Controls.Add(new MUDEngine.Controls.RoomControl((BaseObject)currentScript.Instance));
break;
}
//Otherwise create a new page
else
{
TabPage tab = new TabPage(currentScript.Name);
//All new tabs will use the same event handler method
tab.DragDrop +=new DragEventHandler(page1_DragDrop);
tab.DragEnter += new DragEventHandler(page1_DragEnter);
tab.AllowDrop = true;
tab.BackColor = Color.FromArgb(64,64,64);
page1.Text = currentScript.Name;
tabControl1.TabPages.Add(tab);
//select the tab.
tabControl1.SelectedTab = tab;
break;
}
}
}
}
}
private void page1_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
currentScript = engine.GetObject(tabControl1.SelectedTab.Text);
propertyGrid1.SelectedObject = currentScript.Instance;
}
}
}

View file

@ -1,123 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View file

@ -31,6 +31,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ManagedScriptingWIN, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ManagedScriptingWIN.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>

View file

@ -28,24 +28,257 @@
/// </summary>
private void InitializeComponent()
{
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnValidateScript = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnSaveZone = new System.Windows.Forms.Button();
this.btnDeleteZone = new System.Windows.Forms.Button();
this.btnNewZone = new System.Windows.Forms.Button();
this.propertyZone = new System.Windows.Forms.PropertyGrid();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.btnRoomEditor = new System.Windows.Forms.Button();
this.lstRooms = new System.Windows.Forms.ListBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabZoneCreation = new System.Windows.Forms.TabPage();
this.tabScript = new System.Windows.Forms.TabPage();
this.txtScript = new System.Windows.Forms.RichTextBox();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabScript.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.propertyZone);
this.splitContainer1.Panel1.Controls.Add(this.groupBox1);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(794, 574);
this.splitContainer1.SplitterDistance = 210;
this.splitContainer1.TabIndex = 0;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnValidateScript);
this.groupBox1.Controls.Add(this.btnClose);
this.groupBox1.Controls.Add(this.btnSaveZone);
this.groupBox1.Controls.Add(this.btnDeleteZone);
this.groupBox1.Controls.Add(this.btnNewZone);
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(210, 99);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Zone Setup";
//
// btnValidateScript
//
this.btnValidateScript.Dock = System.Windows.Forms.DockStyle.Bottom;
this.btnValidateScript.Location = new System.Drawing.Point(3, 73);
this.btnValidateScript.Name = "btnValidateScript";
this.btnValidateScript.Size = new System.Drawing.Size(204, 23);
this.btnValidateScript.TabIndex = 13;
this.btnValidateScript.Text = "Validate Script";
this.btnValidateScript.UseVisualStyleBackColor = true;
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(110, 48);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(97, 23);
this.btnClose.TabIndex = 12;
this.btnClose.Text = "Close Builder";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnSaveZone
//
this.btnSaveZone.Location = new System.Drawing.Point(110, 19);
this.btnSaveZone.Name = "btnSaveZone";
this.btnSaveZone.Size = new System.Drawing.Size(97, 23);
this.btnSaveZone.TabIndex = 11;
this.btnSaveZone.Text = "Save Zone";
this.btnSaveZone.UseVisualStyleBackColor = true;
//
// btnDeleteZone
//
this.btnDeleteZone.Location = new System.Drawing.Point(3, 48);
this.btnDeleteZone.Name = "btnDeleteZone";
this.btnDeleteZone.Size = new System.Drawing.Size(102, 23);
this.btnDeleteZone.TabIndex = 10;
this.btnDeleteZone.Text = "Delete Zone";
this.btnDeleteZone.UseVisualStyleBackColor = true;
//
// btnNewZone
//
this.btnNewZone.Location = new System.Drawing.Point(3, 19);
this.btnNewZone.Name = "btnNewZone";
this.btnNewZone.Size = new System.Drawing.Size(102, 23);
this.btnNewZone.TabIndex = 9;
this.btnNewZone.Text = "New Zone";
this.btnNewZone.UseVisualStyleBackColor = true;
//
// propertyZone
//
this.propertyZone.Dock = System.Windows.Forms.DockStyle.Fill;
this.propertyZone.Location = new System.Drawing.Point(0, 99);
this.propertyZone.Name = "propertyZone";
this.propertyZone.Size = new System.Drawing.Size(210, 475);
this.propertyZone.TabIndex = 1;
this.propertyZone.ToolbarVisible = false;
//
// splitContainer2
//
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.tabControl1);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.groupBox2);
this.splitContainer2.Size = new System.Drawing.Size(580, 574);
this.splitContainer2.SplitterDistance = 365;
this.splitContainer2.TabIndex = 0;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.lstRooms);
this.groupBox2.Controls.Add(this.btnRoomEditor);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox2.Location = new System.Drawing.Point(0, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(211, 168);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Available Rooms";
//
// btnRoomEditor
//
this.btnRoomEditor.Dock = System.Windows.Forms.DockStyle.Bottom;
this.btnRoomEditor.Location = new System.Drawing.Point(3, 142);
this.btnRoomEditor.Name = "btnRoomEditor";
this.btnRoomEditor.Size = new System.Drawing.Size(205, 23);
this.btnRoomEditor.TabIndex = 0;
this.btnRoomEditor.Text = "Build-A-Room";
this.btnRoomEditor.UseVisualStyleBackColor = true;
this.btnRoomEditor.Click += new System.EventHandler(this.btnRoomEditor_Click);
//
// lstRooms
//
this.lstRooms.Dock = System.Windows.Forms.DockStyle.Fill;
this.lstRooms.FormattingEnabled = true;
this.lstRooms.Location = new System.Drawing.Point(3, 16);
this.lstRooms.Name = "lstRooms";
this.lstRooms.Size = new System.Drawing.Size(205, 121);
this.lstRooms.TabIndex = 1;
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabZoneCreation);
this.tabControl1.Controls.Add(this.tabScript);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(365, 574);
this.tabControl1.TabIndex = 0;
//
// tabZoneCreation
//
this.tabZoneCreation.Location = new System.Drawing.Point(4, 22);
this.tabZoneCreation.Name = "tabZoneCreation";
this.tabZoneCreation.Padding = new System.Windows.Forms.Padding(3);
this.tabZoneCreation.Size = new System.Drawing.Size(357, 548);
this.tabZoneCreation.TabIndex = 0;
this.tabZoneCreation.Text = "Zone Creation";
this.tabZoneCreation.UseVisualStyleBackColor = true;
//
// tabScript
//
this.tabScript.Controls.Add(this.txtScript);
this.tabScript.Location = new System.Drawing.Point(4, 22);
this.tabScript.Name = "tabScript";
this.tabScript.Padding = new System.Windows.Forms.Padding(3);
this.tabScript.Size = new System.Drawing.Size(357, 548);
this.tabScript.TabIndex = 1;
this.tabScript.Text = "Script";
this.tabScript.UseVisualStyleBackColor = true;
//
// txtScript
//
this.txtScript.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtScript.Location = new System.Drawing.Point(3, 3);
this.txtScript.Name = "txtScript";
this.txtScript.Size = new System.Drawing.Size(351, 542);
this.txtScript.TabIndex = 0;
this.txtScript.Text = "";
//
// frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(349, 314);
this.ClientSize = new System.Drawing.Size(794, 574);
this.Controls.Add(this.splitContainer1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Zone Builder";
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabScript.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btnValidateScript;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnSaveZone;
private System.Windows.Forms.Button btnDeleteZone;
private System.Windows.Forms.Button btnNewZone;
private System.Windows.Forms.PropertyGrid propertyZone;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.ListBox lstRooms;
private System.Windows.Forms.Button btnRoomEditor;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabZoneCreation;
private System.Windows.Forms.TabPage tabScript;
private System.Windows.Forms.RichTextBox txtScript;
}
}

View file

@ -8,6 +8,10 @@ using System.Text;
using System.Windows.Forms;
using MUDEngine;
using MUDEngine.Objects.Environment;
using ManagedScripting;
using MUDEngine;
using MUDEngine.Objects.Environment;
using MUDEngine.FileSystem;
namespace ZoneBuilder
{
@ -21,6 +25,60 @@ namespace ZoneBuilder
InitializeComponent();
_CurrentRoom = new Room();
_CurrentZone = new Zone();
SetupScript();
}
private void SetupScript()
{
//Check if the realm script is empty. If so then generate a standard script for it.
if (String.IsNullOrEmpty(_CurrentZone.Script))
{
//Instance a new method helper class
ManagedScripting.CodeBuilding.MethodSetup method = new ManagedScripting.CodeBuilding.MethodSetup();
string script = "";
//Setup our method. All objects inheriting from BaseObject will have the standard
//methods created for them.
string[] names = new string[] { "OnCreate", "OnDestroy", "OnEnter", "OnExit" };
foreach (string name in names)
{
method = new ManagedScripting.CodeBuilding.MethodSetup();
method.Name = name;
method.ReturnType = "void";
method.IsOverride = true;
method.Modifier = ManagedScripting.CodeBuilding.ClassGenerator.Modifiers.Public;
method.Code = new string[] { "base." + method.Name + "();" };
script = script.Insert(_CurrentZone.Script.Length, method.Create() + "\n");
}
_CurrentZone.Script = script;
}
}
private void btnRoomEditor_Click(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
info.Arguments = "\"Run=Room Designer.exe\"";
info.Domain = "Room Designer";
#if DEBUG
info.FileName = @"E:\Codeplex\MudDesigner\MudDesigner\bin\Debug\Mud Designer.exe";
#else
info.FileName = "Mud Designer.exe";
#endif
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
process.StartInfo = info;
process.Start();
this.Hide();
process.WaitForExit();
this.Show();
process = null;
}
private void btnClose_Click(object sender, EventArgs e)
{
Application.Exit();
}
}
}