muddesigner/Mud Designer/Designer.cs
Scionwest_cp ee3a8c2b60 Mud Designer:
- Added a new designer that I will begin working on and testing UITypeEditors with. Future plan is to migrate all editors into a single editor relying heavily on UITypeEditors to flesh it out.
 - Selecting the Script property within the Designer.cs form executes the UIScriptEditor class and installs the UIScriptControl into the Designers control collection.
 - Clicking close on the Designer.cs GUI showcases clearing the controls of custom UITypeEditors and how the results of the editing is saved into the object that the PropertyGrid is editing.

Mud Engine:
 - Added a UIScriptControl User Control that the UIScriptEditor TypeEditor uses to install directly into the new Test Designer.
2010-01-03 20:48:25 -08:00

29 lines
685 B
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 MudDesigner.MudEngine.GameObjects.Environment;
using MudDesigner.MudEngine.GameObjects;
namespace MudDesigner
{
public partial class Designer : Form
{
Room r = new Room();
public Designer()
{
InitializeComponent();
propertyGrid1.SelectedObject = r;
}
private void button1_Click(object sender, EventArgs e)
{
ControlContainer.Panel1.Controls.Clear();
}
}
}