- Deleted Mud Designer ToolKit.mm
Mud Designer: - Deleted the previous Mud Designer Editors.
This commit is contained in:
parent
8b55b95dc1
commit
774a5d9edd
25 changed files with 0 additions and 4515 deletions
|
@ -1,39 +0,0 @@
|
|||
<map version="0.8.0">
|
||||
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
|
||||
<node CREATED="1260131211419" ID="Freemind_Link_982533971" MODIFIED="1260131236653" TEXT="Mud Designer ToolKit">
|
||||
<node CREATED="1260131241702" ID="_" MODIFIED="1260131472490" POSITION="right" STYLE="bubble" TEXT="Editors" VSHIFT="-32">
|
||||
<node CREATED="1260131268515" ID="Freemind_Link_1105033129" MODIFIED="1260131276067" TEXT="ToolKit">
|
||||
<node CREATED="1260131279367" ID="Freemind_Link_1218856268" MODIFIED="1260131283749" TEXT="Project Settings"/>
|
||||
<node CREATED="1260131286962" ID="Freemind_Link_675398043" MODIFIED="1260131289935" TEXT="Currency Editor"/>
|
||||
<node CREATED="1260131293575" ID="Freemind_Link_263940410" MODIFIED="1260131295744" TEXT="Realm Explorer">
|
||||
<node CREATED="1260131299076" HGAP="22" ID="Freemind_Link_1523087869" MODIFIED="1260131460883" TEXT="Zone Builder" VSHIFT="2">
|
||||
<node CREATED="1260131306859" HGAP="26" ID="Freemind_Link_1400358463" MODIFIED="1260131465991" TEXT="Room Designer" VSHIFT="2"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1260131256558" ID="Freemind_Link_1133846623" MODIFIED="1260131469962" POSITION="right" STYLE="bubble" TEXT="Engine" VSHIFT="10">
|
||||
<node CREATED="1260131372090" ID="Freemind_Link_560269173" MODIFIED="1260131376491" TEXT="Engine Attributes"/>
|
||||
<node CREATED="1260131449084" ID="Freemind_Link_655965513" MODIFIED="1260131601223" TEXT="Engine Interfaces" VSHIFT="7"/>
|
||||
<node CREATED="1260131385669" ID="Freemind_Link_369193853" MODIFIED="1260131624524" TEXT="Filesytem">
|
||||
<arrowlink DESTINATION="Freemind_Link_369193853" ENDARROW="Default" ENDINCLINATION="0;0;" ID="Freemind_Arrow_Link_1472576757" STARTARROW="None" STARTINCLINATION="0;0;"/>
|
||||
<node CREATED="1260131397621" HGAP="22" ID="Freemind_Link_1246241747" MODIFIED="1260131457426" TEXT="FileIO Layer" VSHIFT="2">
|
||||
<node CREATED="1260131410538" ID="Freemind_Link_475954254" MODIFIED="1260131413784" TEXT="XML Serialization"/>
|
||||
<node CREATED="1260131420658" ID="Freemind_Link_1960381686" MODIFIED="1260131424718" TEXT="MySql"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1260131488786" ID="Freemind_Link_97689511" MODIFIED="1260131636922" TEXT="Game Management" VSHIFT="12">
|
||||
<node CREATED="1260131558434" ID="Freemind_Link_1129431767" MODIFIED="1260131565187" TEXT="Project Management" VSHIFT="2"/>
|
||||
<node CREATED="1260131567066" ID="Freemind_Link_1128969220" MODIFIED="1260131571981" TEXT="Quest Manager"/>
|
||||
</node>
|
||||
<node CREATED="1260131640250" ID="Freemind_Link_1164402786" MODIFIED="1260131642731" TEXT="Game Objects">
|
||||
<node CREATED="1260131645060" ID="Freemind_Link_112705971" MODIFIED="1260131649625" TEXT="Currency"/>
|
||||
<node CREATED="1260131653193" ID="Freemind_Link_1006422029" MODIFIED="1260131659828" TEXT="Realms"/>
|
||||
<node CREATED="1260131662599" ID="Freemind_Link_458009142" MODIFIED="1260131663710" TEXT="Zones"/>
|
||||
<node CREATED="1260131666435" ID="Freemind_Link_855107250" MODIFIED="1260131668101" TEXT="Rooms">
|
||||
<node CREATED="1260131672573" ID="Freemind_Link_36695109" MODIFIED="1260131681443" TEXT="Doors" VSHIFT="2"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</map>
|
|
@ -1,91 +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;
|
||||
|
||||
//MudEngine
|
||||
using MudDesigner.MudEngine;
|
||||
using MudDesigner.MudEngine.Attributes;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class CurrencyEditor : Form
|
||||
{
|
||||
Currency _Currency;
|
||||
|
||||
public CurrencyEditor()
|
||||
{
|
||||
InitializeComponent();
|
||||
_Currency = new Currency();
|
||||
propertyGrid1.SelectedObject = _Currency;
|
||||
string path = FileManager.GetDataPath(SaveDataTypes.Currency);
|
||||
|
||||
foreach (string currency in System.IO.Directory.GetFiles(path, "*.currency"))
|
||||
{
|
||||
lstCurrencies.Items.Add(System.IO.Path.GetFileNameWithoutExtension(currency));
|
||||
}
|
||||
}
|
||||
|
||||
private void btnNewCurrency_Click(object sender, EventArgs e)
|
||||
{
|
||||
_Currency = new Currency();
|
||||
propertyGrid1.SelectedObject = _Currency;
|
||||
}
|
||||
|
||||
private void btnSaveCurrency_Click(object sender, EventArgs e)
|
||||
{
|
||||
string currencyPath = FileManager.GetDataPath(SaveDataTypes.Currency);
|
||||
string currencyFile = System.IO.Path.Combine(currencyPath, _Currency.Filename);
|
||||
FileManager.Save(currencyFile, _Currency);
|
||||
string file = System.IO.Path.GetFileNameWithoutExtension(_Currency.Filename);
|
||||
if (!lstCurrencies.Items.Contains(file))
|
||||
lstCurrencies.Items.Add(file);
|
||||
}
|
||||
|
||||
private void lstCurrencies_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
//nothing selected.
|
||||
if (lstCurrencies.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
string filePath = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Currency), lstCurrencies.SelectedItem.ToString() + ".currency");
|
||||
_Currency = (Currency)FileManager.Load(filePath, _Currency);
|
||||
propertyGrid1.SelectedObject = _Currency;
|
||||
}
|
||||
|
||||
private void btnDeleteCurrency_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Check if a currency is selected.
|
||||
if (lstCurrencies.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("Select a currency to delete first!", "Currency Deletion", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
//Ask if its ok to delete first.
|
||||
DialogResult result = MessageBox.Show("Are you sure you want to delete " + _Currency.Name + "?",
|
||||
"Currency Deletion",
|
||||
MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question);
|
||||
|
||||
if (result == DialogResult.No)
|
||||
return;
|
||||
|
||||
//Delete the files and remove from the list.
|
||||
string filePath = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Currency), lstCurrencies.SelectedItem.ToString() + ".xml");
|
||||
System.IO.File.Delete(filePath);
|
||||
lstCurrencies.Items.Remove(lstCurrencies.SelectedItem);
|
||||
|
||||
//Re-instance the currency and set it within the propertygrid.
|
||||
_Currency = new Currency();
|
||||
propertyGrid1.SelectedObject = _Currency;
|
||||
}
|
||||
}
|
||||
}
|
161
Mud Designer/Editors/CurrencyEditor.designer.cs
generated
161
Mud Designer/Editors/CurrencyEditor.designer.cs
generated
|
@ -1,161 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class CurrencyEditor
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.lstCurrencies = new System.Windows.Forms.ListBox();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.btnNewCurrency = new System.Windows.Forms.Button();
|
||||
this.btnSaveCurrency = new System.Windows.Forms.Button();
|
||||
this.btnDeleteCurrency = new System.Windows.Forms.Button();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.propertyGrid1);
|
||||
this.groupBox2.Location = new System.Drawing.Point(1, 136);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(323, 214);
|
||||
this.groupBox2.TabIndex = 6;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Currency Setup";
|
||||
//
|
||||
// propertyGrid1
|
||||
//
|
||||
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyGrid1.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyGrid1.Name = "propertyGrid1";
|
||||
this.propertyGrid1.Size = new System.Drawing.Size(317, 195);
|
||||
this.propertyGrid1.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lstCurrencies);
|
||||
this.groupBox1.Location = new System.Drawing.Point(1, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(323, 130);
|
||||
this.groupBox1.TabIndex = 5;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Currencies";
|
||||
//
|
||||
// lstCurrencies
|
||||
//
|
||||
this.lstCurrencies.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstCurrencies.FormattingEnabled = true;
|
||||
this.lstCurrencies.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstCurrencies.Name = "lstCurrencies";
|
||||
this.lstCurrencies.Size = new System.Drawing.Size(317, 108);
|
||||
this.lstCurrencies.TabIndex = 0;
|
||||
this.lstCurrencies.SelectedIndexChanged += new System.EventHandler(this.lstCurrencies_SelectedIndexChanged);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.btnDeleteCurrency);
|
||||
this.groupBox3.Controls.Add(this.btnSaveCurrency);
|
||||
this.groupBox3.Controls.Add(this.btnNewCurrency);
|
||||
this.groupBox3.Location = new System.Drawing.Point(1, 353);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(323, 54);
|
||||
this.groupBox3.TabIndex = 7;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Options";
|
||||
//
|
||||
// btnNewCurrency
|
||||
//
|
||||
this.btnNewCurrency.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnNewCurrency.Location = new System.Drawing.Point(3, 16);
|
||||
this.btnNewCurrency.Name = "btnNewCurrency";
|
||||
this.btnNewCurrency.Size = new System.Drawing.Size(100, 31);
|
||||
this.btnNewCurrency.TabIndex = 0;
|
||||
this.btnNewCurrency.Text = "New Currency";
|
||||
this.btnNewCurrency.UseVisualStyleBackColor = true;
|
||||
this.btnNewCurrency.Click += new System.EventHandler(this.btnNewCurrency_Click);
|
||||
//
|
||||
// btnSaveCurrency
|
||||
//
|
||||
this.btnSaveCurrency.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSaveCurrency.Location = new System.Drawing.Point(109, 16);
|
||||
this.btnSaveCurrency.Name = "btnSaveCurrency";
|
||||
this.btnSaveCurrency.Size = new System.Drawing.Size(100, 31);
|
||||
this.btnSaveCurrency.TabIndex = 1;
|
||||
this.btnSaveCurrency.Text = "Save Currency";
|
||||
this.btnSaveCurrency.UseVisualStyleBackColor = true;
|
||||
this.btnSaveCurrency.Click += new System.EventHandler(this.btnSaveCurrency_Click);
|
||||
//
|
||||
// btnDeleteCurrency
|
||||
//
|
||||
this.btnDeleteCurrency.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDeleteCurrency.Location = new System.Drawing.Point(215, 16);
|
||||
this.btnDeleteCurrency.Name = "btnDeleteCurrency";
|
||||
this.btnDeleteCurrency.Size = new System.Drawing.Size(100, 31);
|
||||
this.btnDeleteCurrency.TabIndex = 2;
|
||||
this.btnDeleteCurrency.Text = "Delete Currency";
|
||||
this.btnDeleteCurrency.UseVisualStyleBackColor = true;
|
||||
this.btnDeleteCurrency.Click += new System.EventHandler(this.btnDeleteCurrency_Click);
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(326, 410);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
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 = "Currency Editor";
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.ListBox lstCurrencies;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.Button btnNewCurrency;
|
||||
private System.Windows.Forms.Button btnSaveCurrency;
|
||||
private System.Windows.Forms.Button btnDeleteCurrency;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,120 +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>
|
||||
</root>
|
321
Mud Designer/Editors/DoorwayManager.Designer.cs
generated
321
Mud Designer/Editors/DoorwayManager.Designer.cs
generated
|
@ -1,321 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class DoorwayManager
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.lstRealms = new System.Windows.Forms.ListBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.lstZones = new System.Windows.Forms.ListBox();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.lstRooms = new System.Windows.Forms.ListBox();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyRoom = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.btnSelectDoorway = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnEast = new System.Windows.Forms.Button();
|
||||
this.btnWest = new System.Windows.Forms.Button();
|
||||
this.btnDown = new System.Windows.Forms.Button();
|
||||
this.btnSouth = new System.Windows.Forms.Button();
|
||||
this.btnNorth = new System.Windows.Forms.Button();
|
||||
this.btnUp = new System.Windows.Forms.Button();
|
||||
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lstRealms);
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(170, 155);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Available Realms";
|
||||
//
|
||||
// lstRealms
|
||||
//
|
||||
this.lstRealms.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstRealms.FormattingEnabled = true;
|
||||
this.lstRealms.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstRealms.Name = "lstRealms";
|
||||
this.lstRealms.Size = new System.Drawing.Size(164, 134);
|
||||
this.lstRealms.TabIndex = 0;
|
||||
this.lstRealms.SelectedIndexChanged += new System.EventHandler(this.lstRealms_SelectedIndexChanged);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.lstZones);
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 161);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(170, 286);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Zones contained within Realm";
|
||||
//
|
||||
// lstZones
|
||||
//
|
||||
this.lstZones.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstZones.FormattingEnabled = true;
|
||||
this.lstZones.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstZones.Name = "lstZones";
|
||||
this.lstZones.Size = new System.Drawing.Size(164, 264);
|
||||
this.lstZones.TabIndex = 0;
|
||||
this.lstZones.SelectedIndexChanged += new System.EventHandler(this.lstZones_SelectedIndexChanged);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.lstRooms);
|
||||
this.groupBox3.Location = new System.Drawing.Point(173, 0);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(182, 221);
|
||||
this.groupBox3.TabIndex = 2;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Available Rooms";
|
||||
//
|
||||
// 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(176, 199);
|
||||
this.lstRooms.TabIndex = 0;
|
||||
this.lstRooms.SelectedIndexChanged += new System.EventHandler(this.lstRooms_SelectedIndexChanged);
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.propertyRoom);
|
||||
this.groupBox4.Location = new System.Drawing.Point(176, 221);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(182, 226);
|
||||
this.groupBox4.TabIndex = 3;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Room Property Preview";
|
||||
//
|
||||
// propertyRoom
|
||||
//
|
||||
this.propertyRoom.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyRoom.Enabled = false;
|
||||
this.propertyRoom.HelpVisible = false;
|
||||
this.propertyRoom.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyRoom.Name = "propertyRoom";
|
||||
this.propertyRoom.Size = new System.Drawing.Size(176, 207);
|
||||
this.propertyRoom.TabIndex = 0;
|
||||
this.propertyRoom.ToolbarVisible = false;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.btnSelectDoorway);
|
||||
this.groupBox5.Controls.Add(this.label1);
|
||||
this.groupBox5.Controls.Add(this.btnEast);
|
||||
this.groupBox5.Controls.Add(this.btnWest);
|
||||
this.groupBox5.Controls.Add(this.btnDown);
|
||||
this.groupBox5.Controls.Add(this.btnSouth);
|
||||
this.groupBox5.Controls.Add(this.btnNorth);
|
||||
this.groupBox5.Controls.Add(this.btnUp);
|
||||
this.groupBox5.Location = new System.Drawing.Point(358, 0);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(383, 447);
|
||||
this.groupBox5.TabIndex = 4;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Doorway Designer";
|
||||
//
|
||||
// btnSelectDoorway
|
||||
//
|
||||
this.btnSelectDoorway.Location = new System.Drawing.Point(256, 421);
|
||||
this.btnSelectDoorway.Name = "btnSelectDoorway";
|
||||
this.btnSelectDoorway.Size = new System.Drawing.Size(118, 23);
|
||||
this.btnSelectDoorway.TabIndex = 15;
|
||||
this.btnSelectDoorway.Text = "Select Doorway";
|
||||
this.btnSelectDoorway.UseVisualStyleBackColor = true;
|
||||
this.btnSelectDoorway.Click += new System.EventHandler(this.btnSelectDoorway_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(3, 428);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(114, 13);
|
||||
this.label1.TabIndex = 14;
|
||||
this.label1.Text = "Selected Doorway:";
|
||||
//
|
||||
// btnEast
|
||||
//
|
||||
this.btnEast.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnEast.FlatAppearance.BorderSize = 2;
|
||||
this.btnEast.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnEast.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnEast.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnEast.Location = new System.Drawing.Point(256, 161);
|
||||
this.btnEast.Name = "btnEast";
|
||||
this.btnEast.Size = new System.Drawing.Size(118, 93);
|
||||
this.btnEast.TabIndex = 13;
|
||||
this.btnEast.Text = "East";
|
||||
this.btnEast.UseVisualStyleBackColor = false;
|
||||
this.btnEast.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// btnWest
|
||||
//
|
||||
this.btnWest.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnWest.FlatAppearance.BorderSize = 2;
|
||||
this.btnWest.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnWest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnWest.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnWest.Location = new System.Drawing.Point(6, 161);
|
||||
this.btnWest.Name = "btnWest";
|
||||
this.btnWest.Size = new System.Drawing.Size(118, 93);
|
||||
this.btnWest.TabIndex = 12;
|
||||
this.btnWest.Text = "West";
|
||||
this.btnWest.UseVisualStyleBackColor = false;
|
||||
this.btnWest.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// btnDown
|
||||
//
|
||||
this.btnDown.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnDown.FlatAppearance.BorderSize = 2;
|
||||
this.btnDown.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnDown.Location = new System.Drawing.Point(132, 353);
|
||||
this.btnDown.Name = "btnDown";
|
||||
this.btnDown.Size = new System.Drawing.Size(118, 51);
|
||||
this.btnDown.TabIndex = 11;
|
||||
this.btnDown.Text = "Down";
|
||||
this.btnDown.UseVisualStyleBackColor = false;
|
||||
this.btnDown.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// btnSouth
|
||||
//
|
||||
this.btnSouth.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnSouth.FlatAppearance.BorderSize = 2;
|
||||
this.btnSouth.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnSouth.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSouth.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSouth.Location = new System.Drawing.Point(132, 261);
|
||||
this.btnSouth.Name = "btnSouth";
|
||||
this.btnSouth.Size = new System.Drawing.Size(118, 86);
|
||||
this.btnSouth.TabIndex = 10;
|
||||
this.btnSouth.Text = "South";
|
||||
this.btnSouth.UseVisualStyleBackColor = false;
|
||||
this.btnSouth.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// btnNorth
|
||||
//
|
||||
this.btnNorth.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnNorth.FlatAppearance.BorderSize = 2;
|
||||
this.btnNorth.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnNorth.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnNorth.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnNorth.Location = new System.Drawing.Point(132, 69);
|
||||
this.btnNorth.Name = "btnNorth";
|
||||
this.btnNorth.Size = new System.Drawing.Size(118, 86);
|
||||
this.btnNorth.TabIndex = 9;
|
||||
this.btnNorth.Text = "North";
|
||||
this.btnNorth.UseVisualStyleBackColor = false;
|
||||
this.btnNorth.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// btnUp
|
||||
//
|
||||
this.btnUp.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnUp.FlatAppearance.BorderSize = 2;
|
||||
this.btnUp.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnUp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnUp.Location = new System.Drawing.Point(132, 12);
|
||||
this.btnUp.Name = "btnUp";
|
||||
this.btnUp.Size = new System.Drawing.Size(118, 51);
|
||||
this.btnUp.TabIndex = 8;
|
||||
this.btnUp.Text = "Up";
|
||||
this.btnUp.UseVisualStyleBackColor = false;
|
||||
this.btnUp.Click += new System.EventHandler(this.button_Click);
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.progressBar1.Location = new System.Drawing.Point(0, 426);
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(744, 23);
|
||||
this.progressBar1.TabIndex = 5;
|
||||
this.progressBar1.Visible = false;
|
||||
//
|
||||
// DoorwayManager
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(744, 449);
|
||||
this.Controls.Add(this.progressBar1);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "DoorwayManager";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Doorway Manager";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.ListBox lstRealms;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.ListBox lstZones;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.ListBox lstRooms;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.PropertyGrid propertyRoom;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.Button btnEast;
|
||||
private System.Windows.Forms.Button btnWest;
|
||||
private System.Windows.Forms.Button btnDown;
|
||||
private System.Windows.Forms.Button btnSouth;
|
||||
private System.Windows.Forms.Button btnNorth;
|
||||
private System.Windows.Forms.Button btnUp;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button btnSelectDoorway;
|
||||
private System.Windows.Forms.ProgressBar progressBar1;
|
||||
}
|
||||
}
|
|
@ -1,204 +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 System.IO;
|
||||
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameManagement;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class DoorwayManager : Form
|
||||
{
|
||||
internal List<Room> rooms;
|
||||
internal List<Zone> zones;
|
||||
internal List<Realm> realms;
|
||||
internal Room linkedRoom = new Room();
|
||||
internal Zone linkedZone = new Zone();
|
||||
internal Realm linkedRealm = new Realm();
|
||||
internal AvailableTravelDirections TravelDirection = AvailableTravelDirections.None;
|
||||
|
||||
public DoorwayManager(AvailableTravelDirections TravelDirection)
|
||||
{
|
||||
InitializeComponent();
|
||||
realms = new List<Realm>();
|
||||
rooms = new List<Room>();
|
||||
zones = new List<Zone>();
|
||||
|
||||
//set the window title to show the room being connected to
|
||||
//along with the travel direction
|
||||
this.Text += ": " + Program.Room.Name + "->" + TravelDirection.ToString();
|
||||
|
||||
//get the realm paths, and find all the realm files
|
||||
string realmRoot = FileManager.GetDataPath(SaveDataTypes.Realms);
|
||||
string[] realmFiles = Directory.GetFiles(realmRoot, "*.realm", SearchOption.AllDirectories);
|
||||
|
||||
//loop through each realm file found, load the realm
|
||||
///and place it in the realm collection
|
||||
foreach (string file in realmFiles)
|
||||
{
|
||||
Realm r = new Realm();
|
||||
r = (Realm)FileManager.Load(file, r);
|
||||
realms.Add(r);
|
||||
lstRealms.Items.Add(r.Name);
|
||||
}
|
||||
}
|
||||
|
||||
private void lstRealms_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (lstRealms.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), lstRealms.SelectedItem.ToString());
|
||||
string[] files = Directory.GetFiles(realmPath, "*.zone", SearchOption.AllDirectories);
|
||||
|
||||
//only show the progress bar if there is a large
|
||||
//number of zones to load.
|
||||
progressBar1.Value = 0;
|
||||
if (files.Length > 0)
|
||||
progressBar1.Visible = true;
|
||||
|
||||
progressBar1.Maximum = files.Length * 2;
|
||||
|
||||
foreach (string file in files)
|
||||
{
|
||||
Zone z = new Zone();
|
||||
z = (Zone)FileManager.Load(file, z);
|
||||
zones.Add(z);
|
||||
lstZones.Items.Add(z.Name);
|
||||
progressBar1.Increment(1);
|
||||
}
|
||||
|
||||
foreach (Realm realm in realms)
|
||||
{
|
||||
if (realm.Name == lstRealms.SelectedItem.ToString())
|
||||
{
|
||||
linkedRealm = realm;
|
||||
break;
|
||||
}
|
||||
progressBar1.Increment(1);
|
||||
}
|
||||
|
||||
progressBar1.Visible = false;
|
||||
}
|
||||
|
||||
private void lstZones_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (lstZones.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), lstRealms.SelectedItem.ToString());
|
||||
string zonePath = Path.Combine(realmPath, lstZones.SelectedItem.ToString());
|
||||
string[] files = Directory.GetFiles(zonePath, "*.room");
|
||||
|
||||
//only show the progress bar if there is a large number
|
||||
//of rooms to load
|
||||
progressBar1.Value = 0;
|
||||
if (files.Length > 0)
|
||||
progressBar1.Visible = true;
|
||||
|
||||
progressBar1.Maximum = files.Length * 2;
|
||||
|
||||
foreach (string file in files)
|
||||
{
|
||||
Room r = new Room();
|
||||
r = (Room)FileManager.Load(file, r);
|
||||
rooms.Add(r);
|
||||
lstRooms.Items.Add(r.Name);
|
||||
progressBar1.Increment(1);
|
||||
}
|
||||
|
||||
foreach (Zone zone in zones)
|
||||
{
|
||||
if (zone.Name == lstZones.SelectedItem.ToString())
|
||||
{
|
||||
linkedZone = zone;
|
||||
break;
|
||||
}
|
||||
progressBar1.Increment(1);
|
||||
}
|
||||
progressBar1.Visible = false;
|
||||
}
|
||||
|
||||
private void lstRooms_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (lstRooms.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
foreach (Room room in rooms)
|
||||
{
|
||||
if (room.Name == lstRooms.SelectedItem.ToString())
|
||||
{
|
||||
linkedRoom = room;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
propertyRoom.SelectedObject = linkedRoom;
|
||||
}
|
||||
|
||||
private void button_Click(object sender, EventArgs e)
|
||||
{
|
||||
Button button = (Button)sender;
|
||||
TravelDirection = TravelDirections.GetTravelDirectionValue(button.Text);
|
||||
label1.Text = "Selected Doorway: " + TravelDirection.ToString();
|
||||
}
|
||||
|
||||
private void btnSelectDoorway_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (TravelDirection == AvailableTravelDirections.None)
|
||||
{
|
||||
MessageBox.Show("You must select a doorway to link with.",
|
||||
"Doorway Manager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
//Make sure we have all of our environments selected
|
||||
if (lstRooms.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("You must select a Realm, Zone and Room prior to selecting this doorway.",
|
||||
"Doorway Manager", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
//Delete the door if it already exists, so we can re-install
|
||||
//the new door for this direction
|
||||
foreach (Door d in linkedRoom.InstalledDoors)
|
||||
{
|
||||
if (d.TravelDirection == TravelDirection)
|
||||
{
|
||||
linkedRoom.InstalledDoors.Remove(d);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Create a link to the currently loaded room within the Zone Builder
|
||||
Door.ConnectedRoom connected = new Door.ConnectedRoom();
|
||||
connected.Realm = Program.Realm.Name;
|
||||
connected.Zone = Program.Zone.Name;
|
||||
connected.Room = Program.Room.Name;
|
||||
connected.TravelDirection = TravelDirection;
|
||||
|
||||
//Create a new door, add our link and set its travel direction
|
||||
Door door = new Door();
|
||||
door.TravelRoom = connected;
|
||||
door.TravelDirection = TravelDirections.GetTravelDirectionValue(TravelDirection.ToString());
|
||||
|
||||
//install the door
|
||||
linkedRoom.InstalledDoors.Add(door);
|
||||
//save the linked room
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), linkedRealm.Name);
|
||||
string zonePath = Path.Combine(realmPath, linkedZone.Name);
|
||||
string roomFile = Path.Combine(zonePath, linkedRoom.Filename);
|
||||
FileManager.Save(roomFile, linkedRoom);
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,120 +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>
|
||||
</root>
|
81
Mud Designer/Editors/ExistingRealms.Designer.cs
generated
81
Mud Designer/Editors/ExistingRealms.Designer.cs
generated
|
@ -1,81 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class ExistingRealms
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.btnTransfer = new System.Windows.Forms.Button();
|
||||
this.lstRealms = new System.Windows.Forms.ListBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnTransfer
|
||||
//
|
||||
this.btnTransfer.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btnTransfer.Location = new System.Drawing.Point(0, 286);
|
||||
this.btnTransfer.Name = "btnTransfer";
|
||||
this.btnTransfer.Size = new System.Drawing.Size(242, 23);
|
||||
this.btnTransfer.TabIndex = 1;
|
||||
this.btnTransfer.Text = "Select Realm";
|
||||
this.btnTransfer.UseVisualStyleBackColor = true;
|
||||
this.btnTransfer.Click += new System.EventHandler(this.btnTransfer_Click);
|
||||
//
|
||||
// lstRealms
|
||||
//
|
||||
this.lstRealms.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstRealms.FormattingEnabled = true;
|
||||
this.lstRealms.Location = new System.Drawing.Point(0, 0);
|
||||
this.lstRealms.Name = "lstRealms";
|
||||
this.lstRealms.Size = new System.Drawing.Size(242, 277);
|
||||
this.lstRealms.TabIndex = 3;
|
||||
this.lstRealms.SelectedIndexChanged += new System.EventHandler(this.lstRealms_SelectedIndexChanged);
|
||||
//
|
||||
// ExistingRealms
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(242, 309);
|
||||
this.Controls.Add(this.lstRealms);
|
||||
this.Controls.Add(this.btnTransfer);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ExistingRealms";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Existing Realms";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnTransfer;
|
||||
internal System.Windows.Forms.ListBox lstRealms;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -1,62 +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 System.IO;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class ExistingRealms : Form
|
||||
{
|
||||
List<Realm> realms = new List<Realm>();
|
||||
internal string _RealmFilename = "";
|
||||
internal string _RealmName = "";
|
||||
|
||||
public ExistingRealms()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
string realmRoot = FileManager.GetDataPath(SaveDataTypes.Realms);
|
||||
string[] realmFiles = Directory.GetFiles(realmRoot, "*.realm", SearchOption.AllDirectories);
|
||||
|
||||
foreach (string file in realmFiles)
|
||||
{
|
||||
Realm r = new Realm();
|
||||
r = (Realm)FileManager.Load(file, r);
|
||||
realms.Add(r);
|
||||
}
|
||||
|
||||
foreach (Realm realm in realms)
|
||||
{
|
||||
lstRealms.Items.Add(realm.Name);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnTransfer_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void lstRealms_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (lstRealms.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
foreach (Realm realm in realms)
|
||||
{
|
||||
if (realm.Name == lstRealms.SelectedItem.ToString())
|
||||
{
|
||||
_RealmFilename = realm.Filename;
|
||||
_RealmName = realm.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,120 +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>
|
||||
</root>
|
|
@ -1,45 +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;
|
||||
|
||||
//MudEngine
|
||||
using MudDesigner.MudEngine;
|
||||
using MudDesigner.MudEngine.Attributes;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class ProjectSettings : Form
|
||||
{
|
||||
public ProjectSettings()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void frmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
//Aquire the Project settings and show them.
|
||||
propertySettings.SelectedObject = Program.Project;
|
||||
txtStory.Text = Program.Project.Story;
|
||||
}
|
||||
|
||||
private void txtStory_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
Program.Project.Story = txtStory.Text;
|
||||
}
|
||||
|
||||
private void ProjectSettings_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
string filename = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Root), "Project.xml");
|
||||
FileManager.Save(filename, Program.Project);
|
||||
}
|
||||
}
|
||||
}
|
118
Mud Designer/Editors/ProjectSettings.designer.cs
generated
118
Mud Designer/Editors/ProjectSettings.designer.cs
generated
|
@ -1,118 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class ProjectSettings
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.propertySettings = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.txtStory = new System.Windows.Forms.RichTextBox();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.groupBox5.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.propertySettings);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox5);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(573, 390);
|
||||
this.splitContainer1.SplitterDistance = 254;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
// propertySettings
|
||||
//
|
||||
this.propertySettings.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertySettings.Location = new System.Drawing.Point(0, 0);
|
||||
this.propertySettings.Name = "propertySettings";
|
||||
this.propertySettings.Size = new System.Drawing.Size(254, 390);
|
||||
this.propertySettings.TabIndex = 0;
|
||||
this.propertySettings.ToolbarVisible = false;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.txtStory);
|
||||
this.groupBox5.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(309, 384);
|
||||
this.groupBox5.TabIndex = 1;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Project Story";
|
||||
//
|
||||
// txtStory
|
||||
//
|
||||
this.txtStory.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtStory.Location = new System.Drawing.Point(3, 16);
|
||||
this.txtStory.Name = "txtStory";
|
||||
this.txtStory.Size = new System.Drawing.Size(303, 365);
|
||||
this.txtStory.TabIndex = 2;
|
||||
this.txtStory.Text = "";
|
||||
this.txtStory.TextChanged += new System.EventHandler(this.txtStory_TextChanged);
|
||||
//
|
||||
// ProjectSettings
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(573, 390);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ProjectSettings";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Mud Designer: Project Manager";
|
||||
this.Load += new System.EventHandler(this.frmMain_Load);
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ProjectSettings_FormClosing);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.PropertyGrid propertySettings;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.RichTextBox txtStory;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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="splitContainer1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -1,198 +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 System.IO;
|
||||
using ManagedScripting;
|
||||
//MudEngine
|
||||
using MudDesigner.MudEngine;
|
||||
using MudDesigner.MudEngine.Attributes;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class RealmExplorer : Form
|
||||
{
|
||||
List<Realm> realms;
|
||||
|
||||
public RealmExplorer()
|
||||
{
|
||||
//build our UI
|
||||
InitializeComponent();
|
||||
|
||||
//instance our collections
|
||||
realms = new List<Realm>();
|
||||
|
||||
//instance the environments
|
||||
Program.Realm = new Realm();
|
||||
|
||||
//instance the script engine
|
||||
Program.ScriptEngine = new ScriptingEngine();
|
||||
Program.ScriptEngine.CompileStyle = ManagedScripting.Compilers.BaseCompiler.ScriptCompileStyle.CompileToMemory;
|
||||
Program.ScriptEngine.KeepTempFiles = false;
|
||||
|
||||
//Build an array of realm directories
|
||||
string[] directories = System.IO.Directory.GetDirectories(FileManager.GetDataPath(SaveDataTypes.Realms));
|
||||
//loop through each realm folder and get it's realm file
|
||||
foreach (string dir in directories)
|
||||
{
|
||||
//instance a new realm
|
||||
Realm r = new Realm();
|
||||
|
||||
//Split the path to the realm folder into an array
|
||||
//so we can get the final folder name (our realm directory)
|
||||
string[] folders = dir.Split('\\');
|
||||
|
||||
//Build our realm file paths.
|
||||
if (!folders.Length.Equals(0))
|
||||
{
|
||||
string realmFile = folders[folders.Length - 1] + ".realm";
|
||||
string realmPath = System.IO.Path.Combine(dir, realmFile);
|
||||
|
||||
//if the realm path exists, load the realm and add it to the listbox
|
||||
if (System.IO.File.Exists(realmPath))
|
||||
{
|
||||
r = (Realm)FileManager.Load(realmPath, r);
|
||||
realms.Add(r);
|
||||
lstRealms.Items.Add(r.Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Failed to load Realm '" + System.IO.Path.GetFileNameWithoutExtension(realmFile)
|
||||
+ "'.\nThis error is generated due to the Realm folder existing, but the Realm file missing.", "Realm Explorer", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal bool RealmExists(string realm)
|
||||
{
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), realm);
|
||||
if (Directory.Exists(realm))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
private void btnNewRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Reinstance all of our environments
|
||||
Program.Realm = new Realm();
|
||||
|
||||
propertyRealm.SelectedObject = Program.Realm;
|
||||
}
|
||||
|
||||
private void btnSaveRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
//get our paths first.
|
||||
string realmPath = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), Program.Realm.Name);
|
||||
string realmFile = System.IO.Path.Combine(realmPath, Program.Realm.Filename);
|
||||
|
||||
//check if the directory exists
|
||||
if (!RealmExists(Program.Realm.Name))
|
||||
System.IO.Directory.CreateDirectory(realmPath);
|
||||
|
||||
//save the realm
|
||||
FileManager.Save(realmFile, Program.Realm);
|
||||
|
||||
//add it to the list box if it isn't already there
|
||||
if (!lstRealms.Items.Contains(Program.Realm.Name))
|
||||
lstRealms.Items.Add(Program.Realm.Name);
|
||||
|
||||
//sets to true if the realm already exists (incase we are editing)
|
||||
bool realmFound = false;
|
||||
foreach (Realm r in realms)
|
||||
{
|
||||
//if the current realm in the loop matches our currently loaded realm
|
||||
if (r.Name == Program.Realm.Name)
|
||||
{
|
||||
//we found it.
|
||||
realmFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//if the currently loaded room is already in our collection
|
||||
//don't add it again.
|
||||
if (!realmFound)
|
||||
realms.Add(Program.Realm);
|
||||
|
||||
//Select our new realm in the listbox
|
||||
lstRealms.SelectedIndex = lstRealms.Items.IndexOf(Program.Realm.Name);
|
||||
}
|
||||
|
||||
private void btnDeleteRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Make sure we have our realm selected
|
||||
if (lstRealms.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("Select a Realm to delete first!", "Realm Exporer", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
//Ask to make sure its ok to delete the realm and all of its
|
||||
//zones/rooms that are contained within it.
|
||||
DialogResult result = MessageBox.Show("Are you sure you want to delete the " + lstRealms.SelectedItem.ToString() + " Realm?\n\nWarning! All Zones & Rooms contained within this Realm will be deleted!",
|
||||
"Realm Explorer", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
|
||||
//cancel the delete
|
||||
if (result == DialogResult.No)
|
||||
return;
|
||||
|
||||
//get our paths
|
||||
//Load the realms name
|
||||
Realm realm = new Realm();
|
||||
foreach (string r in Directory.GetFiles(FileManager.GetDataPath(SaveDataTypes.Realms), "*.realm", SearchOption.AllDirectories))
|
||||
{
|
||||
realm = (Realm)FileManager.Load(r, realm);
|
||||
if (realm.Name == lstRealms.SelectedItem.ToString())
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (realm.Name == "New Realm")
|
||||
{
|
||||
MessageBox.Show("Unable to locate the selected realm for deletion!", "Realm Explorer", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), realm.Name);
|
||||
|
||||
//Delete the realm and all of its contents (zones/rooms)
|
||||
Directory.Delete(realmPath, true);
|
||||
|
||||
//remove it from the listbox
|
||||
lstRealms.Items.Remove(lstRealms.SelectedItem);
|
||||
//clear the room
|
||||
Program.Realm = new Realm();
|
||||
propertyRealm.SelectedObject = null;
|
||||
}
|
||||
private void btnLoadRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Incase an item was selected & removed from the listbox
|
||||
//this event gets triggered, even though nothing is selected.
|
||||
if (lstRealms.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
//Loop through the realms collection to find the selected realm
|
||||
foreach (Realm r in realms)
|
||||
{
|
||||
//check if we have a match
|
||||
if (r.Name == lstRealms.SelectedItem.ToString())
|
||||
{
|
||||
//load it.
|
||||
Program.Realm = r;
|
||||
propertyRealm.SelectedObject = r;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
274
Mud Designer/Editors/RealmExplorer.designer.cs
generated
274
Mud Designer/Editors/RealmExplorer.designer.cs
generated
|
@ -1,274 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class RealmExplorer
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabRealm = new System.Windows.Forms.TabPage();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.lstRealms = new System.Windows.Forms.ListBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.btnLoadRealm = new System.Windows.Forms.Button();
|
||||
this.btnSaveRealm = new System.Windows.Forms.Button();
|
||||
this.btnDeleteRealm = new System.Windows.Forms.Button();
|
||||
this.btnNewRealm = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyRealm = new System.Windows.Forms.PropertyGrid();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabRealm.SuspendLayout();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(126, 18);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(109, 23);
|
||||
this.button1.TabIndex = 11;
|
||||
this.button1.Text = "Load Realm";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(127, 47);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(109, 23);
|
||||
this.button2.TabIndex = 10;
|
||||
this.button2.Text = "Save Realm";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(6, 48);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(114, 23);
|
||||
this.button3.TabIndex = 9;
|
||||
this.button3.Text = "Delete Realm";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(6, 19);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(114, 23);
|
||||
this.button4.TabIndex = 8;
|
||||
this.button4.Text = "New Realm";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
this.tabControl1.Controls.Add(this.tabRealm);
|
||||
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(470, 464);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
//
|
||||
// tabRealm
|
||||
//
|
||||
this.tabRealm.Controls.Add(this.splitContainer1);
|
||||
this.tabRealm.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabRealm.Name = "tabRealm";
|
||||
this.tabRealm.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabRealm.Size = new System.Drawing.Size(462, 438);
|
||||
this.tabRealm.TabIndex = 0;
|
||||
this.tabRealm.Text = "Realm Setup";
|
||||
this.tabRealm.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(3, 3);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.groupBox2);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox3);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(456, 432);
|
||||
this.splitContainer1.SplitterDistance = 196;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lstRealms);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 76);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(196, 356);
|
||||
this.groupBox1.TabIndex = 36;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Realms List";
|
||||
//
|
||||
// lstRealms
|
||||
//
|
||||
this.lstRealms.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstRealms.FormattingEnabled = true;
|
||||
this.lstRealms.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstRealms.Name = "lstRealms";
|
||||
this.lstRealms.Size = new System.Drawing.Size(190, 329);
|
||||
this.lstRealms.Sorted = true;
|
||||
this.lstRealms.TabIndex = 17;
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.btnLoadRealm);
|
||||
this.groupBox2.Controls.Add(this.btnSaveRealm);
|
||||
this.groupBox2.Controls.Add(this.btnDeleteRealm);
|
||||
this.groupBox2.Controls.Add(this.btnNewRealm);
|
||||
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(196, 76);
|
||||
this.groupBox2.TabIndex = 34;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Realm Setup";
|
||||
//
|
||||
// btnLoadRealm
|
||||
//
|
||||
this.btnLoadRealm.Location = new System.Drawing.Point(106, 19);
|
||||
this.btnLoadRealm.Name = "btnLoadRealm";
|
||||
this.btnLoadRealm.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnLoadRealm.TabIndex = 11;
|
||||
this.btnLoadRealm.Text = "Load Realm";
|
||||
this.btnLoadRealm.UseVisualStyleBackColor = true;
|
||||
this.btnLoadRealm.Click += new System.EventHandler(this.btnLoadRealm_Click);
|
||||
//
|
||||
// btnSaveRealm
|
||||
//
|
||||
this.btnSaveRealm.Location = new System.Drawing.Point(107, 48);
|
||||
this.btnSaveRealm.Name = "btnSaveRealm";
|
||||
this.btnSaveRealm.Size = new System.Drawing.Size(84, 23);
|
||||
this.btnSaveRealm.TabIndex = 10;
|
||||
this.btnSaveRealm.Text = "Save Realm";
|
||||
this.btnSaveRealm.UseVisualStyleBackColor = true;
|
||||
this.btnSaveRealm.Click += new System.EventHandler(this.btnSaveRealm_Click);
|
||||
//
|
||||
// btnDeleteRealm
|
||||
//
|
||||
this.btnDeleteRealm.Location = new System.Drawing.Point(6, 48);
|
||||
this.btnDeleteRealm.Name = "btnDeleteRealm";
|
||||
this.btnDeleteRealm.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnDeleteRealm.TabIndex = 9;
|
||||
this.btnDeleteRealm.Text = "Delete Realm";
|
||||
this.btnDeleteRealm.UseVisualStyleBackColor = true;
|
||||
this.btnDeleteRealm.Click += new System.EventHandler(this.btnDeleteRealm_Click);
|
||||
//
|
||||
// btnNewRealm
|
||||
//
|
||||
this.btnNewRealm.Location = new System.Drawing.Point(6, 19);
|
||||
this.btnNewRealm.Name = "btnNewRealm";
|
||||
this.btnNewRealm.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnNewRealm.TabIndex = 8;
|
||||
this.btnNewRealm.Text = "New Realm";
|
||||
this.btnNewRealm.UseVisualStyleBackColor = true;
|
||||
this.btnNewRealm.Click += new System.EventHandler(this.btnNewRealm_Click);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.propertyRealm);
|
||||
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox3.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(256, 432);
|
||||
this.groupBox3.TabIndex = 34;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Realm Properties";
|
||||
//
|
||||
// propertyRealm
|
||||
//
|
||||
this.propertyRealm.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyRealm.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyRealm.Name = "propertyRealm";
|
||||
this.propertyRealm.Size = new System.Drawing.Size(250, 413);
|
||||
this.propertyRealm.TabIndex = 18;
|
||||
this.propertyRealm.ToolbarVisible = false;
|
||||
//
|
||||
// RealmExplorer
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(470, 464);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "RealmExplorer";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Realm Explorer";
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabRealm.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabRealm;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.ListBox lstRealms;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.Button btnLoadRealm;
|
||||
private System.Windows.Forms.Button btnSaveRealm;
|
||||
private System.Windows.Forms.Button btnDeleteRealm;
|
||||
private System.Windows.Forms.Button btnNewRealm;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.PropertyGrid propertyRealm;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,120 +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>
|
||||
</root>
|
59
Mud Designer/Editors/ScriptEditor.Designer.cs
generated
59
Mud Designer/Editors/ScriptEditor.Designer.cs
generated
|
@ -1,59 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class ScriptEditor
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// richTextBox1
|
||||
//
|
||||
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.Size = new System.Drawing.Size(575, 548);
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "";
|
||||
//
|
||||
// frmScriptEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(575, 548);
|
||||
this.Controls.Add(this.richTextBox1);
|
||||
this.Name = "frmScriptEditor";
|
||||
this.Text = "frmScriptEditor";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.RichTextBox richTextBox1;
|
||||
}
|
||||
}
|
|
@ -1,30 +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 MudDesigner.MudEngine.GameObjects;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class ScriptEditor : Form
|
||||
{
|
||||
public string Script
|
||||
{
|
||||
get
|
||||
{
|
||||
return richTextBox1.Text;
|
||||
}
|
||||
}
|
||||
public ScriptEditor(BaseObject baseObject)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
richTextBox1.Text = baseObject.Script;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,120 +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>
|
||||
</root>
|
|
@ -1,179 +0,0 @@
|
|||
using System.IO;
|
||||
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 MudDesigner.MudEngine.GameObjects.Environment;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class ToolkitLauncher : Form
|
||||
{
|
||||
bool IsStartup = true;
|
||||
|
||||
public ToolkitLauncher()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Text = "Mud Designer Toolkit " + Program.Settings.GetVersion();
|
||||
|
||||
if (Program.Settings.DefaultRealm != null)
|
||||
{
|
||||
lblCurrentRealm.Text = "Current Realm: " + Program.Settings.DefaultRealm.Name;
|
||||
chkDefaultRealm.Checked = true;
|
||||
}
|
||||
|
||||
//done starting up. This prevents checkbox change events from firing during startup
|
||||
IsStartup = false;
|
||||
}
|
||||
|
||||
private void btnProjectSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
ProjectSettings form = new ProjectSettings();
|
||||
Program.CurrentEditor = form;
|
||||
|
||||
form.Show();
|
||||
this.Hide();
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
form = null;
|
||||
|
||||
this.Show();
|
||||
}
|
||||
|
||||
private void btnCurrencyEditor_Click(object sender, EventArgs e)
|
||||
{
|
||||
CurrencyEditor form = new CurrencyEditor();
|
||||
Program.CurrentEditor = form;
|
||||
|
||||
form.Show();
|
||||
this.Hide();
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
form = null;
|
||||
|
||||
this.Show();
|
||||
}
|
||||
|
||||
private void btnRealmExplorer_Click(object sender, EventArgs e)
|
||||
{
|
||||
RealmExplorer form = new RealmExplorer();
|
||||
Program.CurrentEditor = form;
|
||||
|
||||
form.Show();
|
||||
this.Hide();
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
form = null;
|
||||
|
||||
this.Show();
|
||||
}
|
||||
|
||||
private void btnZoneBuilder_Click(object sender, EventArgs e)
|
||||
{
|
||||
ZoneBuilder form = new ZoneBuilder();
|
||||
Program.CurrentEditor = form;
|
||||
|
||||
form.Show();
|
||||
this.Hide();
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
form = null;
|
||||
|
||||
this.Show();
|
||||
}
|
||||
|
||||
private void chkDefaultRealm_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (IsStartup)
|
||||
return;
|
||||
|
||||
if (!chkDefaultRealm.Checked)
|
||||
{
|
||||
Program.Settings.DefaultRealm = null;
|
||||
lblCurrentRealm.Text = "Current Realm: None";
|
||||
SaveSettings();
|
||||
}
|
||||
else
|
||||
{
|
||||
Realm realm = GetRealm();
|
||||
if (realm != null)
|
||||
{
|
||||
Program.Settings.DefaultRealm = realm;
|
||||
SaveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnChangeRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
Realm realm = GetRealm();
|
||||
if (realm != null)
|
||||
{
|
||||
Program.Settings.DefaultRealm = realm;
|
||||
SaveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
public Realm GetRealm()
|
||||
{
|
||||
ExistingRealms form = new ExistingRealms();
|
||||
form.Show();
|
||||
this.Hide();
|
||||
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
this.Show();
|
||||
|
||||
Realm realm = new Realm();
|
||||
string[] files = Directory.GetFiles(FileManager.GetDataPath(SaveDataTypes.Realms), "*.realm", SearchOption.AllDirectories);
|
||||
foreach (string file in files)
|
||||
{
|
||||
realm = (Realm)FileManager.Load(file, realm);
|
||||
if (realm.Name == form.lstRealms.SelectedItem.ToString())
|
||||
{
|
||||
Program.Settings.DefaultRealm = realm;
|
||||
lblCurrentRealm.Text = "Current Realm: " + realm.Name;
|
||||
return realm;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void SaveSettings()
|
||||
{
|
||||
string savePath = Path.Combine(Application.StartupPath, "Toolkit.xml");
|
||||
FileManager.Save(savePath, Program.Settings);
|
||||
}
|
||||
|
||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("http://muddesigner.dailyforum.net");
|
||||
}
|
||||
|
||||
private void btnTest_Click(object sender, EventArgs e)
|
||||
{
|
||||
Designer form = new Designer();
|
||||
Program.CurrentEditor = form;
|
||||
|
||||
form.Show();
|
||||
this.Hide();
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
form = null;
|
||||
|
||||
this.Show();
|
||||
}
|
||||
}
|
||||
}
|
537
Mud Designer/Editors/ToolkitLauncher.designer.cs
generated
537
Mud Designer/Editors/ToolkitLauncher.designer.cs
generated
|
@ -1,537 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class ToolkitLauncher
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.btnLogo = new System.Windows.Forms.Button();
|
||||
this.tabEditors = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.btnProjectSettings = new System.Windows.Forms.Button();
|
||||
this.btnCurrencyEditor = new System.Windows.Forms.Button();
|
||||
this.btnRealmExplorer = new System.Windows.Forms.Button();
|
||||
this.btnZoneBuilder = new System.Windows.Forms.Button();
|
||||
this.tabToolkitSettings = new System.Windows.Forms.TabPage();
|
||||
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnChangeRealm = new System.Windows.Forms.Button();
|
||||
this.lblCurrentRealm = new System.Windows.Forms.Label();
|
||||
this.chkDefaultRealm = new System.Windows.Forms.CheckBox();
|
||||
this.tabFunctions = new System.Windows.Forms.TabPage();
|
||||
this.groupBox9 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox14 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox12 = new System.Windows.Forms.GroupBox();
|
||||
this.comReturnTypes = new System.Windows.Forms.ComboBox();
|
||||
this.groupBox13 = new System.Windows.Forms.GroupBox();
|
||||
this.txtFunctionName = new System.Windows.Forms.TextBox();
|
||||
this.groupBox11 = new System.Windows.Forms.GroupBox();
|
||||
this.comFunctions = new System.Windows.Forms.ComboBox();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.txtScript = new System.Windows.Forms.RichTextBox();
|
||||
this.tabVariables = new System.Windows.Forms.TabPage();
|
||||
this.Help = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.btnTest = new System.Windows.Forms.Button();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.tabEditors.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.tabToolkitSettings.SuspendLayout();
|
||||
this.flowLayoutPanel2.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.tabFunctions.SuspendLayout();
|
||||
this.groupBox9.SuspendLayout();
|
||||
this.groupBox12.SuspendLayout();
|
||||
this.groupBox13.SuspendLayout();
|
||||
this.groupBox11.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.linkLabel1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.btnLogo);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.tabEditors);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(627, 383);
|
||||
this.splitContainer1.SplitterDistance = 154;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.BackColor = System.Drawing.Color.Black;
|
||||
this.label2.ForeColor = System.Drawing.Color.White;
|
||||
this.label2.Location = new System.Drawing.Point(267, 131);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(227, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "to leave feedback and help build a community!";
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.BackColor = System.Drawing.Color.Black;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(160, 131);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(110, 13);
|
||||
this.linkLabel1.TabIndex = 2;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "Mud Designer Forums";
|
||||
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.BackColor = System.Drawing.Color.Black;
|
||||
this.label1.ForeColor = System.Drawing.Color.White;
|
||||
this.label1.Location = new System.Drawing.Point(7, 131);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(157, 13);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Developers please visit the new";
|
||||
//
|
||||
// btnLogo
|
||||
//
|
||||
this.btnLogo.BackColor = System.Drawing.Color.Black;
|
||||
this.btnLogo.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnLogo.FlatAppearance.BorderColor = System.Drawing.Color.Gray;
|
||||
this.btnLogo.FlatAppearance.BorderSize = 5;
|
||||
this.btnLogo.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Black;
|
||||
this.btnLogo.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Black;
|
||||
this.btnLogo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnLogo.Font = new System.Drawing.Font("Kootenay", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnLogo.ForeColor = System.Drawing.Color.Gray;
|
||||
this.btnLogo.Location = new System.Drawing.Point(0, 0);
|
||||
this.btnLogo.Name = "btnLogo";
|
||||
this.btnLogo.Size = new System.Drawing.Size(627, 154);
|
||||
this.btnLogo.TabIndex = 0;
|
||||
this.btnLogo.Text = "MUD Designer Toolkit\r\n";
|
||||
this.btnLogo.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// tabEditors
|
||||
//
|
||||
this.tabEditors.Controls.Add(this.tabPage1);
|
||||
this.tabEditors.Controls.Add(this.tabToolkitSettings);
|
||||
this.tabEditors.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabEditors.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabEditors.Name = "tabEditors";
|
||||
this.tabEditors.SelectedIndex = 0;
|
||||
this.tabEditors.Size = new System.Drawing.Size(627, 225);
|
||||
this.tabEditors.TabIndex = 0;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.flowLayoutPanel1);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(619, 199);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Available Editors";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnProjectSettings);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnCurrencyEditor);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnRealmExplorer);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnZoneBuilder);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnTest);
|
||||
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(613, 193);
|
||||
this.flowLayoutPanel1.TabIndex = 1;
|
||||
//
|
||||
// btnProjectSettings
|
||||
//
|
||||
this.btnProjectSettings.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnProjectSettings.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnProjectSettings.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnProjectSettings.Name = "btnProjectSettings";
|
||||
this.btnProjectSettings.Size = new System.Drawing.Size(147, 55);
|
||||
this.btnProjectSettings.TabIndex = 0;
|
||||
this.btnProjectSettings.Text = "Project Settings";
|
||||
this.Help.SetToolTip(this.btnProjectSettings, "Managed your MUDs project settings. \r\nSettings include day/night transitions, sta" +
|
||||
"rting locations and various other MUD startup options");
|
||||
this.btnProjectSettings.UseVisualStyleBackColor = true;
|
||||
this.btnProjectSettings.Click += new System.EventHandler(this.btnProjectSettings_Click);
|
||||
//
|
||||
// btnCurrencyEditor
|
||||
//
|
||||
this.btnCurrencyEditor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnCurrencyEditor.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCurrencyEditor.Location = new System.Drawing.Point(156, 3);
|
||||
this.btnCurrencyEditor.Name = "btnCurrencyEditor";
|
||||
this.btnCurrencyEditor.Size = new System.Drawing.Size(147, 55);
|
||||
this.btnCurrencyEditor.TabIndex = 1;
|
||||
this.btnCurrencyEditor.Text = "Currency Editor";
|
||||
this.Help.SetToolTip(this.btnCurrencyEditor, "Edits the currency that players will use for transactions\r\nduring your MUDs gamep" +
|
||||
"lay.");
|
||||
this.btnCurrencyEditor.UseVisualStyleBackColor = true;
|
||||
this.btnCurrencyEditor.Click += new System.EventHandler(this.btnCurrencyEditor_Click);
|
||||
//
|
||||
// btnRealmExplorer
|
||||
//
|
||||
this.btnRealmExplorer.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnRealmExplorer.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnRealmExplorer.Location = new System.Drawing.Point(309, 3);
|
||||
this.btnRealmExplorer.Name = "btnRealmExplorer";
|
||||
this.btnRealmExplorer.Size = new System.Drawing.Size(147, 55);
|
||||
this.btnRealmExplorer.TabIndex = 3;
|
||||
this.btnRealmExplorer.Text = "Realm Explorer";
|
||||
this.Help.SetToolTip(this.btnRealmExplorer, "Create and manage Realms using the Explorer.\r\nRealms contain the Zones & Rooms of" +
|
||||
" your MUD, allowing\r\nplayers to traverse your MUD.");
|
||||
this.btnRealmExplorer.UseVisualStyleBackColor = true;
|
||||
this.btnRealmExplorer.Click += new System.EventHandler(this.btnRealmExplorer_Click);
|
||||
//
|
||||
// btnZoneBuilder
|
||||
//
|
||||
this.btnZoneBuilder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnZoneBuilder.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnZoneBuilder.Location = new System.Drawing.Point(462, 3);
|
||||
this.btnZoneBuilder.Name = "btnZoneBuilder";
|
||||
this.btnZoneBuilder.Size = new System.Drawing.Size(147, 55);
|
||||
this.btnZoneBuilder.TabIndex = 4;
|
||||
this.btnZoneBuilder.Text = "Zone Builder";
|
||||
this.Help.SetToolTip(this.btnZoneBuilder, "The Zone Builder provides tools to create and manage your MUDs\r\nZones & Rooms. Cr" +
|
||||
"eate Rooms, link them together via Doors and\r\nconnect Zones together either with" +
|
||||
"in the same Realm or cross-realms.");
|
||||
this.btnZoneBuilder.UseVisualStyleBackColor = true;
|
||||
this.btnZoneBuilder.Click += new System.EventHandler(this.btnZoneBuilder_Click);
|
||||
//
|
||||
// tabToolkitSettings
|
||||
//
|
||||
this.tabToolkitSettings.Controls.Add(this.flowLayoutPanel2);
|
||||
this.tabToolkitSettings.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabToolkitSettings.Name = "tabToolkitSettings";
|
||||
this.tabToolkitSettings.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabToolkitSettings.Size = new System.Drawing.Size(619, 199);
|
||||
this.tabToolkitSettings.TabIndex = 1;
|
||||
this.tabToolkitSettings.Text = "Toolkit Settings";
|
||||
this.tabToolkitSettings.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel2
|
||||
//
|
||||
this.flowLayoutPanel2.Controls.Add(this.groupBox1);
|
||||
this.flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel2.Location = new System.Drawing.Point(3, 3);
|
||||
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
|
||||
this.flowLayoutPanel2.Size = new System.Drawing.Size(613, 193);
|
||||
this.flowLayoutPanel2.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.btnChangeRealm);
|
||||
this.groupBox1.Controls.Add(this.lblCurrentRealm);
|
||||
this.groupBox1.Controls.Add(this.chkDefaultRealm);
|
||||
this.groupBox1.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(215, 61);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Toolkit Default Realm Settings";
|
||||
//
|
||||
// btnChangeRealm
|
||||
//
|
||||
this.btnChangeRealm.Location = new System.Drawing.Point(154, 13);
|
||||
this.btnChangeRealm.Name = "btnChangeRealm";
|
||||
this.btnChangeRealm.Size = new System.Drawing.Size(55, 23);
|
||||
this.btnChangeRealm.TabIndex = 5;
|
||||
this.btnChangeRealm.Text = "Change";
|
||||
this.btnChangeRealm.UseVisualStyleBackColor = true;
|
||||
this.btnChangeRealm.Click += new System.EventHandler(this.btnChangeRealm_Click);
|
||||
//
|
||||
// lblCurrentRealm
|
||||
//
|
||||
this.lblCurrentRealm.AutoSize = true;
|
||||
this.lblCurrentRealm.Location = new System.Drawing.Point(3, 39);
|
||||
this.lblCurrentRealm.Name = "lblCurrentRealm";
|
||||
this.lblCurrentRealm.Size = new System.Drawing.Size(106, 13);
|
||||
this.lblCurrentRealm.TabIndex = 4;
|
||||
this.lblCurrentRealm.Text = "Current Realm: None";
|
||||
//
|
||||
// chkDefaultRealm
|
||||
//
|
||||
this.chkDefaultRealm.AutoSize = true;
|
||||
this.chkDefaultRealm.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.chkDefaultRealm.Location = new System.Drawing.Point(6, 19);
|
||||
this.chkDefaultRealm.Name = "chkDefaultRealm";
|
||||
this.chkDefaultRealm.Size = new System.Drawing.Size(126, 17);
|
||||
this.chkDefaultRealm.TabIndex = 3;
|
||||
this.chkDefaultRealm.Text = "Enable Default Realm";
|
||||
this.chkDefaultRealm.UseVisualStyleBackColor = true;
|
||||
this.chkDefaultRealm.CheckedChanged += new System.EventHandler(this.chkDefaultRealm_CheckedChanged);
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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";
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// 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 = "";
|
||||
//
|
||||
// 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;
|
||||
//
|
||||
// Help
|
||||
//
|
||||
this.Help.AutoPopDelay = 8000;
|
||||
this.Help.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.Help.InitialDelay = 500;
|
||||
this.Help.IsBalloon = true;
|
||||
this.Help.ReshowDelay = 100;
|
||||
this.Help.ToolTipTitle = "Toolkit Help";
|
||||
//
|
||||
// btnTest
|
||||
//
|
||||
this.btnTest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnTest.Location = new System.Drawing.Point(3, 64);
|
||||
this.btnTest.Name = "btnTest";
|
||||
this.btnTest.Size = new System.Drawing.Size(147, 55);
|
||||
this.btnTest.TabIndex = 5;
|
||||
this.btnTest.Text = "New All-In-One Test Designer";
|
||||
this.Help.SetToolTip(this.btnTest, "The Zone Builder provides tools to create and manage your MUDs\r\nZones & Rooms. Cr" +
|
||||
"eate Rooms, link them together via Doors and\r\nconnect Zones together either with" +
|
||||
"in the same Realm or cross-realms.");
|
||||
this.btnTest.UseVisualStyleBackColor = true;
|
||||
this.btnTest.Click += new System.EventHandler(this.btnTest_Click);
|
||||
//
|
||||
// ToolkitLauncher
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(627, 383);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ToolkitLauncher";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Mud Designer Toolkit";
|
||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel1.PerformLayout();
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.tabEditors.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.tabToolkitSettings.ResumeLayout(false);
|
||||
this.flowLayoutPanel2.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.tabFunctions.ResumeLayout(false);
|
||||
this.groupBox9.ResumeLayout(false);
|
||||
this.groupBox12.ResumeLayout(false);
|
||||
this.groupBox13.ResumeLayout(false);
|
||||
this.groupBox13.PerformLayout();
|
||||
this.groupBox11.ResumeLayout(false);
|
||||
this.groupBox8.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.Button btnLogo;
|
||||
private System.Windows.Forms.TabControl tabEditors;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||
private System.Windows.Forms.Button btnProjectSettings;
|
||||
private System.Windows.Forms.Button btnCurrencyEditor;
|
||||
private System.Windows.Forms.TabPage tabFunctions;
|
||||
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;
|
||||
private System.Windows.Forms.GroupBox groupBox8;
|
||||
private System.Windows.Forms.RichTextBox txtScript;
|
||||
private System.Windows.Forms.TabPage tabVariables;
|
||||
private System.Windows.Forms.Button btnRealmExplorer;
|
||||
private System.Windows.Forms.Button btnZoneBuilder;
|
||||
private System.Windows.Forms.ToolTip Help;
|
||||
private System.Windows.Forms.TabPage tabToolkitSettings;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.CheckBox chkDefaultRealm;
|
||||
private System.Windows.Forms.Label lblCurrentRealm;
|
||||
private System.Windows.Forms.Button btnChangeRealm;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Button btnTest;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,129 +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="splitContainer1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Help.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="Help.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -1,466 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.IO;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
//MudEngine
|
||||
using MudDesigner.MudEngine;
|
||||
using MudDesigner.MudEngine.Attributes;
|
||||
using MudDesigner.MudEngine.FileSystem;
|
||||
using MudDesigner.MudEngine.GameObjects;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
using ManagedScripting;
|
||||
|
||||
namespace MudDesigner.Editors
|
||||
{
|
||||
public partial class ZoneBuilder : Form
|
||||
{
|
||||
internal bool IsEditingExisting = false;
|
||||
bool IsRealmLoaded = false;
|
||||
bool IsZoneLoaded = false;
|
||||
bool IsCreatingZone = false;
|
||||
bool IsRoomLoaded = false;
|
||||
bool IsCreatingRoom = false;
|
||||
|
||||
List<Zone> _Zones = new List<Zone>();
|
||||
|
||||
public ZoneBuilder()
|
||||
{
|
||||
InitializeComponent();
|
||||
//Reinstance all of our environments
|
||||
Program.Realm = new Realm();
|
||||
|
||||
//If we have a default Realm selected, lets load it
|
||||
try
|
||||
{
|
||||
if (Program.Settings.DefaultRealm != null)
|
||||
{
|
||||
//Load it
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), Program.Settings.DefaultRealm.Name);
|
||||
string realmFile = Path.Combine(realmPath, Program.Settings.DefaultRealm.Filename);
|
||||
|
||||
if (File.Exists(realmFile))
|
||||
{
|
||||
Program.Realm = (Realm)FileManager.Load(realmFile, Program.Realm);
|
||||
|
||||
this.Text = "Zone Builder: (" + Program.Realm.Name + ")";
|
||||
IsRealmLoaded = true;
|
||||
}
|
||||
|
||||
//realm is loaded, now clear out the list of zones & rooms and show the zones contained
|
||||
//within the new realm
|
||||
lstZones.Items.Clear();
|
||||
lstRooms.Items.Clear();
|
||||
_Zones.Clear();
|
||||
string[] files = Directory.GetFiles(realmPath, "*.zone", SearchOption.AllDirectories);
|
||||
|
||||
foreach (string file in files)
|
||||
{
|
||||
string filename = Path.GetFileName(file);
|
||||
if (Program.Realm.Zones.Contains(filename))
|
||||
{
|
||||
Zone zone = new Zone();
|
||||
zone = (Zone)FileManager.Load(file, zone);
|
||||
zone.RefreshRoomList();
|
||||
_Zones.Add(zone);
|
||||
lstZones.Items.Add(zone.Name);
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnNewZone_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Check if a realm is loaded
|
||||
if (!IsRealmLoaded)
|
||||
{
|
||||
MessageBox.Show("You need to select a Realm to create a Zone in first.",
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsCreatingZone)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("You are currently editing a new Zone, are you sure you want to re-create a new Zone?",
|
||||
"Zone Builder", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
|
||||
if (result == DialogResult.No)
|
||||
return;
|
||||
}
|
||||
|
||||
//re-instance our zone and room
|
||||
Program.Zone = new Zone();
|
||||
|
||||
//Assign the realm to the zone
|
||||
Program.Zone.Realm = Program.Realm.Name;
|
||||
|
||||
//Assign to the property view
|
||||
propertyZone.SelectedObject = Program.Zone;
|
||||
|
||||
//Zone is in 'create' mode, and has not been saved/loaded fully yet.
|
||||
IsZoneLoaded = false;
|
||||
IsCreatingZone = true;
|
||||
//Reset our room, as we are creating a new zone, there will be no rooms.
|
||||
propertyRoom.SelectedObject = null;
|
||||
lstRooms.Items.Clear();
|
||||
}
|
||||
|
||||
private void btnSaveZone_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Get the realm and zone path setup first
|
||||
string realmPath = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), Program.Realm.Name);
|
||||
string zonePath = Path.Combine(realmPath, Program.Zone.Name);
|
||||
string zoneFile = Path.Combine(zonePath, Program.Zone.Filename);
|
||||
|
||||
if (!Directory.Exists(zonePath))
|
||||
Directory.CreateDirectory(zonePath);
|
||||
|
||||
//adjust our realm
|
||||
if (!Program.Realm.Zones.Contains(Program.Zone.Filename))
|
||||
Program.Realm.Zones.Add(Program.Zone.Filename);
|
||||
|
||||
//save the Zone
|
||||
FileManager.Save(zoneFile, Program.Zone);
|
||||
|
||||
//Re-save the realm, as we have changed it's Zone collection
|
||||
FileManager.Save(Path.Combine(realmPath, Program.Realm.Filename), Program.Realm);
|
||||
|
||||
//add it to the list box if it isn't already there
|
||||
if (!lstZones.Items.Contains(Program.Zone.Name))
|
||||
lstZones.Items.Add(Program.Zone.Name);
|
||||
|
||||
//Store it in our collection.
|
||||
foreach (Zone zone in _Zones)
|
||||
{
|
||||
//Check if we have a zone that exists already
|
||||
//with that name, incase the user is just editing it.
|
||||
if (zone.Name == Program.Zone.Name)
|
||||
{
|
||||
//remove it.
|
||||
_Zones.Remove(zone);
|
||||
break;
|
||||
}
|
||||
}
|
||||
//Add the zone to our collection
|
||||
_Zones.Add(Program.Zone);
|
||||
IsZoneLoaded = true;
|
||||
IsCreatingZone = false;
|
||||
}
|
||||
|
||||
private void btnSelectRealm_Click(object sender, EventArgs e)
|
||||
{
|
||||
//instance a form displaying all of the realms
|
||||
ExistingRealms form = new ExistingRealms();
|
||||
form.Text = "Zones owning Realm.";
|
||||
//show the form
|
||||
form.Show();
|
||||
this.Hide();
|
||||
|
||||
//wait for it to be closed
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
//Restore the zone builder
|
||||
this.Show();
|
||||
|
||||
//Check if we have selected a realm or not
|
||||
//if not, then cancel creating the zone
|
||||
if (form.lstRealms.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
//Load it
|
||||
string realmPath = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), form._RealmName);
|
||||
string realmFile = Path.Combine(realmPath, form._RealmFilename);
|
||||
Program.Realm = (Realm)FileManager.Load(realmFile, Program.Realm);
|
||||
|
||||
this.Text = "Zone Builder: (" + Program.Realm.Name + ")";
|
||||
IsRealmLoaded = true;
|
||||
IsZoneLoaded = false;
|
||||
IsRoomLoaded = false;
|
||||
|
||||
//realm is loaded, now clear out the list of zones & rooms and show the zones contained
|
||||
//within the new realm
|
||||
lstZones.Items.Clear();
|
||||
lstRooms.Items.Clear();
|
||||
_Zones.Clear();
|
||||
string[] files = Directory.GetFiles(realmPath, "*.zone", SearchOption.AllDirectories);
|
||||
|
||||
foreach (string file in files)
|
||||
{
|
||||
string filename = Path.GetFileName(file);
|
||||
if (Program.Realm.Zones.Contains(filename))
|
||||
{
|
||||
Zone zone = new Zone();
|
||||
zone = (Zone)FileManager.Load(file, zone);
|
||||
zone.RefreshRoomList();
|
||||
_Zones.Add(zone);
|
||||
lstZones.Items.Add(zone.Name);
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnLoadZone_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsRealmLoaded)
|
||||
{
|
||||
MessageBox.Show("You must first select a realm in order to view Zones for loading.",
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
if (lstZones.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("Select a Zone to load first.", "Zone Builder", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsCreatingZone)
|
||||
{
|
||||
DialogResult result = MessageBox.Show("You are currently editing a new Zone, are you sure you want to re-create a new Zone?",
|
||||
"Zone Builder", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
|
||||
if (result == DialogResult.No)
|
||||
return;
|
||||
}
|
||||
|
||||
//Loop through the collection we generated when we selected our realm
|
||||
//and find the zone that the user selected to load
|
||||
foreach (Zone zone in _Zones)
|
||||
{
|
||||
if (zone.Name == lstZones.SelectedItem.ToString())
|
||||
{
|
||||
Program.Zone = zone;
|
||||
Program.Zone.RefreshRoomList();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Loop through the zones collection of rooms and add them to the
|
||||
//room list.
|
||||
lstRooms.Items.Clear();
|
||||
foreach (Room room in Program.Zone.Rooms)
|
||||
{
|
||||
lstRooms.Items.Add(room.Name);
|
||||
}
|
||||
|
||||
propertyZone.SelectedObject = Program.Zone;
|
||||
IsZoneLoaded = true;
|
||||
IsCreatingZone = false;
|
||||
IsRoomLoaded = false;
|
||||
}
|
||||
|
||||
private void btnNewRoom_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsZoneLoaded)
|
||||
{
|
||||
string msg = "";
|
||||
if (IsCreatingZone)
|
||||
{
|
||||
msg = "You will need to save the Zone prior to creating a new Room.";
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = "You will need to load a Zone prior to creating a new Room.";
|
||||
}
|
||||
MessageBox.Show(msg,
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
Program.Room = new Room();
|
||||
Program.Room.Zone = Program.Zone.Name;
|
||||
propertyRoom.SelectedObject = Program.Room;
|
||||
IsRoomLoaded = false;
|
||||
IsCreatingRoom = true;
|
||||
}
|
||||
|
||||
private void btnSaveRoom_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsRoomLoaded)
|
||||
{
|
||||
if (!IsCreatingRoom)
|
||||
{
|
||||
MessageBox.Show("You must create a new Room in order to save.", "Zone Builder", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
}
|
||||
//Get the realm, zone & room path setup first
|
||||
string realmPath = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Realms), Program.Realm.Name);
|
||||
string zonePath = Path.Combine(realmPath, Program.Zone.Name);
|
||||
string roomFile = Path.Combine(zonePath, Program.Room.Filename);
|
||||
|
||||
//adjust our Zone. Zones are added to the Zone.Rooms
|
||||
//collection when the Zone is instanced, anything created
|
||||
//after the Zone is instanced will need to be added manually.
|
||||
//Zone does not need to be re-saved like Realms would need to be
|
||||
//as Zones load all of the Rooms it contains on its own when instanced.
|
||||
if (Program.Zone.GetRoom(Program.Room.Name) == null)
|
||||
Program.Zone.Rooms.Add(Program.Room);
|
||||
|
||||
//save the Room
|
||||
FileManager.Save(roomFile, Program.Room);
|
||||
|
||||
//add it to the list box if it isn't already there
|
||||
if (!lstRooms.Items.Contains(Program.Room.Name))
|
||||
lstRooms.Items.Add(Program.Room.Name);
|
||||
|
||||
IsRoomLoaded = true;
|
||||
IsCreatingRoom = false;
|
||||
}
|
||||
|
||||
private void btnLoadRoom_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsZoneLoaded)
|
||||
{
|
||||
MessageBox.Show("You must first load a Zone in order to aquire Rooms for loading.",
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
if (lstRooms.SelectedIndex == -1)
|
||||
{
|
||||
MessageBox.Show("Select a Room to load first.", "Zone Builder", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsCreatingZone)
|
||||
{
|
||||
MessageBox.Show("You are currently editing a new Zone, you must save the Zone prior to attempting to load a Room.",
|
||||
"Zone Builder", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
return;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
foreach (Room room in Program.Zone.Rooms)
|
||||
{
|
||||
if (room.Name == lstRooms.SelectedItem.ToString())
|
||||
{
|
||||
Program.Room = room;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
{
|
||||
MessageBox.Show("Failed loading room. Unable to locate the selected room within the Zone.",
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
propertyRoom.SelectedObject = Program.Room;
|
||||
IsRoomLoaded = true;
|
||||
IsCreatingRoom = false;
|
||||
|
||||
//assign the doorways to the UI
|
||||
foreach (Door door in Program.Room.InstalledDoors)
|
||||
{
|
||||
AvailableTravelDirections travelDirection = door.TravelDirection;
|
||||
|
||||
Control[] controls = this.Controls.Find("btn" + travelDirection.ToString(), true);
|
||||
|
||||
controls[0].Text = travelDirection.ToString() + "\nInstalled";
|
||||
|
||||
doorwayHelp.SetToolTip(controls[0], travelDirection.ToString() + " Doorway Installed.\n\n"
|
||||
+ door.TravelRoom.Realm + "->" + door.TravelRoom.Zone + "->" + door.TravelRoom.Room + "->" + door.TravelRoom.TravelDirection.ToString());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void doorwayMenuStrip_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
if (sender is ContextMenuStrip)
|
||||
{
|
||||
ContextMenuStrip mnu = (ContextMenuStrip)sender;
|
||||
Button btn = (Button)mnu.SourceControl;
|
||||
mnuInstallDoor.Text = "Install " + btn.Text + " doorway.";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void installDoorwayToAnotherZoneToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsRoomLoaded)
|
||||
{
|
||||
MessageBox.Show("You must load a Room prior to any doorway installation attempts.",
|
||||
"Zone Builder", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
return;
|
||||
}
|
||||
|
||||
//Split the menus text into an array, since the menu
|
||||
//is dynamically generating it's text, depending on the
|
||||
//button it is right clicked over.
|
||||
string[] menuWords = mnuInstallDoor.Text.Split(' ');
|
||||
|
||||
//Create an array of all available travel directions
|
||||
AvailableTravelDirections travelDirection = new AvailableTravelDirections();
|
||||
Array values = Enum.GetValues(typeof(AvailableTravelDirections));
|
||||
|
||||
//Loop through each word in the menu, until we find a word
|
||||
//that matches a travel direction.
|
||||
foreach (string word in menuWords)
|
||||
{
|
||||
foreach (int value in values)
|
||||
{
|
||||
//get a copy of the current travel direction in the array
|
||||
string displayName = Enum.GetName(typeof(AvailableTravelDirections), value);
|
||||
|
||||
//check if the current travel direction matches the current word in
|
||||
//the context menu
|
||||
if (displayName == word)
|
||||
{
|
||||
//If we have a match, store the travel direction so
|
||||
//we can use it on our Doorway manager
|
||||
travelDirection = (AvailableTravelDirections)Enum.Parse(typeof(AvailableTravelDirections), displayName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Instance a new Doorway manager
|
||||
DoorwayManager form = new DoorwayManager(travelDirection);
|
||||
form.Show();
|
||||
this.Hide();
|
||||
|
||||
while (form.Created)
|
||||
Application.DoEvents();
|
||||
|
||||
this.Show();
|
||||
|
||||
Control[] controls = this.Controls.Find("btn" + travelDirection.ToString(), true);
|
||||
|
||||
controls[0].Text = travelDirection.ToString() + "\nInstalled";
|
||||
doorwayHelp.SetToolTip(controls[0], travelDirection.ToString() + " Doorway Installed.\n\n"
|
||||
+ form.linkedRealm.Name + "->" + form.linkedZone.Name + "->" + form.linkedRoom.Name + "->" + form.TravelDirection.ToString());
|
||||
|
||||
Door door = new Door(travelDirection);
|
||||
Door.ConnectedRoom d = new Door.ConnectedRoom();
|
||||
d.Realm = form.linkedRealm.Name;
|
||||
d.Room = form.linkedRoom.Name;
|
||||
d.Zone = form.linkedZone.Name;
|
||||
door.TravelRoom = d;
|
||||
foreach (Door obj in Program.Room.InstalledDoors)
|
||||
{
|
||||
if (obj.TravelDirection == door.TravelDirection)
|
||||
{
|
||||
Program.Room.InstalledDoors.Remove(obj);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Program.Room.InstalledDoors.Add(door);
|
||||
}
|
||||
}
|
||||
}
|
655
Mud Designer/Editors/ZoneBuilder.designer.cs
generated
655
Mud Designer/Editors/ZoneBuilder.designer.cs
generated
|
@ -1,655 +0,0 @@
|
|||
namespace MudDesigner.Editors
|
||||
{
|
||||
partial class ZoneBuilder
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZoneBuilder));
|
||||
this.containerMain = new System.Windows.Forms.SplitContainer();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.lstZones = new System.Windows.Forms.ListBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.btnSelectRealm = new System.Windows.Forms.Button();
|
||||
this.btnLoadZone = 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.tabZoneBuilder = new System.Windows.Forms.TabControl();
|
||||
this.tabZone = new System.Windows.Forms.TabPage();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyZone = new System.Windows.Forms.PropertyGrid();
|
||||
this.tabRoomDesigner = new System.Windows.Forms.TabPage();
|
||||
this.tabRoomEditor = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.groupBox7 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyRoom = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.lstRooms = new System.Windows.Forms.ListBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.btnLoadRoom = new System.Windows.Forms.Button();
|
||||
this.btnSaveRoom = new System.Windows.Forms.Button();
|
||||
this.btnDeleteRoom = new System.Windows.Forms.Button();
|
||||
this.btnNewRoom = new System.Windows.Forms.Button();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.groupBox8 = new System.Windows.Forms.GroupBox();
|
||||
this.btnEast = new System.Windows.Forms.Button();
|
||||
this.doorwayMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.mnuInstallDoor = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.mnuClearDoorway = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.btnWest = new System.Windows.Forms.Button();
|
||||
this.btnDown = new System.Windows.Forms.Button();
|
||||
this.btnSouth = new System.Windows.Forms.Button();
|
||||
this.btnNorth = new System.Windows.Forms.Button();
|
||||
this.btnUp = new System.Windows.Forms.Button();
|
||||
this.Help = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.doorwayHelp = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.containerMain.Panel1.SuspendLayout();
|
||||
this.containerMain.Panel2.SuspendLayout();
|
||||
this.containerMain.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.tabZoneBuilder.SuspendLayout();
|
||||
this.tabZone.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.tabRoomDesigner.SuspendLayout();
|
||||
this.tabRoomEditor.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.doorwayMenuStrip.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// containerMain
|
||||
//
|
||||
this.containerMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.containerMain.Location = new System.Drawing.Point(0, 0);
|
||||
this.containerMain.Name = "containerMain";
|
||||
//
|
||||
// containerMain.Panel1
|
||||
//
|
||||
this.containerMain.Panel1.Controls.Add(this.groupBox1);
|
||||
this.containerMain.Panel1.Controls.Add(this.groupBox2);
|
||||
//
|
||||
// containerMain.Panel2
|
||||
//
|
||||
this.containerMain.Panel2.Controls.Add(this.tabZoneBuilder);
|
||||
this.containerMain.Size = new System.Drawing.Size(700, 471);
|
||||
this.containerMain.SplitterDistance = 210;
|
||||
this.containerMain.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.lstZones);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 100);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(210, 371);
|
||||
this.groupBox1.TabIndex = 37;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Zone List";
|
||||
//
|
||||
// lstZones
|
||||
//
|
||||
this.lstZones.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstZones.FormattingEnabled = true;
|
||||
this.lstZones.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstZones.Name = "lstZones";
|
||||
this.lstZones.Size = new System.Drawing.Size(204, 342);
|
||||
this.lstZones.Sorted = true;
|
||||
this.lstZones.TabIndex = 17;
|
||||
this.Help.SetToolTip(this.lstZones, "A collection of Zones that have already been created\r\nand stored within the selec" +
|
||||
"ted Realm.");
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.btnSelectRealm);
|
||||
this.groupBox2.Controls.Add(this.btnLoadZone);
|
||||
this.groupBox2.Controls.Add(this.btnSaveZone);
|
||||
this.groupBox2.Controls.Add(this.btnDeleteZone);
|
||||
this.groupBox2.Controls.Add(this.btnNewZone);
|
||||
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(210, 100);
|
||||
this.groupBox2.TabIndex = 35;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Zone Setup";
|
||||
//
|
||||
// btnSelectRealm
|
||||
//
|
||||
this.btnSelectRealm.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btnSelectRealm.Location = new System.Drawing.Point(3, 74);
|
||||
this.btnSelectRealm.Name = "btnSelectRealm";
|
||||
this.btnSelectRealm.Size = new System.Drawing.Size(204, 23);
|
||||
this.btnSelectRealm.TabIndex = 12;
|
||||
this.btnSelectRealm.Text = "Select Realm";
|
||||
this.Help.SetToolTip(this.btnSelectRealm, "Selects the Realm that your new Zones will be created within");
|
||||
this.btnSelectRealm.UseVisualStyleBackColor = true;
|
||||
this.btnSelectRealm.Click += new System.EventHandler(this.btnSelectRealm_Click);
|
||||
//
|
||||
// btnLoadZone
|
||||
//
|
||||
this.btnLoadZone.Location = new System.Drawing.Point(122, 48);
|
||||
this.btnLoadZone.Name = "btnLoadZone";
|
||||
this.btnLoadZone.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnLoadZone.TabIndex = 11;
|
||||
this.btnLoadZone.Text = "Load Zone";
|
||||
this.btnLoadZone.UseVisualStyleBackColor = true;
|
||||
this.btnLoadZone.Click += new System.EventHandler(this.btnLoadZone_Click);
|
||||
//
|
||||
// btnSaveZone
|
||||
//
|
||||
this.btnSaveZone.Location = new System.Drawing.Point(123, 19);
|
||||
this.btnSaveZone.Name = "btnSaveZone";
|
||||
this.btnSaveZone.Size = new System.Drawing.Size(84, 23);
|
||||
this.btnSaveZone.TabIndex = 10;
|
||||
this.btnSaveZone.Text = "Save Zone";
|
||||
this.btnSaveZone.UseVisualStyleBackColor = true;
|
||||
this.btnSaveZone.Click += new System.EventHandler(this.btnSaveZone_Click);
|
||||
//
|
||||
// btnDeleteZone
|
||||
//
|
||||
this.btnDeleteZone.Location = new System.Drawing.Point(6, 48);
|
||||
this.btnDeleteZone.Name = "btnDeleteZone";
|
||||
this.btnDeleteZone.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnDeleteZone.TabIndex = 9;
|
||||
this.btnDeleteZone.Text = "Delete Zone";
|
||||
this.btnDeleteZone.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnNewZone
|
||||
//
|
||||
this.btnNewZone.Location = new System.Drawing.Point(6, 19);
|
||||
this.btnNewZone.Name = "btnNewZone";
|
||||
this.btnNewZone.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnNewZone.TabIndex = 8;
|
||||
this.btnNewZone.Text = "New Zone";
|
||||
this.btnNewZone.UseVisualStyleBackColor = true;
|
||||
this.btnNewZone.Click += new System.EventHandler(this.btnNewZone_Click);
|
||||
//
|
||||
// tabZoneBuilder
|
||||
//
|
||||
this.tabZoneBuilder.Controls.Add(this.tabZone);
|
||||
this.tabZoneBuilder.Controls.Add(this.tabRoomDesigner);
|
||||
this.tabZoneBuilder.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabZoneBuilder.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabZoneBuilder.Name = "tabZoneBuilder";
|
||||
this.tabZoneBuilder.SelectedIndex = 0;
|
||||
this.tabZoneBuilder.Size = new System.Drawing.Size(486, 471);
|
||||
this.tabZoneBuilder.TabIndex = 0;
|
||||
//
|
||||
// tabZone
|
||||
//
|
||||
this.tabZone.Controls.Add(this.groupBox4);
|
||||
this.tabZone.Controls.Add(this.groupBox3);
|
||||
this.tabZone.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabZone.Name = "tabZone";
|
||||
this.tabZone.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabZone.Size = new System.Drawing.Size(478, 445);
|
||||
this.tabZone.TabIndex = 0;
|
||||
this.tabZone.Text = "Zone Editing";
|
||||
this.tabZone.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Location = new System.Drawing.Point(262, 3);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(208, 436);
|
||||
this.groupBox4.TabIndex = 1;
|
||||
this.groupBox4.TabStop = false;
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.propertyZone);
|
||||
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox3.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(253, 439);
|
||||
this.groupBox3.TabIndex = 0;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Zone Properties";
|
||||
//
|
||||
// propertyZone
|
||||
//
|
||||
this.propertyZone.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyZone.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyZone.Name = "propertyZone";
|
||||
this.propertyZone.Size = new System.Drawing.Size(247, 420);
|
||||
this.propertyZone.TabIndex = 0;
|
||||
this.propertyZone.ToolbarVisible = false;
|
||||
//
|
||||
// tabRoomDesigner
|
||||
//
|
||||
this.tabRoomDesigner.Controls.Add(this.tabRoomEditor);
|
||||
this.tabRoomDesigner.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabRoomDesigner.Name = "tabRoomDesigner";
|
||||
this.tabRoomDesigner.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabRoomDesigner.Size = new System.Drawing.Size(478, 445);
|
||||
this.tabRoomDesigner.TabIndex = 1;
|
||||
this.tabRoomDesigner.Text = "Room Designer";
|
||||
this.tabRoomDesigner.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabRoomEditor
|
||||
//
|
||||
this.tabRoomEditor.Controls.Add(this.tabPage1);
|
||||
this.tabRoomEditor.Controls.Add(this.tabPage2);
|
||||
this.tabRoomEditor.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabRoomEditor.Location = new System.Drawing.Point(3, 3);
|
||||
this.tabRoomEditor.Name = "tabRoomEditor";
|
||||
this.tabRoomEditor.SelectedIndex = 0;
|
||||
this.tabRoomEditor.Size = new System.Drawing.Size(472, 439);
|
||||
this.tabRoomEditor.TabIndex = 0;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.groupBox7);
|
||||
this.tabPage1.Controls.Add(this.groupBox6);
|
||||
this.tabPage1.Controls.Add(this.groupBox5);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(464, 413);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Room Setup";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox7
|
||||
//
|
||||
this.groupBox7.Controls.Add(this.propertyRoom);
|
||||
this.groupBox7.Location = new System.Drawing.Point(222, 6);
|
||||
this.groupBox7.Name = "groupBox7";
|
||||
this.groupBox7.Size = new System.Drawing.Size(239, 404);
|
||||
this.groupBox7.TabIndex = 39;
|
||||
this.groupBox7.TabStop = false;
|
||||
this.groupBox7.Text = "Room Properties";
|
||||
//
|
||||
// propertyRoom
|
||||
//
|
||||
this.propertyRoom.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyRoom.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyRoom.Name = "propertyRoom";
|
||||
this.propertyRoom.Size = new System.Drawing.Size(233, 385);
|
||||
this.propertyRoom.TabIndex = 0;
|
||||
this.propertyRoom.ToolbarVisible = false;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.lstRooms);
|
||||
this.groupBox6.Location = new System.Drawing.Point(6, 87);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(210, 323);
|
||||
this.groupBox6.TabIndex = 38;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Room List";
|
||||
//
|
||||
// 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(204, 303);
|
||||
this.lstRooms.Sorted = true;
|
||||
this.lstRooms.TabIndex = 17;
|
||||
this.Help.SetToolTip(this.lstRooms, "A collection of Rooms that have already been created\r\nand stored within the curre" +
|
||||
"ntly loaded Zone.");
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.btnLoadRoom);
|
||||
this.groupBox5.Controls.Add(this.btnSaveRoom);
|
||||
this.groupBox5.Controls.Add(this.btnDeleteRoom);
|
||||
this.groupBox5.Controls.Add(this.btnNewRoom);
|
||||
this.groupBox5.Location = new System.Drawing.Point(6, 6);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(210, 75);
|
||||
this.groupBox5.TabIndex = 36;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Room Setup";
|
||||
//
|
||||
// btnLoadRoom
|
||||
//
|
||||
this.btnLoadRoom.Location = new System.Drawing.Point(122, 46);
|
||||
this.btnLoadRoom.Name = "btnLoadRoom";
|
||||
this.btnLoadRoom.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnLoadRoom.TabIndex = 11;
|
||||
this.btnLoadRoom.Text = "Load Room";
|
||||
this.btnLoadRoom.UseVisualStyleBackColor = true;
|
||||
this.btnLoadRoom.Click += new System.EventHandler(this.btnLoadRoom_Click);
|
||||
//
|
||||
// btnSaveRoom
|
||||
//
|
||||
this.btnSaveRoom.Location = new System.Drawing.Point(123, 19);
|
||||
this.btnSaveRoom.Name = "btnSaveRoom";
|
||||
this.btnSaveRoom.Size = new System.Drawing.Size(84, 23);
|
||||
this.btnSaveRoom.TabIndex = 10;
|
||||
this.btnSaveRoom.Text = "Save Room";
|
||||
this.btnSaveRoom.UseVisualStyleBackColor = true;
|
||||
this.btnSaveRoom.Click += new System.EventHandler(this.btnSaveRoom_Click);
|
||||
//
|
||||
// btnDeleteRoom
|
||||
//
|
||||
this.btnDeleteRoom.Location = new System.Drawing.Point(6, 48);
|
||||
this.btnDeleteRoom.Name = "btnDeleteRoom";
|
||||
this.btnDeleteRoom.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnDeleteRoom.TabIndex = 9;
|
||||
this.btnDeleteRoom.Text = "Delete Room";
|
||||
this.btnDeleteRoom.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnNewRoom
|
||||
//
|
||||
this.btnNewRoom.Location = new System.Drawing.Point(6, 19);
|
||||
this.btnNewRoom.Name = "btnNewRoom";
|
||||
this.btnNewRoom.Size = new System.Drawing.Size(85, 23);
|
||||
this.btnNewRoom.TabIndex = 8;
|
||||
this.btnNewRoom.Text = "New Room";
|
||||
this.btnNewRoom.UseVisualStyleBackColor = true;
|
||||
this.btnNewRoom.Click += new System.EventHandler(this.btnNewRoom_Click);
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.groupBox8);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(464, 413);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "Room Doorways";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox8
|
||||
//
|
||||
this.groupBox8.Controls.Add(this.btnEast);
|
||||
this.groupBox8.Controls.Add(this.btnWest);
|
||||
this.groupBox8.Controls.Add(this.btnDown);
|
||||
this.groupBox8.Controls.Add(this.btnSouth);
|
||||
this.groupBox8.Controls.Add(this.btnNorth);
|
||||
this.groupBox8.Controls.Add(this.btnUp);
|
||||
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(458, 407);
|
||||
this.groupBox8.TabIndex = 0;
|
||||
this.groupBox8.TabStop = false;
|
||||
this.groupBox8.Text = "Available Travel Directions";
|
||||
//
|
||||
// btnEast
|
||||
//
|
||||
this.btnEast.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnEast.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnEast.FlatAppearance.BorderSize = 2;
|
||||
this.btnEast.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnEast.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnEast.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnEast.Location = new System.Drawing.Point(334, 159);
|
||||
this.btnEast.Name = "btnEast";
|
||||
this.btnEast.Size = new System.Drawing.Size(118, 93);
|
||||
this.btnEast.TabIndex = 7;
|
||||
this.btnEast.Text = "East";
|
||||
this.doorwayHelp.SetToolTip(this.btnEast, "No doorway installed.\r\n\r\nRight-click to install one.\r\n");
|
||||
this.btnEast.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// doorwayMenuStrip
|
||||
//
|
||||
this.doorwayMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.mnuInstallDoor,
|
||||
this.toolStripMenuItem2,
|
||||
this.mnuClearDoorway});
|
||||
this.doorwayMenuStrip.Name = "doorwayMenuStrip";
|
||||
this.doorwayMenuStrip.Size = new System.Drawing.Size(162, 54);
|
||||
this.doorwayMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.doorwayMenuStrip_Opening);
|
||||
//
|
||||
// mnuInstallDoor
|
||||
//
|
||||
this.mnuInstallDoor.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem,
|
||||
this.toolStripMenuItem1,
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem});
|
||||
this.mnuInstallDoor.Name = "mnuInstallDoor";
|
||||
this.mnuInstallDoor.Size = new System.Drawing.Size(161, 22);
|
||||
this.mnuInstallDoor.Text = "Install New Door";
|
||||
//
|
||||
// installDoorwayToAnotherZoneToolStripMenuItem
|
||||
//
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem.Name = "installDoorwayToAnotherZoneToolStripMenuItem";
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem.Size = new System.Drawing.Size(293, 22);
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem.Text = "Install Doorway to another Zone";
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem.ToolTipText = "Opens the Doorway Manager giving you the ability\r\nto link a Room located in a dif" +
|
||||
"ferent Zone or Realm.";
|
||||
this.installDoorwayToAnotherZoneToolStripMenuItem.Click += new System.EventHandler(this.installDoorwayToAnotherZoneToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(290, 6);
|
||||
//
|
||||
// installReverseDoorwayToSelectedRoomToolStripMenuItem
|
||||
//
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem.Name = "installReverseDoorwayToSelectedRoomToolStripMenuItem";
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem.Size = new System.Drawing.Size(293, 22);
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem.Text = "Install Reverse Doorway to selected Room";
|
||||
this.installReverseDoorwayToSelectedRoomToolStripMenuItem.ToolTipText = resources.GetString("installReverseDoorwayToSelectedRoomToolStripMenuItem.ToolTipText");
|
||||
//
|
||||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(158, 6);
|
||||
//
|
||||
// mnuClearDoorway
|
||||
//
|
||||
this.mnuClearDoorway.Name = "mnuClearDoorway";
|
||||
this.mnuClearDoorway.Size = new System.Drawing.Size(161, 22);
|
||||
this.mnuClearDoorway.Text = "Clear Doorway";
|
||||
//
|
||||
// btnWest
|
||||
//
|
||||
this.btnWest.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnWest.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnWest.FlatAppearance.BorderSize = 2;
|
||||
this.btnWest.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnWest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnWest.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnWest.Location = new System.Drawing.Point(6, 159);
|
||||
this.btnWest.Name = "btnWest";
|
||||
this.btnWest.Size = new System.Drawing.Size(118, 93);
|
||||
this.btnWest.TabIndex = 6;
|
||||
this.btnWest.Text = "West";
|
||||
this.doorwayHelp.SetToolTip(this.btnWest, "No doorway installed.\r\n\r\nRight-click to install one.");
|
||||
this.btnWest.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// btnDown
|
||||
//
|
||||
this.btnDown.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnDown.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnDown.FlatAppearance.BorderSize = 2;
|
||||
this.btnDown.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnDown.Location = new System.Drawing.Point(166, 350);
|
||||
this.btnDown.Name = "btnDown";
|
||||
this.btnDown.Size = new System.Drawing.Size(118, 51);
|
||||
this.btnDown.TabIndex = 5;
|
||||
this.btnDown.Text = "Down";
|
||||
this.doorwayHelp.SetToolTip(this.btnDown, "No doorway installed.\r\n\r\nRight-click to install one.\r\n");
|
||||
this.btnDown.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// btnSouth
|
||||
//
|
||||
this.btnSouth.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnSouth.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnSouth.FlatAppearance.BorderSize = 2;
|
||||
this.btnSouth.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnSouth.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnSouth.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSouth.Location = new System.Drawing.Point(166, 258);
|
||||
this.btnSouth.Name = "btnSouth";
|
||||
this.btnSouth.Size = new System.Drawing.Size(118, 86);
|
||||
this.btnSouth.TabIndex = 4;
|
||||
this.btnSouth.Text = "South";
|
||||
this.doorwayHelp.SetToolTip(this.btnSouth, "No doorway installed.\r\n\r\nRight-click to install one.\r\n");
|
||||
this.btnSouth.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// btnNorth
|
||||
//
|
||||
this.btnNorth.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnNorth.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnNorth.FlatAppearance.BorderSize = 2;
|
||||
this.btnNorth.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnNorth.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnNorth.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnNorth.Location = new System.Drawing.Point(166, 67);
|
||||
this.btnNorth.Name = "btnNorth";
|
||||
this.btnNorth.Size = new System.Drawing.Size(118, 86);
|
||||
this.btnNorth.TabIndex = 3;
|
||||
this.btnNorth.Text = "North";
|
||||
this.doorwayHelp.SetToolTip(this.btnNorth, "No doorway installed.\r\n\r\nRight-click to install one.");
|
||||
this.btnNorth.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// btnUp
|
||||
//
|
||||
this.btnUp.BackColor = System.Drawing.Color.Gray;
|
||||
this.btnUp.ContextMenuStrip = this.doorwayMenuStrip;
|
||||
this.btnUp.FlatAppearance.BorderSize = 2;
|
||||
this.btnUp.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.btnUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnUp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnUp.Location = new System.Drawing.Point(166, 10);
|
||||
this.btnUp.Name = "btnUp";
|
||||
this.btnUp.Size = new System.Drawing.Size(118, 51);
|
||||
this.btnUp.TabIndex = 0;
|
||||
this.btnUp.Text = "Up";
|
||||
this.doorwayHelp.SetToolTip(this.btnUp, "No doorway installed.\r\n\r\nRight-click to install one.\r\n");
|
||||
this.btnUp.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// Help
|
||||
//
|
||||
this.Help.AutoPopDelay = 12000;
|
||||
this.Help.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.Help.InitialDelay = 1000;
|
||||
this.Help.IsBalloon = true;
|
||||
this.Help.ReshowDelay = 100;
|
||||
this.Help.ToolTipTitle = "Zone Designer";
|
||||
//
|
||||
// doorwayHelp
|
||||
//
|
||||
this.doorwayHelp.AutomaticDelay = 100;
|
||||
this.doorwayHelp.AutoPopDelay = 15000;
|
||||
this.doorwayHelp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
|
||||
this.doorwayHelp.InitialDelay = 100;
|
||||
this.doorwayHelp.IsBalloon = true;
|
||||
this.doorwayHelp.ReshowDelay = 20;
|
||||
this.doorwayHelp.ToolTipTitle = "Zone Designer";
|
||||
//
|
||||
// ZoneBuilder
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(700, 471);
|
||||
this.Controls.Add(this.containerMain);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ZoneBuilder";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Zone Builder (No Realm Selected)";
|
||||
this.containerMain.Panel1.ResumeLayout(false);
|
||||
this.containerMain.Panel2.ResumeLayout(false);
|
||||
this.containerMain.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.tabZoneBuilder.ResumeLayout(false);
|
||||
this.tabZone.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.tabRoomDesigner.ResumeLayout(false);
|
||||
this.tabRoomEditor.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.groupBox8.ResumeLayout(false);
|
||||
this.doorwayMenuStrip.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.SplitContainer containerMain;
|
||||
private System.Windows.Forms.ToolTip Help;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.Button btnLoadZone;
|
||||
private System.Windows.Forms.Button btnSaveZone;
|
||||
private System.Windows.Forms.Button btnDeleteZone;
|
||||
private System.Windows.Forms.Button btnNewZone;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.ListBox lstZones;
|
||||
private System.Windows.Forms.TabControl tabZoneBuilder;
|
||||
private System.Windows.Forms.TabPage tabZone;
|
||||
private System.Windows.Forms.TabPage tabRoomDesigner;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.PropertyGrid propertyZone;
|
||||
private System.Windows.Forms.Button btnSelectRealm;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.TabControl tabRoomEditor;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.Button btnLoadRoom;
|
||||
private System.Windows.Forms.Button btnSaveRoom;
|
||||
private System.Windows.Forms.Button btnDeleteRoom;
|
||||
private System.Windows.Forms.Button btnNewRoom;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.ListBox lstRooms;
|
||||
private System.Windows.Forms.GroupBox groupBox7;
|
||||
private System.Windows.Forms.PropertyGrid propertyRoom;
|
||||
private System.Windows.Forms.GroupBox groupBox8;
|
||||
private System.Windows.Forms.Button btnUp;
|
||||
private System.Windows.Forms.Button btnNorth;
|
||||
private System.Windows.Forms.Button btnDown;
|
||||
private System.Windows.Forms.Button btnSouth;
|
||||
private System.Windows.Forms.Button btnWest;
|
||||
private System.Windows.Forms.Button btnEast;
|
||||
private System.Windows.Forms.ContextMenuStrip doorwayMenuStrip;
|
||||
private System.Windows.Forms.ToolStripMenuItem mnuInstallDoor;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
||||
private System.Windows.Forms.ToolStripMenuItem mnuClearDoorway;
|
||||
private System.Windows.Forms.ToolStripMenuItem installDoorwayToAnotherZoneToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem installReverseDoorwayToSelectedRoomToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolTip doorwayHelp;
|
||||
|
||||
}
|
||||
}
|
|
@ -1,143 +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="doorwayMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>94, 17</value>
|
||||
</metadata>
|
||||
<metadata name="doorwayHelp.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>250, 17</value>
|
||||
</metadata>
|
||||
<metadata name="Help.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="installReverseDoorwayToSelectedRoomToolStripMenuItem.ToolTipText" xml:space="preserve">
|
||||
<value>Automatically links the currently loaded Room & its Doorway
|
||||
to the opposite doorway contained within the currently selected
|
||||
room. This option is only available for Rooms within the same Zone.
|
||||
|
||||
Example: Reverse North doorway would be South doorway.
|
||||
|
||||
Note that the currently selected room is what will be linked to,
|
||||
it does not need to be loaded in order to be linked. Loading it will
|
||||
unload the currently loaded room.</value>
|
||||
</data>
|
||||
<metadata name="Help.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Add table
Add a link
Reference in a new issue