Designer HUB:
* Moved editor buttons onto a Tab control, future test editors will be placed on a separate tab titled 'Testing Editors' MUDEngine: * Currency.cs - Added Default Values to Properties * Door.cs - Added initial properties and door state * ProjectInformation.cs - Removed StartingLocation enum and moved to Objects/Environment/InitialLocation.cs * Room.cs - Added initial properties * TravelDirections.cs - Added initial travel direction enum. Room Editor binds to this enum. Additional directions added in the future will automatically be added to the Room Designer. * ProjectInformation.cs - ProjectName property renamed to GameTitle. Room Designer: * User interface re-constructed and is closer to the final state. Shouldn't change much from it's current configuration.
This commit is contained in:
parent
7a8437763b
commit
ab8d46ed3c
10 changed files with 374 additions and 110 deletions
|
@ -55,8 +55,10 @@
|
|||
<Compile Include="FileSystem\XmlSerialization.cs" />
|
||||
<Compile Include="Objects\Currency.cs" />
|
||||
<Compile Include="Objects\Environment\Door.cs" />
|
||||
<Compile Include="Objects\Environment\InitialLocation.cs" />
|
||||
<Compile Include="Objects\Environment\Realm.cs" />
|
||||
<Compile Include="Objects\Environment\Room.cs" />
|
||||
<Compile Include="Objects\Environment\TravelDirections.cs" />
|
||||
<Compile Include="Objects\Environment\Zone.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace MUDEngine.Objects
|
|||
public class Currency : BaseObject
|
||||
{
|
||||
[Category("Currency Settings")]
|
||||
[DefaultValue(100)]
|
||||
/// <summary>
|
||||
/// The value of this currency. It should be how many 'base currency' it takes to equal 1 of this currency
|
||||
/// </summary>
|
||||
|
|
|
@ -3,9 +3,48 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MUDEngine.Objects.Environment
|
||||
{
|
||||
public class Door
|
||||
{
|
||||
public enum AvailableDoorStates
|
||||
{
|
||||
Uninstalled,
|
||||
Installed,
|
||||
}
|
||||
|
||||
[Category("Door Settings")]
|
||||
[DefaultValue(false)]
|
||||
public bool IsLocked
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Door Settings")]
|
||||
public string RequiredKey
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Door Settings")]
|
||||
[DefaultValue(0)]
|
||||
public int LevelRequirement
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Door Settings")]
|
||||
[Description("Sets if the door is installed and useable within the room or not.")]
|
||||
[DefaultValue(AvailableDoorStates.Uninstalled)]
|
||||
public AvailableDoorStates DoorState
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
9
MUDEngine/Objects/Environment/InitialLocation.cs
Normal file
9
MUDEngine/Objects/Environment/InitialLocation.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace MUDEngine.Objects.Environment
|
||||
{
|
||||
public struct StartingLocation
|
||||
{
|
||||
public Room Room;
|
||||
public Zone Zone;
|
||||
public Realm Realm;
|
||||
}
|
||||
}
|
|
@ -2,10 +2,64 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace MUDEngine.Objects.Environment
|
||||
{
|
||||
public class Room : BaseObject
|
||||
{
|
||||
[Category("Room Information")]
|
||||
[DefaultValue("You don't smell anything unsual.")]
|
||||
public string Smell
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Room Information")]
|
||||
[DefaultValue("You hear nothing of interest.")]
|
||||
public string Listen
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Room Information")]
|
||||
[DefaultValue("You feel nothing.")]
|
||||
public string Feel
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/*public Stats StatDrain
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}*/
|
||||
|
||||
[Category("Room Information")]
|
||||
[DefaultValue(0)]
|
||||
public int StatDrainAmount
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Room Information")]
|
||||
[DefaultValue(false)]
|
||||
public bool IsSafeRoom
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public Room()
|
||||
{
|
||||
this.Feel = "You feel nothing.";
|
||||
this.Listen = "You hear nothing of interest.";
|
||||
this.Smell = "You don't smell anything unsual.";
|
||||
this.StatDrainAmount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
12
MUDEngine/Objects/Environment/TravelDirections.cs
Normal file
12
MUDEngine/Objects/Environment/TravelDirections.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
namespace MUDEngine.Objects.Environment
|
||||
{
|
||||
public enum AvailableTravelDirections
|
||||
{
|
||||
North,
|
||||
South,
|
||||
East,
|
||||
West,
|
||||
Up,
|
||||
Down
|
||||
}
|
||||
}
|
|
@ -17,14 +17,6 @@ namespace MUDEngine
|
|||
[XmlInclude(typeof(StartingLocation))]
|
||||
public class ProjectInformation
|
||||
{
|
||||
|
||||
public struct StartingLocation
|
||||
{
|
||||
public Room Room;
|
||||
public Zone Zone;
|
||||
public Realm Realm;
|
||||
}
|
||||
|
||||
public enum TimeOfDayOptions
|
||||
{
|
||||
AlwaysDay,
|
||||
|
@ -45,8 +37,8 @@ namespace MUDEngine
|
|||
public string Website { get; set; }
|
||||
|
||||
[Category("Project Settings")]
|
||||
[Description("The name of the project.")]
|
||||
public string ProjectName { get; set; }
|
||||
[Description("The name of the game.")]
|
||||
public string GameTitle { get; set; }
|
||||
|
||||
[Category("Project Settings")]
|
||||
/// <summary>
|
||||
|
|
41
MudDesigner/frmMain.Designer.cs
generated
41
MudDesigner/frmMain.Designer.cs
generated
|
@ -30,6 +30,8 @@
|
|||
{
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
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.btnProjectManager = new System.Windows.Forms.Button();
|
||||
this.btnCurrencyEditor = new System.Windows.Forms.Button();
|
||||
|
@ -37,6 +39,8 @@
|
|||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.tabEditors.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -54,7 +58,7 @@
|
|||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.tabEditors);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(615, 383);
|
||||
this.splitContainer1.SplitterDistance = 154;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
|
@ -77,16 +81,37 @@
|
|||
this.btnLogo.Text = "MUD Designer HUB \r\nBeta 1.0\r\n";
|
||||
this.btnLogo.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// tabEditors
|
||||
//
|
||||
this.tabEditors.Controls.Add(this.tabPage1);
|
||||
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(615, 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(607, 199);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Available Editors";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel1
|
||||
//
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnProjectManager);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnCurrencyEditor);
|
||||
this.flowLayoutPanel1.Controls.Add(this.btnRoomDesigner);
|
||||
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 3);
|
||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(615, 225);
|
||||
this.flowLayoutPanel1.TabIndex = 0;
|
||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(601, 193);
|
||||
this.flowLayoutPanel1.TabIndex = 1;
|
||||
//
|
||||
// btnProjectManager
|
||||
//
|
||||
|
@ -110,7 +135,7 @@
|
|||
this.btnCurrencyEditor.TabIndex = 1;
|
||||
this.btnCurrencyEditor.Text = "Currency Editor";
|
||||
this.btnCurrencyEditor.UseVisualStyleBackColor = true;
|
||||
this.btnCurrencyEditor.Click += new System.EventHandler(this.btnCurrencyEditor_Click);
|
||||
this.btnCurrencyEditor.Click +=new System.EventHandler(btnCurrencyEditor_Click);
|
||||
//
|
||||
// btnRoomDesigner
|
||||
//
|
||||
|
@ -122,7 +147,7 @@
|
|||
this.btnRoomDesigner.TabIndex = 2;
|
||||
this.btnRoomDesigner.Text = "Room Designer";
|
||||
this.btnRoomDesigner.UseVisualStyleBackColor = true;
|
||||
this.btnRoomDesigner.Click += new System.EventHandler(this.btnRoomDesigner_Click);
|
||||
this.btnRoomDesigner.Click += new System.EventHandler(btnRoomDesigner_Click);
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
|
@ -139,6 +164,8 @@
|
|||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.tabEditors.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.flowLayoutPanel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
|
@ -148,6 +175,8 @@
|
|||
|
||||
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 btnProjectManager;
|
||||
private System.Windows.Forms.Button btnCurrencyEditor;
|
||||
|
|
283
RoomDesigner/frmMain.Designer.cs
generated
283
RoomDesigner/frmMain.Designer.cs
generated
|
@ -30,31 +30,42 @@
|
|||
{
|
||||
this.containerMain = new System.Windows.Forms.SplitContainer();
|
||||
this.containerSidebar = new System.Windows.Forms.SplitContainer();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||
this.tabSidebar = new System.Windows.Forms.TabControl();
|
||||
this.tabObjects = new System.Windows.Forms.TabPage();
|
||||
this.tabDoors = new System.Windows.Forms.TabPage();
|
||||
this.containerDesigner = new System.Windows.Forms.SplitContainer();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btnSaveRoom = new System.Windows.Forms.Button();
|
||||
this.btnNewRoom = new System.Windows.Forms.Button();
|
||||
this.btnCloseEditor = new System.Windows.Forms.Button();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyRoom = new System.Windows.Forms.PropertyGrid();
|
||||
this.containerDesigner = new System.Windows.Forms.SplitContainer();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabBooks = new System.Windows.Forms.TabPage();
|
||||
this.tabEquipment = new System.Windows.Forms.TabPage();
|
||||
this.tabItems = new System.Windows.Forms.TabPage();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox7 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox10 = new System.Windows.Forms.GroupBox();
|
||||
this.propertyDoor = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.lstDirections = new System.Windows.Forms.ListBox();
|
||||
this.containerMain.Panel1.SuspendLayout();
|
||||
this.containerMain.Panel2.SuspendLayout();
|
||||
this.containerMain.SuspendLayout();
|
||||
this.containerSidebar.Panel1.SuspendLayout();
|
||||
this.containerSidebar.Panel2.SuspendLayout();
|
||||
this.containerSidebar.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.tabSidebar.SuspendLayout();
|
||||
this.tabObjects.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.containerDesigner.Panel1.SuspendLayout();
|
||||
this.containerDesigner.Panel2.SuspendLayout();
|
||||
this.containerDesigner.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox7.SuspendLayout();
|
||||
this.groupBox10.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// containerMain
|
||||
|
@ -72,12 +83,11 @@
|
|||
//
|
||||
this.containerMain.Panel2.Controls.Add(this.containerDesigner);
|
||||
this.containerMain.Size = new System.Drawing.Size(784, 564);
|
||||
this.containerMain.SplitterDistance = 225;
|
||||
this.containerMain.SplitterDistance = 236;
|
||||
this.containerMain.TabIndex = 0;
|
||||
//
|
||||
// containerSidebar
|
||||
//
|
||||
this.containerSidebar.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.containerSidebar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.containerSidebar.Location = new System.Drawing.Point(0, 0);
|
||||
this.containerSidebar.Name = "containerSidebar";
|
||||
|
@ -85,65 +95,83 @@
|
|||
//
|
||||
// containerSidebar.Panel1
|
||||
//
|
||||
this.containerSidebar.Panel1.Controls.Add(this.groupBox4);
|
||||
this.containerSidebar.Panel1.Controls.Add(this.groupBox3);
|
||||
this.containerSidebar.Panel1.Controls.Add(this.groupBox1);
|
||||
this.containerSidebar.Panel1.Controls.Add(this.btnCloseEditor);
|
||||
//
|
||||
// containerSidebar.Panel2
|
||||
//
|
||||
this.containerSidebar.Panel2.Controls.Add(this.tabSidebar);
|
||||
this.containerSidebar.Size = new System.Drawing.Size(225, 564);
|
||||
this.containerSidebar.SplitterDistance = 294;
|
||||
this.containerSidebar.Panel2.Controls.Add(this.groupBox2);
|
||||
this.containerSidebar.Size = new System.Drawing.Size(234, 562);
|
||||
this.containerSidebar.SplitterDistance = 109;
|
||||
this.containerSidebar.TabIndex = 0;
|
||||
//
|
||||
// groupBox4
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.propertyGrid1);
|
||||
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox4.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(223, 292);
|
||||
this.groupBox4.TabIndex = 1;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Room Settings";
|
||||
this.groupBox3.Location = new System.Drawing.Point(106, 6);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(125, 74);
|
||||
this.groupBox3.TabIndex = 5;
|
||||
this.groupBox3.TabStop = false;
|
||||
//
|
||||
// propertyGrid1
|
||||
// groupBox1
|
||||
//
|
||||
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(217, 273);
|
||||
this.propertyGrid1.TabIndex = 0;
|
||||
this.groupBox1.Controls.Add(this.btnSaveRoom);
|
||||
this.groupBox1.Controls.Add(this.btnNewRoom);
|
||||
this.groupBox1.Location = new System.Drawing.Point(3, 6);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(100, 74);
|
||||
this.groupBox1.TabIndex = 4;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Room Options";
|
||||
//
|
||||
// tabSidebar
|
||||
// btnSaveRoom
|
||||
//
|
||||
this.tabSidebar.Controls.Add(this.tabObjects);
|
||||
this.tabSidebar.Controls.Add(this.tabDoors);
|
||||
this.tabSidebar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabSidebar.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabSidebar.Name = "tabSidebar";
|
||||
this.tabSidebar.SelectedIndex = 0;
|
||||
this.tabSidebar.Size = new System.Drawing.Size(223, 264);
|
||||
this.tabSidebar.TabIndex = 0;
|
||||
this.btnSaveRoom.Location = new System.Drawing.Point(3, 45);
|
||||
this.btnSaveRoom.Name = "btnSaveRoom";
|
||||
this.btnSaveRoom.Size = new System.Drawing.Size(91, 23);
|
||||
this.btnSaveRoom.TabIndex = 1;
|
||||
this.btnSaveRoom.Text = "Save Room";
|
||||
this.btnSaveRoom.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabObjects
|
||||
// btnNewRoom
|
||||
//
|
||||
this.tabObjects.Controls.Add(this.tabControl1);
|
||||
this.tabObjects.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabObjects.Name = "tabObjects";
|
||||
this.tabObjects.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabObjects.Size = new System.Drawing.Size(215, 238);
|
||||
this.tabObjects.TabIndex = 0;
|
||||
this.tabObjects.Text = "Objects";
|
||||
this.tabObjects.UseVisualStyleBackColor = true;
|
||||
this.btnNewRoom.Location = new System.Drawing.Point(3, 16);
|
||||
this.btnNewRoom.Name = "btnNewRoom";
|
||||
this.btnNewRoom.Size = new System.Drawing.Size(91, 23);
|
||||
this.btnNewRoom.TabIndex = 0;
|
||||
this.btnNewRoom.Text = "New Room";
|
||||
this.btnNewRoom.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabDoors
|
||||
// btnCloseEditor
|
||||
//
|
||||
this.tabDoors.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabDoors.Name = "tabDoors";
|
||||
this.tabDoors.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabDoors.Size = new System.Drawing.Size(215, 238);
|
||||
this.tabDoors.TabIndex = 1;
|
||||
this.tabDoors.Text = "Doors";
|
||||
this.tabDoors.UseVisualStyleBackColor = true;
|
||||
this.btnCloseEditor.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.btnCloseEditor.Location = new System.Drawing.Point(0, 86);
|
||||
this.btnCloseEditor.Name = "btnCloseEditor";
|
||||
this.btnCloseEditor.Size = new System.Drawing.Size(234, 23);
|
||||
this.btnCloseEditor.TabIndex = 3;
|
||||
this.btnCloseEditor.Text = "Close Editor";
|
||||
this.btnCloseEditor.UseVisualStyleBackColor = true;
|
||||
this.btnCloseEditor.Click += new System.EventHandler(this.btnCloseEditor_Click);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.propertyRoom);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(234, 449);
|
||||
this.groupBox2.TabIndex = 0;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Room Setup";
|
||||
//
|
||||
// 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(228, 430);
|
||||
this.propertyRoom.TabIndex = 3;
|
||||
//
|
||||
// containerDesigner
|
||||
//
|
||||
|
@ -154,34 +182,25 @@
|
|||
//
|
||||
// containerDesigner.Panel1
|
||||
//
|
||||
this.containerDesigner.Panel1.Controls.Add(this.groupBox1);
|
||||
this.containerDesigner.Panel1.Controls.Add(this.groupBox4);
|
||||
//
|
||||
// containerDesigner.Panel2
|
||||
//
|
||||
this.containerDesigner.Panel2.Controls.Add(this.groupBox2);
|
||||
this.containerDesigner.Size = new System.Drawing.Size(553, 562);
|
||||
this.containerDesigner.SplitterDistance = 209;
|
||||
this.containerDesigner.TabIndex = 2;
|
||||
this.containerDesigner.Panel2.Controls.Add(this.groupBox5);
|
||||
this.containerDesigner.Size = new System.Drawing.Size(542, 562);
|
||||
this.containerDesigner.SplitterDistance = 318;
|
||||
this.containerDesigner.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(553, 209);
|
||||
this.groupBox1.TabIndex = 0;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Room Search Options";
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox2.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(553, 349);
|
||||
this.groupBox2.TabIndex = 1;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Room Design Preview";
|
||||
this.groupBox4.Controls.Add(this.tabControl1);
|
||||
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox4.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(542, 318);
|
||||
this.groupBox4.TabIndex = 2;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Object Management";
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
|
@ -189,17 +208,18 @@
|
|||
this.tabControl1.Controls.Add(this.tabEquipment);
|
||||
this.tabControl1.Controls.Add(this.tabItems);
|
||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl1.Location = new System.Drawing.Point(3, 3);
|
||||
this.tabControl1.Location = new System.Drawing.Point(3, 16);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(209, 232);
|
||||
this.tabControl1.Size = new System.Drawing.Size(536, 299);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
//
|
||||
// tabBooks
|
||||
//
|
||||
this.tabBooks.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabBooks.Name = "tabBooks";
|
||||
this.tabBooks.Size = new System.Drawing.Size(201, 206);
|
||||
this.tabBooks.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabBooks.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabBooks.TabIndex = 0;
|
||||
this.tabBooks.Text = "Books";
|
||||
this.tabBooks.UseVisualStyleBackColor = true;
|
||||
|
@ -208,7 +228,8 @@
|
|||
//
|
||||
this.tabEquipment.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabEquipment.Name = "tabEquipment";
|
||||
this.tabEquipment.Size = new System.Drawing.Size(201, 206);
|
||||
this.tabEquipment.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabEquipment.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabEquipment.TabIndex = 1;
|
||||
this.tabEquipment.Text = "Equipment";
|
||||
this.tabEquipment.UseVisualStyleBackColor = true;
|
||||
|
@ -217,11 +238,74 @@
|
|||
//
|
||||
this.tabItems.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabItems.Name = "tabItems";
|
||||
this.tabItems.Size = new System.Drawing.Size(201, 206);
|
||||
this.tabItems.Size = new System.Drawing.Size(528, 273);
|
||||
this.tabItems.TabIndex = 2;
|
||||
this.tabItems.Text = "Items";
|
||||
this.tabItems.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.groupBox7);
|
||||
this.groupBox5.Controls.Add(this.groupBox6);
|
||||
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox5.Location = new System.Drawing.Point(0, 0);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(542, 240);
|
||||
this.groupBox5.TabIndex = 0;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Door Installation";
|
||||
//
|
||||
// groupBox7
|
||||
//
|
||||
this.groupBox7.Controls.Add(this.groupBox10);
|
||||
this.groupBox7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox7.Location = new System.Drawing.Point(174, 16);
|
||||
this.groupBox7.Name = "groupBox7";
|
||||
this.groupBox7.Size = new System.Drawing.Size(365, 221);
|
||||
this.groupBox7.TabIndex = 1;
|
||||
this.groupBox7.TabStop = false;
|
||||
this.groupBox7.Text = "Install Options";
|
||||
//
|
||||
// groupBox10
|
||||
//
|
||||
this.groupBox10.Controls.Add(this.propertyDoor);
|
||||
this.groupBox10.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.groupBox10.Location = new System.Drawing.Point(6, 16);
|
||||
this.groupBox10.Name = "groupBox10";
|
||||
this.groupBox10.Size = new System.Drawing.Size(356, 202);
|
||||
this.groupBox10.TabIndex = 7;
|
||||
this.groupBox10.TabStop = false;
|
||||
this.groupBox10.Text = "Door Setup";
|
||||
//
|
||||
// propertyDoor
|
||||
//
|
||||
this.propertyDoor.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyDoor.Location = new System.Drawing.Point(3, 16);
|
||||
this.propertyDoor.Name = "propertyDoor";
|
||||
this.propertyDoor.Size = new System.Drawing.Size(350, 183);
|
||||
this.propertyDoor.TabIndex = 4;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.lstDirections);
|
||||
this.groupBox6.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.groupBox6.Location = new System.Drawing.Point(3, 16);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(171, 221);
|
||||
this.groupBox6.TabIndex = 0;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Available Directions";
|
||||
//
|
||||
// lstDirections
|
||||
//
|
||||
this.lstDirections.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstDirections.FormattingEnabled = true;
|
||||
this.lstDirections.Location = new System.Drawing.Point(3, 16);
|
||||
this.lstDirections.Name = "lstDirections";
|
||||
this.lstDirections.Size = new System.Drawing.Size(165, 199);
|
||||
this.lstDirections.TabIndex = 0;
|
||||
this.lstDirections.SelectedIndexChanged += new System.EventHandler(this.lstDirections_SelectedIndexChanged);
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
@ -240,13 +324,17 @@
|
|||
this.containerSidebar.Panel1.ResumeLayout(false);
|
||||
this.containerSidebar.Panel2.ResumeLayout(false);
|
||||
this.containerSidebar.ResumeLayout(false);
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.tabSidebar.ResumeLayout(false);
|
||||
this.tabObjects.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.containerDesigner.Panel1.ResumeLayout(false);
|
||||
this.containerDesigner.Panel2.ResumeLayout(false);
|
||||
this.containerDesigner.ResumeLayout(false);
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox7.ResumeLayout(false);
|
||||
this.groupBox10.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
@ -255,18 +343,25 @@
|
|||
|
||||
private System.Windows.Forms.SplitContainer containerMain;
|
||||
private System.Windows.Forms.SplitContainer containerSidebar;
|
||||
private System.Windows.Forms.TabControl tabSidebar;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
||||
private System.Windows.Forms.TabPage tabObjects;
|
||||
private System.Windows.Forms.TabPage tabDoors;
|
||||
private System.Windows.Forms.SplitContainer containerDesigner;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.PropertyGrid propertyRoom;
|
||||
private System.Windows.Forms.Button btnCloseEditor;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Button btnSaveRoom;
|
||||
private System.Windows.Forms.Button btnNewRoom;
|
||||
private System.Windows.Forms.SplitContainer containerDesigner;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabBooks;
|
||||
private System.Windows.Forms.TabPage tabEquipment;
|
||||
private System.Windows.Forms.TabPage tabItems;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.ListBox lstDirections;
|
||||
private System.Windows.Forms.GroupBox groupBox7;
|
||||
private System.Windows.Forms.GroupBox groupBox10;
|
||||
private System.Windows.Forms.PropertyGrid propertyDoor;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,13 +7,44 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using MUDEngine.Objects.Environment;
|
||||
using MUDEngine.Objects;
|
||||
using MUDEngine;
|
||||
using MUDEngine.FileSystem;
|
||||
|
||||
namespace RoomDesigner
|
||||
{
|
||||
public partial class frmMain : Form
|
||||
{
|
||||
Room room;
|
||||
Door door;
|
||||
public frmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
room = new Room();
|
||||
door = new Door();
|
||||
propertyRoom.SelectedObject = room;
|
||||
AvailableTravelDirections type = new AvailableTravelDirections();
|
||||
|
||||
Array Values = System.Enum.GetValues(type.GetType());
|
||||
|
||||
foreach (int Value in Values)
|
||||
{
|
||||
string Display = Enum.GetName(type.GetType(), Value);
|
||||
this.lstDirections.Items.Add(Display);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void btnCloseEditor_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
private void lstDirections_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
propertyDoor.SelectedObject = door;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue