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

@ -8,6 +8,7 @@ using System.Text;
using System.Windows.Forms;
using ManagedScripting;
using MUDEngine;
using MUDEngine.Controls;
using MUDEngine.Objects;
using MUDEngine.Objects.Environment;
using MUDEngine.FileSystem;
@ -133,11 +134,7 @@ namespace VisualDesigner
//If the first page is still empty, use it
if (page1.Text == "Empty")
{
page1.Text = currentScript.Name;
if (currentScript.Name == "Room")
{
//page1.Controls.Add(new VisualComponents.RoomDesigner((Room)currentScript.Instance));
}
page1.Controls.Add(new MUDEngine.Controls.RoomControl((BaseObject)currentScript.Instance));
break;
}
//Otherwise create a new page