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.
This commit is contained in:
parent
90b7ca1a87
commit
ee3a8c2b60
10 changed files with 562 additions and 43 deletions
29
Mud Designer/Designer.cs
Normal file
29
Mud Designer/Designer.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue