Mud Engine:

- Added Controls namespace to the engine
 - Copied VisualContainer and RoomControl from Visual Designer to MUDEngine.Controls namespace
 - Added Control property to BaseObject, all objects now can have a custom UserControl that the Visual Designer will create during runtime when the object is dragged to the designer.
This commit is contained in:
Scionwest_cp 2009-11-27 20:44:15 -08:00
parent 5b6ea538d5
commit 72a111c09d
13 changed files with 574 additions and 162 deletions

View file

@ -13,6 +13,8 @@ namespace VisualComponents
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public partial class VisualContainer : UserControl
{
MUDEngine.Objects.BaseObject _Object;
[Browsable(true)]
public string Title
{
@ -20,9 +22,11 @@ namespace VisualComponents
set { btnTitle.Text = value; }
}
public VisualContainer()
public VisualContainer(MUDEngine.Objects.BaseObject EngineObject)
{
InitializeComponent();
_Object = EngineObject;
}
}
}