MUDEngine:
* ProjectInformation.cs - TimeOfDayOptions enum added for changing how the project uses day time. * ProjectInformation.cs - TimeOfDay Property Added. * ProjectInformation.cs - TimeOfDayTransition PropertyAdded * ProjectInformation.cs - DayLength Property added. * ProjectInformation.cs - Story Property added. Non-browsable. Project Manager: * frmMain.cs - Zone and Room Lists are now instanced within the constructor. * frmMain.cs - Project Story text box added for creating and saving the projects story.
This commit is contained in:
parent
f62fb84e13
commit
cd56036ee7
3 changed files with 83 additions and 11 deletions
|
@ -20,7 +20,21 @@ namespace MUDEngine
|
|||
public Environment.Realm Realm;
|
||||
}
|
||||
|
||||
#region ====== Public Enumerators, Structures & Properties ======
|
||||
public struct CurrencyInfo
|
||||
{
|
||||
public uint Amount;
|
||||
public string Name;
|
||||
public string Description;
|
||||
public uint BaseValue;
|
||||
}
|
||||
|
||||
public enum TimeOfDayOptions
|
||||
{
|
||||
AlwaysDay,
|
||||
AlwaysNight,
|
||||
Transition,
|
||||
}
|
||||
|
||||
[Category("Company Information")]
|
||||
/// <summary>
|
||||
/// Gets or Sets the name of the company
|
||||
|
@ -49,15 +63,31 @@ namespace MUDEngine
|
|||
/// </summary>
|
||||
public bool HideRoomNames { get; set; }
|
||||
|
||||
[Category("Project Settings")]
|
||||
public TimeOfDayOptions TimeOfDay
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Project Settings")]
|
||||
[Description("Set how long in minutes it takes to transition from day to night.")]
|
||||
public int TimeOfDayTransition
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Project Settings")]
|
||||
[Description("Sets how long in minutes a day lasts in the game world.")]
|
||||
public int DayLength
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Category("Project Information")]
|
||||
public string Version { get; set; }
|
||||
public struct CurrencyInfo
|
||||
{
|
||||
public uint Amount;
|
||||
public string Name;
|
||||
public string Description;
|
||||
public uint BaseValue;
|
||||
}
|
||||
|
||||
[Category("Project Information")]
|
||||
[Description("Sets the amount that the base currency is valued at.")]
|
||||
|
@ -67,20 +97,27 @@ namespace MUDEngine
|
|||
[Category("Project Information")]
|
||||
public string BaseCurrencyName { get; set; }
|
||||
|
||||
|
||||
|
||||
//TODO: Add Party support.
|
||||
[Browsable(false)]
|
||||
public List<CurrencyInfo> CurrencyList { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public string ProjectPath { get; set; }
|
||||
|
||||
//TODO: Add Party support.
|
||||
#endregion
|
||||
|
||||
[Browsable(false)]
|
||||
public StartingLocation InitialLocation
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public string Story
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
27
Project Manager/frmMain.Designer.cs
generated
27
Project Manager/frmMain.Designer.cs
generated
|
@ -30,6 +30,8 @@
|
|||
{
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.txtStory = new System.Windows.Forms.RichTextBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.lstRooms = new System.Windows.Forms.CheckedListBox();
|
||||
|
@ -40,6 +42,7 @@
|
|||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
this.splitContainer1.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
|
@ -58,6 +61,7 @@
|
|||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox5);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(573, 390);
|
||||
this.splitContainer1.SplitterDistance = 254;
|
||||
|
@ -71,6 +75,26 @@
|
|||
this.propertyGrid1.Size = new System.Drawing.Size(254, 390);
|
||||
this.propertyGrid1.TabIndex = 0;
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.txtStory);
|
||||
this.groupBox5.Location = new System.Drawing.Point(3, 214);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(309, 173);
|
||||
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, 154);
|
||||
this.txtStory.TabIndex = 2;
|
||||
this.txtStory.Text = "";
|
||||
this.txtStory.TextChanged += new System.EventHandler(this.txtStory_TextChanged);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.groupBox4);
|
||||
|
@ -162,6 +186,7 @@
|
|||
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
|
@ -181,6 +206,8 @@
|
|||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.CheckedListBox lstRooms;
|
||||
private System.Windows.Forms.CheckedListBox lstZones;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.RichTextBox txtStory;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@ namespace Project_Manager
|
|||
public frmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
zones = new List<MUDEngine.Environment.Zone>();
|
||||
rooms = new List<MUDEngine.Environment.Room>();
|
||||
}
|
||||
|
||||
private void frmMain_Load(object sender, EventArgs e)
|
||||
|
@ -26,6 +28,7 @@ namespace Project_Manager
|
|||
|
||||
//Aquire the project settings and show them.
|
||||
propertyGrid1.SelectedObject = Program.project;
|
||||
txtStory.Text = Program.project.Story;
|
||||
|
||||
//Add each realm found into the combo box of available realms.
|
||||
foreach (string realm in files)
|
||||
|
@ -129,5 +132,10 @@ namespace Project_Manager
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void txtStory_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
Program.project.Story = txtStory.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue