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:
Scionwest_cp 2009-11-10 20:24:58 -08:00
parent 7a8437763b
commit ab8d46ed3c
10 changed files with 374 additions and 110 deletions

View file

@ -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;
}
}
}