Visual Designer:
* Added Custom UI Look without using the VisualContainer control * Included ManagedScriptingWIN.dll, missing from previous commits.
This commit is contained in:
parent
2e0d9d0953
commit
fa720f42bf
6 changed files with 229 additions and 219 deletions
1
..svnbridge/ManagedScriptingWIN.dll
Normal file
1
..svnbridge/ManagedScriptingWIN.dll
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:mime-type</Name><Value>application/octet-stream</Value></Property></Properties></ItemProperties>
|
BIN
ManagedScriptingWIN.dll
Normal file
BIN
ManagedScriptingWIN.dll
Normal file
Binary file not shown.
105
VisualComponents/VisualContainer.Designer.cs
generated
105
VisualComponents/VisualContainer.Designer.cs
generated
|
@ -28,82 +28,26 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.btnTitle = new System.Windows.Forms.Button();
|
||||||
this.panelTitleBar = new System.Windows.Forms.Panel();
|
|
||||||
this.btnClose = new System.Windows.Forms.Button();
|
|
||||||
this.lblTitle = new System.Windows.Forms.Label();
|
|
||||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
|
||||||
this.splitContainer1.SuspendLayout();
|
|
||||||
this.panelTitleBar.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// splitContainer1
|
// btnTitle
|
||||||
//
|
//
|
||||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.btnTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
this.btnTitle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
this.btnTitle.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
this.splitContainer1.Name = "splitContainer1";
|
this.btnTitle.FlatAppearance.BorderSize = 2;
|
||||||
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
this.btnTitle.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
//
|
this.btnTitle.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
// splitContainer1.Panel1
|
this.btnTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
//
|
this.btnTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.panelTitleBar);
|
this.btnTitle.Location = new System.Drawing.Point(0, 0);
|
||||||
//
|
this.btnTitle.Name = "btnTitle";
|
||||||
// splitContainer1.Panel2
|
this.btnTitle.Size = new System.Drawing.Size(229, 27);
|
||||||
//
|
this.btnTitle.TabIndex = 0;
|
||||||
this.splitContainer1.Panel2.Controls.Add(this.flowLayoutPanel1);
|
this.btnTitle.Text = "Title";
|
||||||
this.splitContainer1.Size = new System.Drawing.Size(229, 228);
|
this.btnTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
this.splitContainer1.SplitterDistance = 25;
|
this.btnTitle.UseVisualStyleBackColor = false;
|
||||||
this.splitContainer1.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// panelTitleBar
|
|
||||||
//
|
|
||||||
this.panelTitleBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
|
||||||
this.panelTitleBar.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
||||||
this.panelTitleBar.Controls.Add(this.btnClose);
|
|
||||||
this.panelTitleBar.Controls.Add(this.lblTitle);
|
|
||||||
this.panelTitleBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.panelTitleBar.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.panelTitleBar.Name = "panelTitleBar";
|
|
||||||
this.panelTitleBar.Size = new System.Drawing.Size(229, 25);
|
|
||||||
this.panelTitleBar.TabIndex = 1;
|
|
||||||
//
|
|
||||||
// btnClose
|
|
||||||
//
|
|
||||||
this.btnClose.Dock = System.Windows.Forms.DockStyle.Right;
|
|
||||||
this.btnClose.FlatAppearance.BorderSize = 0;
|
|
||||||
this.btnClose.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Gray;
|
|
||||||
this.btnClose.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Silver;
|
|
||||||
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
||||||
this.btnClose.Location = new System.Drawing.Point(208, 0);
|
|
||||||
this.btnClose.Name = "btnClose";
|
|
||||||
this.btnClose.Size = new System.Drawing.Size(19, 23);
|
|
||||||
this.btnClose.TabIndex = 1;
|
|
||||||
this.btnClose.Text = "X";
|
|
||||||
this.btnClose.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// lblTitle
|
|
||||||
//
|
|
||||||
this.lblTitle.AutoSize = true;
|
|
||||||
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Left;
|
|
||||||
this.lblTitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
||||||
this.lblTitle.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.lblTitle.ForeColor = System.Drawing.Color.LightSkyBlue;
|
|
||||||
this.lblTitle.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.lblTitle.Name = "lblTitle";
|
|
||||||
this.lblTitle.Padding = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
|
||||||
this.lblTitle.Size = new System.Drawing.Size(0, 18);
|
|
||||||
this.lblTitle.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// flowLayoutPanel1
|
|
||||||
//
|
|
||||||
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
|
||||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(229, 199);
|
|
||||||
this.flowLayoutPanel1.TabIndex = 5;
|
|
||||||
//
|
//
|
||||||
// VisualContainer
|
// VisualContainer
|
||||||
//
|
//
|
||||||
|
@ -111,26 +55,17 @@
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.Gray;
|
this.BackColor = System.Drawing.Color.Gray;
|
||||||
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
this.Controls.Add(this.splitContainer1);
|
this.Controls.Add(this.btnTitle);
|
||||||
this.Name = "VisualContainer";
|
this.Name = "VisualContainer";
|
||||||
this.Size = new System.Drawing.Size(229, 228);
|
this.Size = new System.Drawing.Size(229, 228);
|
||||||
this.Load += new System.EventHandler(this.Container_Load);
|
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
|
||||||
this.splitContainer1.ResumeLayout(false);
|
|
||||||
this.panelTitleBar.ResumeLayout(false);
|
|
||||||
this.panelTitleBar.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
private System.Windows.Forms.Button btnTitle;
|
||||||
private System.Windows.Forms.Panel panelTitleBar;
|
|
||||||
private System.Windows.Forms.Button btnClose;
|
|
||||||
private System.Windows.Forms.Label lblTitle;
|
|
||||||
public System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,37 +13,16 @@ namespace VisualComponents
|
||||||
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
|
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
|
||||||
public partial class VisualContainer : UserControl
|
public partial class VisualContainer : UserControl
|
||||||
{
|
{
|
||||||
[Browsable(true)]
|
|
||||||
public bool IsClosable
|
|
||||||
{
|
|
||||||
get { return btnClose.Visible; }
|
|
||||||
set { btnClose.Visible = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[Browsable(true)]
|
[Browsable(true)]
|
||||||
public string Title
|
public string Title
|
||||||
{
|
{
|
||||||
get { return lblTitle.Text; }
|
get { return btnTitle.Text; }
|
||||||
set { lblTitle.Text = value; }
|
set { btnTitle.Text = value; }
|
||||||
}
|
|
||||||
|
|
||||||
public void AddControl(Control control)
|
|
||||||
{
|
|
||||||
this.flowLayoutPanel1.Controls.Add(control);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public VisualContainer()
|
public VisualContainer()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnClose_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
this.Container.Remove(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Container_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
310
VisualDesigner/frmDesigner.Designer.cs
generated
310
VisualDesigner/frmDesigner.Designer.cs
generated
|
@ -28,45 +28,58 @@
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("Game Objects");
|
||||||
|
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Game", new System.Windows.Forms.TreeNode[] {
|
||||||
|
treeNode3});
|
||||||
this.containerMain = new System.Windows.Forms.SplitContainer();
|
this.containerMain = new System.Windows.Forms.SplitContainer();
|
||||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
||||||
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
|
||||||
this.containerProperties = new System.Windows.Forms.SplitContainer();
|
this.containerProperties = new System.Windows.Forms.SplitContainer();
|
||||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
||||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
|
||||||
this.page1 = new System.Windows.Forms.TabPage();
|
|
||||||
this.containerLeftPane = new System.Windows.Forms.SplitContainer();
|
this.containerLeftPane = new System.Windows.Forms.SplitContainer();
|
||||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
|
||||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
|
||||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
|
||||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.panel3 = new System.Windows.Forms.Panel();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.panel4 = new System.Windows.Forms.Panel();
|
||||||
|
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
|
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||||
|
this.page1 = new System.Windows.Forms.TabPage();
|
||||||
|
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||||
|
this.treeProjectExplorer = new System.Windows.Forms.TreeView();
|
||||||
this.containerMain.Panel1.SuspendLayout();
|
this.containerMain.Panel1.SuspendLayout();
|
||||||
this.containerMain.Panel2.SuspendLayout();
|
this.containerMain.Panel2.SuspendLayout();
|
||||||
this.containerMain.SuspendLayout();
|
this.containerMain.SuspendLayout();
|
||||||
this.groupBox1.SuspendLayout();
|
|
||||||
this.containerProperties.Panel1.SuspendLayout();
|
this.containerProperties.Panel1.SuspendLayout();
|
||||||
this.containerProperties.Panel2.SuspendLayout();
|
this.containerProperties.Panel2.SuspendLayout();
|
||||||
this.containerProperties.SuspendLayout();
|
this.containerProperties.SuspendLayout();
|
||||||
this.groupBox2.SuspendLayout();
|
|
||||||
this.tabControl1.SuspendLayout();
|
|
||||||
this.containerLeftPane.Panel1.SuspendLayout();
|
this.containerLeftPane.Panel1.SuspendLayout();
|
||||||
this.containerLeftPane.Panel2.SuspendLayout();
|
this.containerLeftPane.Panel2.SuspendLayout();
|
||||||
this.containerLeftPane.SuspendLayout();
|
this.containerLeftPane.SuspendLayout();
|
||||||
this.groupBox4.SuspendLayout();
|
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
this.panel3.SuspendLayout();
|
||||||
|
this.panel4.SuspendLayout();
|
||||||
|
this.tabControl1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// containerMain
|
// containerMain
|
||||||
//
|
//
|
||||||
|
this.containerMain.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.containerMain.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
this.containerMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.containerMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.containerMain.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
this.containerMain.Location = new System.Drawing.Point(0, 24);
|
this.containerMain.Location = new System.Drawing.Point(0, 24);
|
||||||
this.containerMain.Name = "containerMain";
|
this.containerMain.Name = "containerMain";
|
||||||
//
|
//
|
||||||
// containerMain.Panel1
|
// containerMain.Panel1
|
||||||
//
|
//
|
||||||
this.containerMain.Panel1.Controls.Add(this.groupBox1);
|
this.containerMain.Panel1.Controls.Add(this.flowLayoutPanel1);
|
||||||
|
this.containerMain.Panel1.Controls.Add(this.panel1);
|
||||||
//
|
//
|
||||||
// containerMain.Panel2
|
// containerMain.Panel2
|
||||||
//
|
//
|
||||||
|
@ -75,25 +88,6 @@
|
||||||
this.containerMain.SplitterDistance = 133;
|
this.containerMain.SplitterDistance = 133;
|
||||||
this.containerMain.TabIndex = 0;
|
this.containerMain.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// groupBox1
|
|
||||||
//
|
|
||||||
this.groupBox1.Controls.Add(this.flowLayoutPanel1);
|
|
||||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.groupBox1.Name = "groupBox1";
|
|
||||||
this.groupBox1.Size = new System.Drawing.Size(133, 589);
|
|
||||||
this.groupBox1.TabIndex = 0;
|
|
||||||
this.groupBox1.TabStop = false;
|
|
||||||
this.groupBox1.Text = "Object Library";
|
|
||||||
//
|
|
||||||
// flowLayoutPanel1
|
|
||||||
//
|
|
||||||
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 16);
|
|
||||||
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
|
||||||
this.flowLayoutPanel1.Size = new System.Drawing.Size(127, 570);
|
|
||||||
this.flowLayoutPanel1.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// containerProperties
|
// containerProperties
|
||||||
//
|
//
|
||||||
this.containerProperties.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.containerProperties.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
@ -103,7 +97,8 @@
|
||||||
//
|
//
|
||||||
// containerProperties.Panel1
|
// containerProperties.Panel1
|
||||||
//
|
//
|
||||||
this.containerProperties.Panel1.Controls.Add(this.groupBox2);
|
this.containerProperties.Panel1.Controls.Add(this.tabControl1);
|
||||||
|
this.containerProperties.Panel1.Controls.Add(this.panel4);
|
||||||
//
|
//
|
||||||
// containerProperties.Panel2
|
// containerProperties.Panel2
|
||||||
//
|
//
|
||||||
|
@ -112,42 +107,6 @@
|
||||||
this.containerProperties.SplitterDistance = 667;
|
this.containerProperties.SplitterDistance = 667;
|
||||||
this.containerProperties.TabIndex = 0;
|
this.containerProperties.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// groupBox2
|
|
||||||
//
|
|
||||||
this.groupBox2.Controls.Add(this.tabControl1);
|
|
||||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.groupBox2.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.groupBox2.Name = "groupBox2";
|
|
||||||
this.groupBox2.Size = new System.Drawing.Size(665, 587);
|
|
||||||
this.groupBox2.TabIndex = 0;
|
|
||||||
this.groupBox2.TabStop = false;
|
|
||||||
this.groupBox2.Text = "Visual Designer";
|
|
||||||
//
|
|
||||||
// tabControl1
|
|
||||||
//
|
|
||||||
this.tabControl1.AllowDrop = true;
|
|
||||||
this.tabControl1.Controls.Add(this.page1);
|
|
||||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.tabControl1.Location = new System.Drawing.Point(3, 16);
|
|
||||||
this.tabControl1.Name = "tabControl1";
|
|
||||||
this.tabControl1.SelectedIndex = 0;
|
|
||||||
this.tabControl1.Size = new System.Drawing.Size(659, 568);
|
|
||||||
this.tabControl1.TabIndex = 0;
|
|
||||||
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
|
|
||||||
//
|
|
||||||
// page1
|
|
||||||
//
|
|
||||||
this.page1.AllowDrop = true;
|
|
||||||
this.page1.Location = new System.Drawing.Point(4, 22);
|
|
||||||
this.page1.Name = "page1";
|
|
||||||
this.page1.Padding = new System.Windows.Forms.Padding(3);
|
|
||||||
this.page1.Size = new System.Drawing.Size(651, 542);
|
|
||||||
this.page1.TabIndex = 0;
|
|
||||||
this.page1.Text = "Empty";
|
|
||||||
this.page1.UseVisualStyleBackColor = true;
|
|
||||||
this.page1.DragDrop += new System.Windows.Forms.DragEventHandler(this.page1_DragDrop);
|
|
||||||
this.page1.DragEnter += new System.Windows.Forms.DragEventHandler(this.page1_DragEnter);
|
|
||||||
//
|
|
||||||
// containerLeftPane
|
// containerLeftPane
|
||||||
//
|
//
|
||||||
this.containerLeftPane.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.containerLeftPane.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
@ -157,45 +116,17 @@
|
||||||
//
|
//
|
||||||
// containerLeftPane.Panel1
|
// containerLeftPane.Panel1
|
||||||
//
|
//
|
||||||
this.containerLeftPane.Panel1.Controls.Add(this.groupBox3);
|
this.containerLeftPane.Panel1.Controls.Add(this.treeProjectExplorer);
|
||||||
|
this.containerLeftPane.Panel1.Controls.Add(this.panel2);
|
||||||
//
|
//
|
||||||
// containerLeftPane.Panel2
|
// containerLeftPane.Panel2
|
||||||
//
|
//
|
||||||
this.containerLeftPane.Panel2.Controls.Add(this.groupBox4);
|
this.containerLeftPane.Panel2.Controls.Add(this.propertyGrid1);
|
||||||
|
this.containerLeftPane.Panel2.Controls.Add(this.panel3);
|
||||||
this.containerLeftPane.Size = new System.Drawing.Size(240, 587);
|
this.containerLeftPane.Size = new System.Drawing.Size(240, 587);
|
||||||
this.containerLeftPane.SplitterDistance = 297;
|
this.containerLeftPane.SplitterDistance = 297;
|
||||||
this.containerLeftPane.TabIndex = 0;
|
this.containerLeftPane.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// groupBox3
|
|
||||||
//
|
|
||||||
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.groupBox3.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.groupBox3.Name = "groupBox3";
|
|
||||||
this.groupBox3.Size = new System.Drawing.Size(240, 297);
|
|
||||||
this.groupBox3.TabIndex = 1;
|
|
||||||
this.groupBox3.TabStop = false;
|
|
||||||
this.groupBox3.Text = "Project Explorer";
|
|
||||||
//
|
|
||||||
// groupBox4
|
|
||||||
//
|
|
||||||
this.groupBox4.Controls.Add(this.propertyGrid1);
|
|
||||||
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.groupBox4.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.groupBox4.Name = "groupBox4";
|
|
||||||
this.groupBox4.Size = new System.Drawing.Size(240, 286);
|
|
||||||
this.groupBox4.TabIndex = 1;
|
|
||||||
this.groupBox4.TabStop = false;
|
|
||||||
this.groupBox4.Text = "Object Properties";
|
|
||||||
//
|
|
||||||
// propertyGrid1
|
|
||||||
//
|
|
||||||
this.propertyGrid1.CategoryForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
|
|
||||||
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.propertyGrid1.Location = new System.Drawing.Point(3, 16);
|
|
||||||
this.propertyGrid1.Name = "propertyGrid1";
|
|
||||||
this.propertyGrid1.Size = new System.Drawing.Size(234, 267);
|
|
||||||
this.propertyGrid1.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// menuStrip1
|
// menuStrip1
|
||||||
//
|
//
|
||||||
this.menuStrip1.BackColor = System.Drawing.Color.Silver;
|
this.menuStrip1.BackColor = System.Drawing.Color.Silver;
|
||||||
|
@ -224,6 +155,158 @@
|
||||||
this.closeToolStripMenuItem.Text = "Close";
|
this.closeToolStripMenuItem.Text = "Close";
|
||||||
this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
|
this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
|
||||||
|
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panel1.Controls.Add(this.label1);
|
||||||
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(131, 29);
|
||||||
|
this.panel1.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label1.ForeColor = System.Drawing.Color.Silver;
|
||||||
|
this.label1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
|
||||||
|
this.label1.Size = new System.Drawing.Size(129, 27);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "Object Browser";
|
||||||
|
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label2.ForeColor = System.Drawing.Color.Silver;
|
||||||
|
this.label2.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
|
||||||
|
this.label2.Size = new System.Drawing.Size(238, 27);
|
||||||
|
this.label2.TabIndex = 0;
|
||||||
|
this.label2.Text = "Project Explorer";
|
||||||
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
|
||||||
|
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panel2.Controls.Add(this.label2);
|
||||||
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(240, 29);
|
||||||
|
this.panel2.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label3.ForeColor = System.Drawing.Color.Silver;
|
||||||
|
this.label3.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
|
||||||
|
this.label3.Size = new System.Drawing.Size(238, 27);
|
||||||
|
this.label3.TabIndex = 0;
|
||||||
|
this.label3.Text = "Object Properties";
|
||||||
|
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// panel3
|
||||||
|
//
|
||||||
|
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
|
||||||
|
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panel3.Controls.Add(this.label3);
|
||||||
|
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel3.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel3.Name = "panel3";
|
||||||
|
this.panel3.Size = new System.Drawing.Size(240, 29);
|
||||||
|
this.panel3.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label4.ForeColor = System.Drawing.Color.Silver;
|
||||||
|
this.label4.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
|
||||||
|
this.label4.Size = new System.Drawing.Size(663, 27);
|
||||||
|
this.label4.TabIndex = 0;
|
||||||
|
this.label4.Text = "Visual Designer";
|
||||||
|
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// panel4
|
||||||
|
//
|
||||||
|
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(42)))), ((int)(((byte)(42)))));
|
||||||
|
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panel4.Controls.Add(this.label4);
|
||||||
|
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel4.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel4.Name = "panel4";
|
||||||
|
this.panel4.Size = new System.Drawing.Size(665, 29);
|
||||||
|
this.panel4.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// flowLayoutPanel1
|
||||||
|
//
|
||||||
|
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 29);
|
||||||
|
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
|
||||||
|
this.flowLayoutPanel1.Size = new System.Drawing.Size(131, 558);
|
||||||
|
this.flowLayoutPanel1.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// tabControl1
|
||||||
|
//
|
||||||
|
this.tabControl1.AllowDrop = true;
|
||||||
|
this.tabControl1.Controls.Add(this.page1);
|
||||||
|
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.tabControl1.Location = new System.Drawing.Point(0, 29);
|
||||||
|
this.tabControl1.Name = "tabControl1";
|
||||||
|
this.tabControl1.SelectedIndex = 0;
|
||||||
|
this.tabControl1.Size = new System.Drawing.Size(665, 558);
|
||||||
|
this.tabControl1.TabIndex = 2;
|
||||||
|
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
|
||||||
|
//
|
||||||
|
// page1
|
||||||
|
//
|
||||||
|
this.page1.AllowDrop = true;
|
||||||
|
this.page1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
|
this.page1.Location = new System.Drawing.Point(4, 22);
|
||||||
|
this.page1.Name = "page1";
|
||||||
|
this.page1.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.page1.Size = new System.Drawing.Size(657, 532);
|
||||||
|
this.page1.TabIndex = 1;
|
||||||
|
this.page1.Text = "Empty";
|
||||||
|
this.page1.DragDrop += new System.Windows.Forms.DragEventHandler(this.page1_DragDrop);
|
||||||
|
this.page1.DragEnter += new System.Windows.Forms.DragEventHandler(this.page1_DragEnter);
|
||||||
|
//
|
||||||
|
// propertyGrid1
|
||||||
|
//
|
||||||
|
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.propertyGrid1.Location = new System.Drawing.Point(0, 29);
|
||||||
|
this.propertyGrid1.Name = "propertyGrid1";
|
||||||
|
this.propertyGrid1.Size = new System.Drawing.Size(240, 257);
|
||||||
|
this.propertyGrid1.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// treeProjectExplorer
|
||||||
|
//
|
||||||
|
this.treeProjectExplorer.BackColor = System.Drawing.Color.Gray;
|
||||||
|
this.treeProjectExplorer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.treeProjectExplorer.Location = new System.Drawing.Point(0, 29);
|
||||||
|
this.treeProjectExplorer.Name = "treeProjectExplorer";
|
||||||
|
treeNode3.Name = "nodeGameObjects";
|
||||||
|
treeNode3.Text = "Game Objects";
|
||||||
|
treeNode4.Name = "nodeGame";
|
||||||
|
treeNode4.Text = "Game";
|
||||||
|
this.treeProjectExplorer.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||||
|
treeNode4});
|
||||||
|
this.treeProjectExplorer.Size = new System.Drawing.Size(240, 268);
|
||||||
|
this.treeProjectExplorer.TabIndex = 2;
|
||||||
|
//
|
||||||
// frmMain
|
// frmMain
|
||||||
//
|
//
|
||||||
this.AllowDrop = true;
|
this.AllowDrop = true;
|
||||||
|
@ -236,23 +319,23 @@
|
||||||
this.Name = "frmMain";
|
this.Name = "frmMain";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "Visual Mud Designer";
|
this.Text = "Visual Mud Designer";
|
||||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
|
||||||
this.Load += new System.EventHandler(this.frmMain_Load);
|
this.Load += new System.EventHandler(this.frmMain_Load);
|
||||||
this.containerMain.Panel1.ResumeLayout(false);
|
this.containerMain.Panel1.ResumeLayout(false);
|
||||||
this.containerMain.Panel2.ResumeLayout(false);
|
this.containerMain.Panel2.ResumeLayout(false);
|
||||||
this.containerMain.ResumeLayout(false);
|
this.containerMain.ResumeLayout(false);
|
||||||
this.groupBox1.ResumeLayout(false);
|
|
||||||
this.containerProperties.Panel1.ResumeLayout(false);
|
this.containerProperties.Panel1.ResumeLayout(false);
|
||||||
this.containerProperties.Panel2.ResumeLayout(false);
|
this.containerProperties.Panel2.ResumeLayout(false);
|
||||||
this.containerProperties.ResumeLayout(false);
|
this.containerProperties.ResumeLayout(false);
|
||||||
this.groupBox2.ResumeLayout(false);
|
|
||||||
this.tabControl1.ResumeLayout(false);
|
|
||||||
this.containerLeftPane.Panel1.ResumeLayout(false);
|
this.containerLeftPane.Panel1.ResumeLayout(false);
|
||||||
this.containerLeftPane.Panel2.ResumeLayout(false);
|
this.containerLeftPane.Panel2.ResumeLayout(false);
|
||||||
this.containerLeftPane.ResumeLayout(false);
|
this.containerLeftPane.ResumeLayout(false);
|
||||||
this.groupBox4.ResumeLayout(false);
|
|
||||||
this.menuStrip1.ResumeLayout(false);
|
this.menuStrip1.ResumeLayout(false);
|
||||||
this.menuStrip1.PerformLayout();
|
this.menuStrip1.PerformLayout();
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel3.ResumeLayout(false);
|
||||||
|
this.panel4.ResumeLayout(false);
|
||||||
|
this.tabControl1.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
|
@ -266,14 +349,19 @@
|
||||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||||
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem;
|
||||||
private System.Windows.Forms.GroupBox groupBox1;
|
private System.Windows.Forms.Panel panel1;
|
||||||
private System.Windows.Forms.GroupBox groupBox2;
|
private System.Windows.Forms.Label label1;
|
||||||
private System.Windows.Forms.GroupBox groupBox3;
|
private System.Windows.Forms.Panel panel4;
|
||||||
private System.Windows.Forms.GroupBox groupBox4;
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Panel panel3;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
|
||||||
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
|
||||||
private System.Windows.Forms.TabControl tabControl1;
|
private System.Windows.Forms.TabControl tabControl1;
|
||||||
private System.Windows.Forms.TabPage page1;
|
private System.Windows.Forms.TabPage page1;
|
||||||
|
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
||||||
|
private System.Windows.Forms.TreeView treeProjectExplorer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,10 @@ namespace VisualDesigner
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
|
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
foreach (ScriptObject obj in engine.GetObjects())
|
||||||
|
{
|
||||||
|
XmlSerialization.Save(obj.Name + ".xml", obj);
|
||||||
|
}
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,8 +84,10 @@ namespace VisualDesigner
|
||||||
button.Width = flowLayoutPanel1.Width - 10;
|
button.Width = flowLayoutPanel1.Width - 10;
|
||||||
button.Text = t;
|
button.Text = t;
|
||||||
button.AllowDrop = true;
|
button.AllowDrop = true;
|
||||||
|
button.Dock = DockStyle.Top;
|
||||||
button.MouseDown += new MouseEventHandler(newObject_MouseDown);
|
button.MouseDown += new MouseEventHandler(newObject_MouseDown);
|
||||||
button.FlatStyle = FlatStyle.Flat;
|
button.FlatStyle = FlatStyle.Flat;
|
||||||
|
|
||||||
flowLayoutPanel1.Controls.Add(button);
|
flowLayoutPanel1.Controls.Add(button);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -141,6 +147,7 @@ namespace VisualDesigner
|
||||||
tab.DragDrop +=new DragEventHandler(page1_DragDrop);
|
tab.DragDrop +=new DragEventHandler(page1_DragDrop);
|
||||||
tab.DragEnter += new DragEventHandler(page1_DragEnter);
|
tab.DragEnter += new DragEventHandler(page1_DragEnter);
|
||||||
tab.AllowDrop = true;
|
tab.AllowDrop = true;
|
||||||
|
tab.BackColor = Color.FromArgb(64,64,64);
|
||||||
tabControl1.TabPages.Add(tab);
|
tabControl1.TabPages.Add(tab);
|
||||||
//select the tab.
|
//select the tab.
|
||||||
tabControl1.SelectedTab = tab;
|
tabControl1.SelectedTab = tab;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue