* 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.
50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
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 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;
|
|
}
|
|
}
|
|
}
|