linedef and thing action arguments in info panels

This commit is contained in:
codeimp 2008-05-29 22:19:29 +00:00
parent ab5fd39c24
commit 7673c6e08e
8 changed files with 630 additions and 292 deletions

View file

@ -29,11 +29,21 @@ namespace CodeImp.DoomBuilder.Controls
private void InitializeComponent()
{
System.Windows.Forms.Label label1;
System.Windows.Forms.GroupBox groupBox1;
System.Windows.Forms.Label label4;
System.Windows.Forms.Label label3;
System.Windows.Forms.Label label2;
this.infopanel = new System.Windows.Forms.GroupBox();
this.arg5 = new System.Windows.Forms.Label();
this.arglbl5 = new System.Windows.Forms.Label();
this.arglbl4 = new System.Windows.Forms.Label();
this.arg4 = new System.Windows.Forms.Label();
this.arglbl3 = new System.Windows.Forms.Label();
this.arglbl2 = new System.Windows.Forms.Label();
this.arg3 = new System.Windows.Forms.Label();
this.arglbl1 = new System.Windows.Forms.Label();
this.arg2 = new System.Windows.Forms.Label();
this.backoffset = new System.Windows.Forms.Label();
this.arg1 = new System.Windows.Forms.Label();
this.backoffsetlabel = new System.Windows.Forms.Label();
this.frontoffset = new System.Windows.Forms.Label();
this.frontoffsetlabel = new System.Windows.Forms.Label();
@ -56,11 +66,10 @@ namespace CodeImp.DoomBuilder.Controls
this.backhighname = new System.Windows.Forms.Label();
this.backhightex = new System.Windows.Forms.Panel();
label1 = new System.Windows.Forms.Label();
groupBox1 = new System.Windows.Forms.GroupBox();
label4 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
groupBox1.SuspendLayout();
this.infopanel.SuspendLayout();
this.frontpanel.SuspendLayout();
this.backpanel.SuspendLayout();
this.SuspendLayout();
@ -74,28 +83,129 @@ namespace CodeImp.DoomBuilder.Controls
label1.TabIndex = 0;
label1.Text = "Action:";
//
// groupBox1
// infopanel
//
groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
this.infopanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
groupBox1.Controls.Add(this.backoffset);
groupBox1.Controls.Add(this.backoffsetlabel);
groupBox1.Controls.Add(this.frontoffset);
groupBox1.Controls.Add(this.frontoffsetlabel);
groupBox1.Controls.Add(this.tag);
groupBox1.Controls.Add(this.angle);
groupBox1.Controls.Add(this.length);
groupBox1.Controls.Add(label4);
groupBox1.Controls.Add(label3);
groupBox1.Controls.Add(label2);
groupBox1.Controls.Add(this.action);
groupBox1.Controls.Add(label1);
groupBox1.Location = new System.Drawing.Point(0, 0);
groupBox1.Name = "groupBox1";
groupBox1.Size = new System.Drawing.Size(258, 100);
groupBox1.TabIndex = 1;
groupBox1.TabStop = false;
groupBox1.Text = " Linedef ";
this.infopanel.Controls.Add(this.arg5);
this.infopanel.Controls.Add(this.arglbl5);
this.infopanel.Controls.Add(this.arglbl4);
this.infopanel.Controls.Add(this.arg4);
this.infopanel.Controls.Add(this.arglbl3);
this.infopanel.Controls.Add(this.arglbl2);
this.infopanel.Controls.Add(this.arg3);
this.infopanel.Controls.Add(this.arglbl1);
this.infopanel.Controls.Add(this.arg2);
this.infopanel.Controls.Add(this.backoffset);
this.infopanel.Controls.Add(this.arg1);
this.infopanel.Controls.Add(this.backoffsetlabel);
this.infopanel.Controls.Add(this.frontoffset);
this.infopanel.Controls.Add(this.frontoffsetlabel);
this.infopanel.Controls.Add(this.tag);
this.infopanel.Controls.Add(this.angle);
this.infopanel.Controls.Add(this.length);
this.infopanel.Controls.Add(label4);
this.infopanel.Controls.Add(label3);
this.infopanel.Controls.Add(label2);
this.infopanel.Controls.Add(this.action);
this.infopanel.Controls.Add(label1);
this.infopanel.Location = new System.Drawing.Point(0, 0);
this.infopanel.Name = "infopanel";
this.infopanel.Size = new System.Drawing.Size(461, 100);
this.infopanel.TabIndex = 1;
this.infopanel.TabStop = false;
this.infopanel.Text = " Linedef ";
//
// arg5
//
this.arg5.AutoEllipsis = true;
this.arg5.Location = new System.Drawing.Point(373, 79);
this.arg5.Name = "arg5";
this.arg5.Size = new System.Drawing.Size(83, 14);
this.arg5.TabIndex = 27;
this.arg5.Text = "Arg 1:";
//
// arglbl5
//
this.arglbl5.AutoEllipsis = true;
this.arglbl5.BackColor = System.Drawing.Color.Transparent;
this.arglbl5.Location = new System.Drawing.Point(246, 79);
this.arglbl5.Name = "arglbl5";
this.arglbl5.Size = new System.Drawing.Size(121, 14);
this.arglbl5.TabIndex = 22;
this.arglbl5.Text = "Arg 1:";
this.arglbl5.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arglbl4
//
this.arglbl4.AutoEllipsis = true;
this.arglbl4.BackColor = System.Drawing.Color.Transparent;
this.arglbl4.Location = new System.Drawing.Point(246, 64);
this.arglbl4.Name = "arglbl4";
this.arglbl4.Size = new System.Drawing.Size(121, 14);
this.arglbl4.TabIndex = 21;
this.arglbl4.Text = "Arg 1:";
this.arglbl4.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg4
//
this.arg4.AutoEllipsis = true;
this.arg4.Location = new System.Drawing.Point(373, 64);
this.arg4.Name = "arg4";
this.arg4.Size = new System.Drawing.Size(83, 14);
this.arg4.TabIndex = 26;
this.arg4.Text = "Arg 1:";
//
// arglbl3
//
this.arglbl3.AutoEllipsis = true;
this.arglbl3.BackColor = System.Drawing.Color.Transparent;
this.arglbl3.Location = new System.Drawing.Point(246, 49);
this.arglbl3.Name = "arglbl3";
this.arglbl3.Size = new System.Drawing.Size(121, 14);
this.arglbl3.TabIndex = 20;
this.arglbl3.Text = "Arg 1:";
this.arglbl3.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arglbl2
//
this.arglbl2.AutoEllipsis = true;
this.arglbl2.BackColor = System.Drawing.Color.Transparent;
this.arglbl2.Location = new System.Drawing.Point(246, 34);
this.arglbl2.Name = "arglbl2";
this.arglbl2.Size = new System.Drawing.Size(121, 14);
this.arglbl2.TabIndex = 19;
this.arglbl2.Text = "Arg 1:";
this.arglbl2.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg3
//
this.arg3.AutoEllipsis = true;
this.arg3.Location = new System.Drawing.Point(373, 49);
this.arg3.Name = "arg3";
this.arg3.Size = new System.Drawing.Size(83, 14);
this.arg3.TabIndex = 25;
this.arg3.Text = "Arg 1:";
//
// arglbl1
//
this.arglbl1.AutoEllipsis = true;
this.arglbl1.BackColor = System.Drawing.Color.Transparent;
this.arglbl1.Location = new System.Drawing.Point(246, 19);
this.arglbl1.Name = "arglbl1";
this.arglbl1.Size = new System.Drawing.Size(121, 14);
this.arglbl1.TabIndex = 18;
this.arglbl1.Text = "Arg 1:";
this.arglbl1.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg2
//
this.arg2.AutoEllipsis = true;
this.arg2.Location = new System.Drawing.Point(373, 34);
this.arg2.Name = "arg2";
this.arg2.Size = new System.Drawing.Size(83, 14);
this.arg2.TabIndex = 24;
this.arg2.Text = "Arg 1:";
//
// backoffset
//
@ -106,6 +216,15 @@ namespace CodeImp.DoomBuilder.Controls
this.backoffset.TabIndex = 17;
this.backoffset.Text = "100, 100";
//
// arg1
//
this.arg1.AutoEllipsis = true;
this.arg1.Location = new System.Drawing.Point(373, 19);
this.arg1.Name = "arg1";
this.arg1.Size = new System.Drawing.Size(83, 14);
this.arg1.TabIndex = 23;
this.arg1.Text = "Arg 1:";
//
// backoffsetlabel
//
this.backoffsetlabel.AutoSize = true;
@ -190,9 +309,10 @@ namespace CodeImp.DoomBuilder.Controls
// action
//
this.action.AutoEllipsis = true;
this.action.BackColor = System.Drawing.Color.Transparent;
this.action.Location = new System.Drawing.Point(55, 19);
this.action.Name = "action";
this.action.Size = new System.Drawing.Size(197, 14);
this.action.Size = new System.Drawing.Size(205, 14);
this.action.TabIndex = 1;
this.action.Text = "0 - Big Door that goes Wobbly Wobbly";
//
@ -206,7 +326,7 @@ namespace CodeImp.DoomBuilder.Controls
this.frontpanel.Controls.Add(this.frontmidtex);
this.frontpanel.Controls.Add(this.fronthighname);
this.frontpanel.Controls.Add(this.fronthightex);
this.frontpanel.Location = new System.Drawing.Point(264, 0);
this.frontpanel.Location = new System.Drawing.Point(467, 0);
this.frontpanel.Name = "frontpanel";
this.frontpanel.Size = new System.Drawing.Size(241, 100);
this.frontpanel.TabIndex = 2;
@ -280,7 +400,7 @@ namespace CodeImp.DoomBuilder.Controls
this.backpanel.Controls.Add(this.backmidtex);
this.backpanel.Controls.Add(this.backhighname);
this.backpanel.Controls.Add(this.backhightex);
this.backpanel.Location = new System.Drawing.Point(511, 0);
this.backpanel.Location = new System.Drawing.Point(714, 0);
this.backpanel.Name = "backpanel";
this.backpanel.Size = new System.Drawing.Size(241, 100);
this.backpanel.TabIndex = 3;
@ -349,15 +469,15 @@ namespace CodeImp.DoomBuilder.Controls
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.backpanel);
this.Controls.Add(this.frontpanel);
this.Controls.Add(groupBox1);
this.Controls.Add(this.infopanel);
this.DoubleBuffered = true;
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.MaximumSize = new System.Drawing.Size(10000, 100);
this.MinimumSize = new System.Drawing.Size(100, 100);
this.Name = "LinedefInfoPanel";
this.Size = new System.Drawing.Size(770, 100);
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
this.Size = new System.Drawing.Size(965, 100);
this.infopanel.ResumeLayout(false);
this.infopanel.PerformLayout();
this.frontpanel.ResumeLayout(false);
this.backpanel.ResumeLayout(false);
this.ResumeLayout(false);
@ -388,6 +508,17 @@ namespace CodeImp.DoomBuilder.Controls
private System.Windows.Forms.GroupBox backpanel;
private System.Windows.Forms.Label backoffsetlabel;
private System.Windows.Forms.Label frontoffsetlabel;
private System.Windows.Forms.Label arglbl5;
private System.Windows.Forms.Label arglbl4;
private System.Windows.Forms.Label arglbl3;
private System.Windows.Forms.Label arglbl2;
private System.Windows.Forms.Label arglbl1;
private System.Windows.Forms.Label arg5;
private System.Windows.Forms.Label arg4;
private System.Windows.Forms.Label arg3;
private System.Windows.Forms.Label arg2;
private System.Windows.Forms.Label arg1;
private System.Windows.Forms.GroupBox infopanel;
}
}

View file

@ -26,6 +26,9 @@ using Microsoft.Win32;
using System.Diagnostics;
using CodeImp.DoomBuilder.Data;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Types;
using CodeImp.DoomBuilder.IO;
#endregion
@ -33,21 +36,67 @@ namespace CodeImp.DoomBuilder.Controls
{
internal partial class LinedefInfoPanel : UserControl
{
private int hexenformatwidth;
private int doomformatwidth;
// Constructor
public LinedefInfoPanel()
{
// Initialize
InitializeComponent();
// Hide stuff when in Doom format
hexenformatwidth = infopanel.Width;
doomformatwidth = infopanel.Width - 190;
}
// This shows the info
public void ShowInfo(Linedef l)
{
string actioninfo = "";
LinedefActionInfo act = null;
TypeHandler th;
// Show/hide stuff depending on format
if(General.Map.FormatInterface.GetType() == typeof(DoomMapSetIO))
{
arglbl1.Visible = false;
arglbl2.Visible = false;
arglbl3.Visible = false;
arglbl4.Visible = false;
arglbl5.Visible = false;
arg1.Visible = false;
arg2.Visible = false;
arg3.Visible = false;
arg4.Visible = false;
arg5.Visible = false;
infopanel.Width = doomformatwidth;
}
else
{
arglbl1.Visible = true;
arglbl2.Visible = true;
arglbl3.Visible = true;
arglbl4.Visible = true;
arglbl5.Visible = true;
arg1.Visible = true;
arg2.Visible = true;
arg3.Visible = true;
arg4.Visible = true;
arg5.Visible = true;
infopanel.Width = hexenformatwidth;
}
// Move panels
frontpanel.Left = infopanel.Left + infopanel.Width + infopanel.Margin.Right + frontpanel.Margin.Left;
backpanel.Left = frontpanel.Left + frontpanel.Width + frontpanel.Margin.Right + backpanel.Margin.Left;
// Get line action information
if(General.Map.Config.LinedefActions.ContainsKey(l.Action))
actioninfo = General.Map.Config.LinedefActions[l.Action].ToString();
{
act = General.Map.Config.LinedefActions[l.Action];
actioninfo = act.ToString();
}
else if(l.Action == 0)
actioninfo = l.Action.ToString() + " - None";
else
@ -59,6 +108,59 @@ namespace CodeImp.DoomBuilder.Controls
angle.Text = l.AngleDeg.ToString() + "\u00B0";
tag.Text = l.Tag.ToString();
// Arguments
if(act != null)
{
arglbl1.Text = act.Args[0].Title + ":";
arglbl2.Text = act.Args[1].Title + ":";
arglbl3.Text = act.Args[2].Title + ":";
arglbl4.Text = act.Args[3].Title + ":";
arglbl5.Text = act.Args[4].Title + ":";
arglbl1.Enabled = act.Args[0].Used;
arglbl2.Enabled = act.Args[1].Used;
arglbl3.Enabled = act.Args[2].Used;
arglbl4.Enabled = act.Args[3].Used;
arglbl5.Enabled = act.Args[4].Used;
arg1.Enabled = act.Args[0].Used;
arg2.Enabled = act.Args[1].Used;
arg3.Enabled = act.Args[2].Used;
arg4.Enabled = act.Args[3].Used;
arg5.Enabled = act.Args[4].Used;
th = General.Types.GetArgumentHandler(act.Args[0]);
th.SetValue(l.Args[0]); arg1.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[1]);
th.SetValue(l.Args[1]); arg2.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[2]);
th.SetValue(l.Args[2]); arg3.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[3]);
th.SetValue(l.Args[3]); arg4.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[4]);
th.SetValue(l.Args[4]); arg5.Text = th.GetStringValue();
}
else
{
arglbl1.Text = "Argument 1:";
arglbl2.Text = "Argument 2:";
arglbl3.Text = "Argument 3:";
arglbl4.Text = "Argument 4:";
arglbl5.Text = "Argument 5:";
arglbl1.Enabled = false;
arglbl2.Enabled = false;
arglbl3.Enabled = false;
arglbl4.Enabled = false;
arglbl5.Enabled = false;
arg1.Enabled = false;
arg2.Enabled = false;
arg3.Enabled = false;
arg4.Enabled = false;
arg5.Enabled = false;
arg1.Text = "-";
arg2.Text = "-";
arg3.Text = "-";
arg4.Text = "-";
arg5.Text = "-";
}
// Front side available?
if(l.Front != null)
{

View file

@ -117,103 +117,16 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backoffset.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backoffsetlabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontoffset.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontoffsetlabel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tag.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="angle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="length.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="action.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontlowname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontlowtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontmidname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="frontmidtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fronthighname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="fronthightex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backlowname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backlowtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backmidname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backmidtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backhighname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="backhightex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View file

@ -28,92 +28,39 @@ namespace CodeImp.DoomBuilder.Controls
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.GroupBox groupBox1;
System.Windows.Forms.Label label5;
System.Windows.Forms.Label label4;
System.Windows.Forms.Label label3;
System.Windows.Forms.Label label2;
System.Windows.Forms.Label label1;
this.ceilingpanel = new System.Windows.Forms.GroupBox();
this.spritename = new System.Windows.Forms.Label();
this.spritetex = new System.Windows.Forms.Panel();
this.infopanel = new System.Windows.Forms.GroupBox();
this.arg5 = new System.Windows.Forms.Label();
this.arglbl5 = new System.Windows.Forms.Label();
this.arglbl4 = new System.Windows.Forms.Label();
this.arg4 = new System.Windows.Forms.Label();
this.arglbl3 = new System.Windows.Forms.Label();
this.arglbl2 = new System.Windows.Forms.Label();
this.arg3 = new System.Windows.Forms.Label();
this.arglbl1 = new System.Windows.Forms.Label();
this.arg2 = new System.Windows.Forms.Label();
this.arg1 = new System.Windows.Forms.Label();
this.angle = new System.Windows.Forms.Label();
this.tag = new System.Windows.Forms.Label();
this.position = new System.Windows.Forms.Label();
this.action = new System.Windows.Forms.Label();
this.type = new System.Windows.Forms.Label();
groupBox1 = new System.Windows.Forms.GroupBox();
this.spritepanel = new System.Windows.Forms.GroupBox();
this.spritename = new System.Windows.Forms.Label();
this.spritetex = new System.Windows.Forms.Panel();
label5 = new System.Windows.Forms.Label();
label4 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
this.ceilingpanel.SuspendLayout();
groupBox1.SuspendLayout();
this.infopanel.SuspendLayout();
this.spritepanel.SuspendLayout();
this.SuspendLayout();
//
// ceilingpanel
//
this.ceilingpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.ceilingpanel.Controls.Add(this.spritename);
this.ceilingpanel.Controls.Add(this.spritetex);
this.ceilingpanel.Location = new System.Drawing.Point(273, 0);
this.ceilingpanel.Name = "ceilingpanel";
this.ceilingpanel.Size = new System.Drawing.Size(93, 100);
this.ceilingpanel.TabIndex = 5;
this.ceilingpanel.TabStop = false;
this.ceilingpanel.Text = " Sprite ";
//
// spritename
//
this.spritename.Location = new System.Drawing.Point(11, 80);
this.spritename.Name = "spritename";
this.spritename.Size = new System.Drawing.Size(72, 13);
this.spritename.TabIndex = 1;
this.spritename.Text = "BIGDOOR6";
this.spritename.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// spritetex
//
this.spritetex.BackColor = System.Drawing.SystemColors.AppWorkspace;
this.spritetex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.spritetex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.spritetex.Location = new System.Drawing.Point(13, 19);
this.spritetex.Name = "spritetex";
this.spritetex.Size = new System.Drawing.Size(68, 60);
this.spritetex.TabIndex = 0;
//
// groupBox1
//
groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
groupBox1.Controls.Add(this.angle);
groupBox1.Controls.Add(label5);
groupBox1.Controls.Add(this.tag);
groupBox1.Controls.Add(this.position);
groupBox1.Controls.Add(this.action);
groupBox1.Controls.Add(label4);
groupBox1.Controls.Add(label3);
groupBox1.Controls.Add(label2);
groupBox1.Controls.Add(this.type);
groupBox1.Controls.Add(label1);
groupBox1.Location = new System.Drawing.Point(0, 0);
groupBox1.Name = "groupBox1";
groupBox1.Size = new System.Drawing.Size(267, 100);
groupBox1.TabIndex = 4;
groupBox1.TabStop = false;
groupBox1.Text = " Thing ";
//
// angle
//
this.angle.AutoSize = true;
this.angle.Location = new System.Drawing.Point(206, 77);
this.angle.Name = "angle";
this.angle.Size = new System.Drawing.Size(13, 14);
this.angle.TabIndex = 11;
this.angle.Text = "0";
//
// label5
//
label5.AutoSize = true;
@ -123,33 +70,6 @@ namespace CodeImp.DoomBuilder.Controls
label5.TabIndex = 8;
label5.Text = "Angle:";
//
// tag
//
this.tag.AutoSize = true;
this.tag.Location = new System.Drawing.Point(61, 77);
this.tag.Name = "tag";
this.tag.Size = new System.Drawing.Size(13, 14);
this.tag.TabIndex = 7;
this.tag.Text = "0";
//
// position
//
this.position.AutoSize = true;
this.position.Location = new System.Drawing.Point(61, 58);
this.position.Name = "position";
this.position.Size = new System.Drawing.Size(91, 14);
this.position.TabIndex = 6;
this.position.Text = "1024, 1024, 1024";
//
// action
//
this.action.AutoSize = true;
this.action.Location = new System.Drawing.Point(61, 39);
this.action.Name = "action";
this.action.Size = new System.Drawing.Size(180, 14);
this.action.TabIndex = 5;
this.action.Text = "0 - Spawn a Blue Poopie and Ammo";
//
// label4
//
label4.AutoSize = true;
@ -177,15 +97,6 @@ namespace CodeImp.DoomBuilder.Controls
label2.TabIndex = 2;
label2.Text = "Action:";
//
// type
//
this.type.AutoSize = true;
this.type.Location = new System.Drawing.Point(61, 19);
this.type.Name = "type";
this.type.Size = new System.Drawing.Size(99, 14);
this.type.TabIndex = 1;
this.type.Text = "0 - Big Brown Pimp";
//
// label1
//
label1.AutoSize = true;
@ -195,26 +106,234 @@ namespace CodeImp.DoomBuilder.Controls
label1.TabIndex = 0;
label1.Text = "Type:";
//
// infopanel
//
this.infopanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.infopanel.Controls.Add(this.arg5);
this.infopanel.Controls.Add(this.arglbl5);
this.infopanel.Controls.Add(this.arglbl4);
this.infopanel.Controls.Add(this.arg4);
this.infopanel.Controls.Add(this.arglbl3);
this.infopanel.Controls.Add(this.arglbl2);
this.infopanel.Controls.Add(this.arg3);
this.infopanel.Controls.Add(this.arglbl1);
this.infopanel.Controls.Add(this.arg2);
this.infopanel.Controls.Add(this.arg1);
this.infopanel.Controls.Add(this.angle);
this.infopanel.Controls.Add(label5);
this.infopanel.Controls.Add(this.tag);
this.infopanel.Controls.Add(this.position);
this.infopanel.Controls.Add(this.action);
this.infopanel.Controls.Add(label4);
this.infopanel.Controls.Add(label3);
this.infopanel.Controls.Add(label2);
this.infopanel.Controls.Add(this.type);
this.infopanel.Controls.Add(label1);
this.infopanel.Location = new System.Drawing.Point(0, 0);
this.infopanel.Name = "infopanel";
this.infopanel.Size = new System.Drawing.Size(473, 100);
this.infopanel.TabIndex = 4;
this.infopanel.TabStop = false;
this.infopanel.Text = " Thing ";
//
// arg5
//
this.arg5.AutoEllipsis = true;
this.arg5.Location = new System.Drawing.Point(384, 79);
this.arg5.Name = "arg5";
this.arg5.Size = new System.Drawing.Size(83, 14);
this.arg5.TabIndex = 37;
this.arg5.Text = "Arg 1:";
//
// arglbl5
//
this.arglbl5.AutoEllipsis = true;
this.arglbl5.BackColor = System.Drawing.Color.Transparent;
this.arglbl5.Location = new System.Drawing.Point(257, 79);
this.arglbl5.Name = "arglbl5";
this.arglbl5.Size = new System.Drawing.Size(121, 14);
this.arglbl5.TabIndex = 32;
this.arglbl5.Text = "Arg 1:";
this.arglbl5.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arglbl4
//
this.arglbl4.AutoEllipsis = true;
this.arglbl4.BackColor = System.Drawing.Color.Transparent;
this.arglbl4.Location = new System.Drawing.Point(257, 64);
this.arglbl4.Name = "arglbl4";
this.arglbl4.Size = new System.Drawing.Size(121, 14);
this.arglbl4.TabIndex = 31;
this.arglbl4.Text = "Arg 1:";
this.arglbl4.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg4
//
this.arg4.AutoEllipsis = true;
this.arg4.Location = new System.Drawing.Point(384, 64);
this.arg4.Name = "arg4";
this.arg4.Size = new System.Drawing.Size(83, 14);
this.arg4.TabIndex = 36;
this.arg4.Text = "Arg 1:";
//
// arglbl3
//
this.arglbl3.AutoEllipsis = true;
this.arglbl3.BackColor = System.Drawing.Color.Transparent;
this.arglbl3.Location = new System.Drawing.Point(257, 49);
this.arglbl3.Name = "arglbl3";
this.arglbl3.Size = new System.Drawing.Size(121, 14);
this.arglbl3.TabIndex = 30;
this.arglbl3.Text = "Arg 1:";
this.arglbl3.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arglbl2
//
this.arglbl2.AutoEllipsis = true;
this.arglbl2.BackColor = System.Drawing.Color.Transparent;
this.arglbl2.Location = new System.Drawing.Point(257, 34);
this.arglbl2.Name = "arglbl2";
this.arglbl2.Size = new System.Drawing.Size(121, 14);
this.arglbl2.TabIndex = 29;
this.arglbl2.Text = "Arg 1:";
this.arglbl2.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg3
//
this.arg3.AutoEllipsis = true;
this.arg3.Location = new System.Drawing.Point(384, 49);
this.arg3.Name = "arg3";
this.arg3.Size = new System.Drawing.Size(83, 14);
this.arg3.TabIndex = 35;
this.arg3.Text = "Arg 1:";
//
// arglbl1
//
this.arglbl1.AutoEllipsis = true;
this.arglbl1.BackColor = System.Drawing.Color.Transparent;
this.arglbl1.Location = new System.Drawing.Point(257, 19);
this.arglbl1.Name = "arglbl1";
this.arglbl1.Size = new System.Drawing.Size(121, 14);
this.arglbl1.TabIndex = 28;
this.arglbl1.Text = "Arg 1:";
this.arglbl1.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// arg2
//
this.arg2.AutoEllipsis = true;
this.arg2.Location = new System.Drawing.Point(384, 34);
this.arg2.Name = "arg2";
this.arg2.Size = new System.Drawing.Size(83, 14);
this.arg2.TabIndex = 34;
this.arg2.Text = "Arg 1:";
//
// arg1
//
this.arg1.AutoEllipsis = true;
this.arg1.Location = new System.Drawing.Point(384, 19);
this.arg1.Name = "arg1";
this.arg1.Size = new System.Drawing.Size(83, 14);
this.arg1.TabIndex = 33;
this.arg1.Text = "Arg 1:";
//
// angle
//
this.angle.AutoSize = true;
this.angle.Location = new System.Drawing.Point(206, 77);
this.angle.Name = "angle";
this.angle.Size = new System.Drawing.Size(13, 14);
this.angle.TabIndex = 11;
this.angle.Text = "0";
//
// tag
//
this.tag.AutoSize = true;
this.tag.Location = new System.Drawing.Point(61, 77);
this.tag.Name = "tag";
this.tag.Size = new System.Drawing.Size(13, 14);
this.tag.TabIndex = 7;
this.tag.Text = "0";
//
// position
//
this.position.AutoSize = true;
this.position.Location = new System.Drawing.Point(61, 58);
this.position.Name = "position";
this.position.Size = new System.Drawing.Size(91, 14);
this.position.TabIndex = 6;
this.position.Text = "1024, 1024, 1024";
//
// action
//
this.action.AutoEllipsis = true;
this.action.Location = new System.Drawing.Point(61, 39);
this.action.Name = "action";
this.action.Size = new System.Drawing.Size(210, 14);
this.action.TabIndex = 5;
this.action.Text = "0 - Spawn a Blue Poopie and Ammo";
//
// type
//
this.type.AutoSize = true;
this.type.Location = new System.Drawing.Point(61, 19);
this.type.Name = "type";
this.type.Size = new System.Drawing.Size(99, 14);
this.type.TabIndex = 1;
this.type.Text = "0 - Big Brown Pimp";
//
// spritepanel
//
this.spritepanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.spritepanel.Controls.Add(this.spritename);
this.spritepanel.Controls.Add(this.spritetex);
this.spritepanel.Location = new System.Drawing.Point(479, 0);
this.spritepanel.Name = "spritepanel";
this.spritepanel.Size = new System.Drawing.Size(93, 100);
this.spritepanel.TabIndex = 5;
this.spritepanel.TabStop = false;
this.spritepanel.Text = " Sprite ";
//
// spritename
//
this.spritename.Location = new System.Drawing.Point(11, 80);
this.spritename.Name = "spritename";
this.spritename.Size = new System.Drawing.Size(72, 13);
this.spritename.TabIndex = 1;
this.spritename.Text = "BIGDOOR6";
this.spritename.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// spritetex
//
this.spritetex.BackColor = System.Drawing.SystemColors.AppWorkspace;
this.spritetex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.spritetex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.spritetex.Location = new System.Drawing.Point(13, 19);
this.spritetex.Name = "spritetex";
this.spritetex.Size = new System.Drawing.Size(68, 60);
this.spritetex.TabIndex = 0;
//
// ThingInfoPanel
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Controls.Add(this.ceilingpanel);
this.Controls.Add(groupBox1);
this.Controls.Add(this.spritepanel);
this.Controls.Add(this.infopanel);
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.MaximumSize = new System.Drawing.Size(10000, 100);
this.MinimumSize = new System.Drawing.Size(100, 100);
this.Name = "ThingInfoPanel";
this.Size = new System.Drawing.Size(388, 100);
this.ceilingpanel.ResumeLayout(false);
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
this.Size = new System.Drawing.Size(578, 100);
this.infopanel.ResumeLayout(false);
this.infopanel.PerformLayout();
this.spritepanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox ceilingpanel;
private System.Windows.Forms.GroupBox spritepanel;
private System.Windows.Forms.Label spritename;
private System.Windows.Forms.Panel spritetex;
private System.Windows.Forms.Label angle;
@ -222,6 +341,17 @@ namespace CodeImp.DoomBuilder.Controls
private System.Windows.Forms.Label position;
private System.Windows.Forms.Label action;
private System.Windows.Forms.Label type;
private System.Windows.Forms.Label arg5;
private System.Windows.Forms.Label arglbl5;
private System.Windows.Forms.Label arglbl4;
private System.Windows.Forms.Label arg4;
private System.Windows.Forms.Label arglbl3;
private System.Windows.Forms.Label arglbl2;
private System.Windows.Forms.Label arg3;
private System.Windows.Forms.Label arglbl1;
private System.Windows.Forms.Label arg2;
private System.Windows.Forms.Label arg1;
private System.Windows.Forms.GroupBox infopanel;
}
}

View file

@ -27,6 +27,8 @@ using System.Diagnostics;
using CodeImp.DoomBuilder.Data;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Config;
using CodeImp.DoomBuilder.Types;
using CodeImp.DoomBuilder.IO;
#endregion
@ -34,25 +36,77 @@ namespace CodeImp.DoomBuilder.Controls
{
internal partial class ThingInfoPanel : UserControl
{
private int hexenformatwidth;
private int doomformatwidth;
// Constructor
public ThingInfoPanel()
{
// Initialize
InitializeComponent();
// Hide stuff when in Doom format
hexenformatwidth = infopanel.Width;
doomformatwidth = infopanel.Width - 190;
}
// This shows the info
public void ShowInfo(Thing t)
{
ThingTypeInfo ti;
int zvalue;
LinedefActionInfo act = null;
TypeHandler th;
string actioninfo = "";
string zinfo;
int zvalue;
// Show/hide stuff depending on format
if(General.Map.FormatInterface.GetType() == typeof(DoomMapSetIO))
{
arglbl1.Visible = false;
arglbl2.Visible = false;
arglbl3.Visible = false;
arglbl4.Visible = false;
arglbl5.Visible = false;
arg1.Visible = false;
arg2.Visible = false;
arg3.Visible = false;
arg4.Visible = false;
arg5.Visible = false;
infopanel.Width = doomformatwidth;
}
else
{
arglbl1.Visible = true;
arglbl2.Visible = true;
arglbl3.Visible = true;
arglbl4.Visible = true;
arglbl5.Visible = true;
arg1.Visible = true;
arg2.Visible = true;
arg3.Visible = true;
arg4.Visible = true;
arg5.Visible = true;
infopanel.Width = hexenformatwidth;
}
// Move panel
spritepanel.Left = infopanel.Left + infopanel.Width + infopanel.Margin.Right + spritepanel.Margin.Left;
// Lookup thing info
ti = General.Map.Config.GetThingInfo(t.Type);
// TODO: Lookup action description from config
// Get thing action information
if(General.Map.Config.LinedefActions.ContainsKey(t.Action))
{
act = General.Map.Config.LinedefActions[t.Action];
actioninfo = act.ToString();
}
else if(t.Action == 0)
actioninfo = t.Action.ToString() + " - None";
else
actioninfo = t.Action.ToString() + " - Unknown";
// Determine z info to show
t.DetermineSector();
if(t.Sector != null)
@ -77,13 +131,66 @@ namespace CodeImp.DoomBuilder.Controls
// Thing info
type.Text = t.Type + " - " + ti.Title;
action.Text = ""; // TODO
action.Text = actioninfo;
position.Text = t.X.ToString() + ", " + t.Y.ToString() + ", " + zinfo;
tag.Text = ""; // TODO
tag.Text = t.Tag.ToString();
angle.Text = t.AngleDeg.ToString() + "\u00B0";
spritename.Text = ti.Sprite;
General.DisplayZoomedImage(spritetex, General.Map.Data.GetSpriteBitmap(ti.Sprite));
// Arguments
if(act != null)
{
arglbl1.Text = act.Args[0].Title + ":";
arglbl2.Text = act.Args[1].Title + ":";
arglbl3.Text = act.Args[2].Title + ":";
arglbl4.Text = act.Args[3].Title + ":";
arglbl5.Text = act.Args[4].Title + ":";
arglbl1.Enabled = act.Args[0].Used;
arglbl2.Enabled = act.Args[1].Used;
arglbl3.Enabled = act.Args[2].Used;
arglbl4.Enabled = act.Args[3].Used;
arglbl5.Enabled = act.Args[4].Used;
arg1.Enabled = act.Args[0].Used;
arg2.Enabled = act.Args[1].Used;
arg3.Enabled = act.Args[2].Used;
arg4.Enabled = act.Args[3].Used;
arg5.Enabled = act.Args[4].Used;
th = General.Types.GetArgumentHandler(act.Args[0]);
th.SetValue(t.Args[0]); arg1.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[1]);
th.SetValue(t.Args[1]); arg2.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[2]);
th.SetValue(t.Args[2]); arg3.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[3]);
th.SetValue(t.Args[3]); arg4.Text = th.GetStringValue();
th = General.Types.GetArgumentHandler(act.Args[4]);
th.SetValue(t.Args[4]); arg5.Text = th.GetStringValue();
}
else
{
arglbl1.Text = "Argument 1:";
arglbl2.Text = "Argument 2:";
arglbl3.Text = "Argument 3:";
arglbl4.Text = "Argument 4:";
arglbl5.Text = "Argument 5:";
arglbl1.Enabled = false;
arglbl2.Enabled = false;
arglbl3.Enabled = false;
arglbl4.Enabled = false;
arglbl5.Enabled = false;
arg1.Enabled = false;
arg2.Enabled = false;
arg3.Enabled = false;
arg4.Enabled = false;
arg5.Enabled = false;
arg1.Text = "-";
arg2.Text = "-";
arg3.Text = "-";
arg4.Text = "-";
arg5.Text = "-";
}
// Show the whole thing
this.Show();
this.Update();

View file

@ -117,67 +117,19 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ceilingpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="spritename.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="spritetex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="angle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label5.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="tag.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="position.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="action.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="type.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View file

@ -234,7 +234,7 @@ namespace CodeImp.DoomBuilder.Windows
this.menuhelp});
this.menumain.Location = new System.Drawing.Point(0, 0);
this.menumain.Name = "menumain";
this.menumain.Size = new System.Drawing.Size(839, 24);
this.menumain.Size = new System.Drawing.Size(803, 24);
this.menumain.TabIndex = 0;
//
// menufile
@ -475,7 +475,7 @@ namespace CodeImp.DoomBuilder.Windows
this.toolStripSeparator6});
this.toolbar.Location = new System.Drawing.Point(0, 24);
this.toolbar.Name = "toolbar";
this.toolbar.Size = new System.Drawing.Size(839, 25);
this.toolbar.Size = new System.Drawing.Size(803, 25);
this.toolbar.TabIndex = 1;
//
// buttonnewmap
@ -642,7 +642,7 @@ namespace CodeImp.DoomBuilder.Windows
this.statusbar.Location = new System.Drawing.Point(0, 522);
this.statusbar.Name = "statusbar";
this.statusbar.ShowItemToolTips = true;
this.statusbar.Size = new System.Drawing.Size(839, 23);
this.statusbar.Size = new System.Drawing.Size(803, 23);
this.statusbar.TabIndex = 2;
//
// statuslabel
@ -651,7 +651,7 @@ namespace CodeImp.DoomBuilder.Windows
this.statuslabel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.statuslabel.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.statuslabel.Name = "statuslabel";
this.statuslabel.Size = new System.Drawing.Size(513, 18);
this.statuslabel.Size = new System.Drawing.Size(477, 18);
this.statuslabel.Spring = true;
this.statuslabel.Text = "Initializing user interface...";
this.statuslabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -878,7 +878,7 @@ namespace CodeImp.DoomBuilder.Windows
this.panelinfo.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelinfo.Location = new System.Drawing.Point(0, 416);
this.panelinfo.Name = "panelinfo";
this.panelinfo.Size = new System.Drawing.Size(839, 106);
this.panelinfo.Size = new System.Drawing.Size(803, 106);
this.panelinfo.TabIndex = 4;
//
// vertexinfo
@ -899,7 +899,7 @@ namespace CodeImp.DoomBuilder.Windows
this.thinginfo.MaximumSize = new System.Drawing.Size(10000, 100);
this.thinginfo.MinimumSize = new System.Drawing.Size(100, 100);
this.thinginfo.Name = "thinginfo";
this.thinginfo.Size = new System.Drawing.Size(385, 100);
this.thinginfo.Size = new System.Drawing.Size(580, 100);
this.thinginfo.TabIndex = 3;
this.thinginfo.Visible = false;
//
@ -921,7 +921,7 @@ namespace CodeImp.DoomBuilder.Windows
this.linedefinfo.MaximumSize = new System.Drawing.Size(10000, 100);
this.linedefinfo.MinimumSize = new System.Drawing.Size(100, 100);
this.linedefinfo.Name = "linedefinfo";
this.linedefinfo.Size = new System.Drawing.Size(783, 100);
this.linedefinfo.Size = new System.Drawing.Size(1000, 100);
this.linedefinfo.TabIndex = 0;
this.linedefinfo.Visible = false;
//
@ -939,7 +939,7 @@ namespace CodeImp.DoomBuilder.Windows
this.display.Dock = System.Windows.Forms.DockStyle.Fill;
this.display.Location = new System.Drawing.Point(0, 49);
this.display.Name = "display";
this.display.Size = new System.Drawing.Size(839, 367);
this.display.Size = new System.Drawing.Size(803, 367);
this.display.TabIndex = 5;
this.display.MouseLeave += new System.EventHandler(this.display_MouseLeave);
this.display.Paint += new System.Windows.Forms.PaintEventHandler(this.display_Paint);
@ -959,7 +959,7 @@ namespace CodeImp.DoomBuilder.Windows
// MainForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(839, 545);
this.ClientSize = new System.Drawing.Size(803, 545);
this.Controls.Add(this.display);
this.Controls.Add(this.panelinfo);
this.Controls.Add(this.statusbar);

View file

@ -180,6 +180,9 @@
<metadata name="vertexinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="thinginfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="sectorinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>