VisualComponents:
* Added custom container controller VisualDesigner: * New editor designed similar to Visual Studio. * Loads MUDEngine.dll and places all classes inheriting from GameObject into the designers Object list.
This commit is contained in:
parent
4cfd6177bb
commit
12f5776d21
16 changed files with 1288 additions and 0 deletions
44
VisualComponents/VisualContainer.cs
Normal file
44
VisualComponents/VisualContainer.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
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;
|
||||
|
||||
namespace VisualComponents
|
||||
{
|
||||
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
|
||||
public partial class VisualContainer : UserControl
|
||||
{
|
||||
[Browsable(true)]
|
||||
public bool IsClosable
|
||||
{
|
||||
get { return btnClose.Visible; }
|
||||
set { btnClose.Visible = value; }
|
||||
}
|
||||
|
||||
[Browsable(true)]
|
||||
public string Title
|
||||
{
|
||||
get { return lblTitle.Text; }
|
||||
set { lblTitle.Text = value; }
|
||||
}
|
||||
|
||||
public VisualContainer()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Container.Remove(this);
|
||||
}
|
||||
|
||||
private void Container_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue