muddesigner/Mud Designer/Editors/ScriptEditor.cs
Scionwest_cp 90b7ca1a87 Mud Engine:
- Implemented a UITypeEditor for scripts to test developing custom UI Editors for PropertyGrids. It allows for scripts to be edited directly within the PropertyGrid now by launching the new ScriptEditor form. This is how most of the editors custom objects will be implemented into the PropertyGrids.
 - The Script property is now browsable within PropertyGrids now that they have a custom editor built.

Mud Designer:
 - ScriptEditor added.
 - Removed Script editor from within the Realm Explorer and I will do the same for the Zone Explorer and Room Builder.
 - All objects can now have a script attached to them from within any editor thanks to the new UITypeEditor approach being used.
2010-01-03 20:01:36 -08:00

30 lines
644 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;
namespace MudDesigner.Editors
{
public partial class ScriptEditor : Form
{
public string Script
{
get
{
return richTextBox1.Text;
}
}
public ScriptEditor(BaseObject baseObject)
{
InitializeComponent();
richTextBox1.Text = baseObject.Script;
}
}
}