muddesigner/MUDEngine/Controls/VisualContainer.cs
Scionwest_cp 72a111c09d 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.
2009-11-27 20:44:15 -08:00

45 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MUDEngine.Objects;
namespace MUDEngine.Controls
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
public partial class VisualContainer : UserControl
{
[Browsable(true)]
public string Title
{
get { return btnTitle.Text; }
set { btnTitle.Text = value; }
}
[Browsable(false)]
internal BaseObject GameObject
{
get;
set;
}
public VisualContainer(BaseObject EngineObject) : this()
{
//InitializeComponent();
this.Dock = DockStyle.Fill;
GameObject = EngineObject;
}
public VisualContainer() : base()
{
InitializeComponent();
}
protected MUDEngine.Objects.BaseObject _Object;
}
}