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

@ -105,7 +105,7 @@ namespace RoomDesigner
method.IsOverride = true;
method.Modifier = ManagedScripting.CodeBuilding.ClassGenerator.Modifiers.Public;
method.Code = new string[] { "base." + method.Name + "();" };
script = script.Insert(_CurrentRoom.Script.Length, method.Create());
script = script.Insert(_CurrentRoom.Script.Length, method.Create() + "\n");
}
_CurrentRoom.Script = script;
}
@ -338,7 +338,7 @@ namespace RoomDesigner
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControl1.SelectedTab.Text == "Script")
if (tabObjects.SelectedTab.Text == "Script")
{
txtScript.Text = _CurrentRoom.Script;
}