This commit is contained in:
codeimp 2007-12-29 16:42:30 +00:00
parent fd4a6f1d8d
commit 9519e07093
8 changed files with 271 additions and 121 deletions

View file

@ -51,6 +51,8 @@ namespace CodeImp.DoomBuilder.Config
private int doublesidedflags; private int doublesidedflags;
private int impassableflags; private int impassableflags;
private bool mixtexturesflats; private bool mixtexturesflats;
private bool generalizedactions;
private bool generalizedeffects;
// Map lumps // Map lumps
private IDictionary maplumpnames; private IDictionary maplumpnames;
@ -84,6 +86,8 @@ namespace CodeImp.DoomBuilder.Config
public int DoubleSidedFlags { get { return doublesidedflags; } } public int DoubleSidedFlags { get { return doublesidedflags; } }
public int ImpassableFlags { get { return impassableflags; } } public int ImpassableFlags { get { return impassableflags; } }
public bool MixTexturesFlats { get { return mixtexturesflats; } } public bool MixTexturesFlats { get { return mixtexturesflats; } }
public bool GeneralizedActions { get { return generalizedactions; } }
public bool GeneralizedEffects { get { return generalizedeffects; } }
// Map lumps // Map lumps
public IDictionary MapLumpNames { get { return maplumpnames; } } public IDictionary MapLumpNames { get { return maplumpnames; } }
@ -131,6 +135,8 @@ namespace CodeImp.DoomBuilder.Config
doublesidedflags = cfg.ReadSetting("doublesidedflags", 0); doublesidedflags = cfg.ReadSetting("doublesidedflags", 0);
impassableflags = cfg.ReadSetting("impassableflags", 0); impassableflags = cfg.ReadSetting("impassableflags", 0);
mixtexturesflats = cfg.ReadSetting("mixtexturesflats", false); mixtexturesflats = cfg.ReadSetting("mixtexturesflats", false);
generalizedactions = cfg.ReadSetting("generalizedlinedefs", false);
generalizedeffects = cfg.ReadSetting("generalizedsectors", false);
// Get map lumps // Get map lumps
maplumpnames = cfg.ReadSetting("maplumpnames", new Hashtable()); maplumpnames = cfg.ReadSetting("maplumpnames", new Hashtable());

View file

@ -199,7 +199,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option7.Location = new System.Drawing.Point(118, 280); this.option7.Location = new System.Drawing.Point(118, 280);
this.option7.Name = "option7"; this.option7.Name = "option7";
this.option7.Size = new System.Drawing.Size(199, 22); this.option7.Size = new System.Drawing.Size(199, 22);
this.option7.TabIndex = 17; this.option7.TabIndex = 9;
this.option7.Visible = false; this.option7.Visible = false;
// //
// option7label // option7label
@ -219,7 +219,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option6.Location = new System.Drawing.Point(118, 244); this.option6.Location = new System.Drawing.Point(118, 244);
this.option6.Name = "option6"; this.option6.Name = "option6";
this.option6.Size = new System.Drawing.Size(199, 22); this.option6.Size = new System.Drawing.Size(199, 22);
this.option6.TabIndex = 15; this.option6.TabIndex = 8;
this.option6.Visible = false; this.option6.Visible = false;
// //
// option6label // option6label
@ -239,7 +239,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option5.Location = new System.Drawing.Point(118, 208); this.option5.Location = new System.Drawing.Point(118, 208);
this.option5.Name = "option5"; this.option5.Name = "option5";
this.option5.Size = new System.Drawing.Size(199, 22); this.option5.Size = new System.Drawing.Size(199, 22);
this.option5.TabIndex = 13; this.option5.TabIndex = 7;
this.option5.Visible = false; this.option5.Visible = false;
// //
// option5label // option5label
@ -259,7 +259,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option4.Location = new System.Drawing.Point(118, 172); this.option4.Location = new System.Drawing.Point(118, 172);
this.option4.Name = "option4"; this.option4.Name = "option4";
this.option4.Size = new System.Drawing.Size(199, 22); this.option4.Size = new System.Drawing.Size(199, 22);
this.option4.TabIndex = 11; this.option4.TabIndex = 6;
this.option4.Visible = false; this.option4.Visible = false;
// //
// option4label // option4label
@ -279,7 +279,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option3.Location = new System.Drawing.Point(118, 136); this.option3.Location = new System.Drawing.Point(118, 136);
this.option3.Name = "option3"; this.option3.Name = "option3";
this.option3.Size = new System.Drawing.Size(199, 22); this.option3.Size = new System.Drawing.Size(199, 22);
this.option3.TabIndex = 9; this.option3.TabIndex = 5;
this.option3.Visible = false; this.option3.Visible = false;
// //
// option3label // option3label
@ -299,7 +299,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option2.Location = new System.Drawing.Point(118, 100); this.option2.Location = new System.Drawing.Point(118, 100);
this.option2.Name = "option2"; this.option2.Name = "option2";
this.option2.Size = new System.Drawing.Size(199, 22); this.option2.Size = new System.Drawing.Size(199, 22);
this.option2.TabIndex = 7; this.option2.TabIndex = 4;
this.option2.Visible = false; this.option2.Visible = false;
// //
// option2label // option2label
@ -319,7 +319,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option1.Location = new System.Drawing.Point(118, 64); this.option1.Location = new System.Drawing.Point(118, 64);
this.option1.Name = "option1"; this.option1.Name = "option1";
this.option1.Size = new System.Drawing.Size(199, 22); this.option1.Size = new System.Drawing.Size(199, 22);
this.option1.TabIndex = 5; this.option1.TabIndex = 3;
this.option1.Visible = false; this.option1.Visible = false;
// //
// option1label // option1label
@ -339,7 +339,7 @@ namespace CodeImp.DoomBuilder.Interface
this.option0.Location = new System.Drawing.Point(118, 28); this.option0.Location = new System.Drawing.Point(118, 28);
this.option0.Name = "option0"; this.option0.Name = "option0";
this.option0.Size = new System.Drawing.Size(199, 22); this.option0.Size = new System.Drawing.Size(199, 22);
this.option0.TabIndex = 3; this.option0.TabIndex = 2;
this.option0.Visible = false; this.option0.Visible = false;
// //
// option0label // option0label
@ -359,7 +359,7 @@ namespace CodeImp.DoomBuilder.Interface
this.cancel.Location = new System.Drawing.Point(297, 459); this.cancel.Location = new System.Drawing.Point(297, 459);
this.cancel.Name = "cancel"; this.cancel.Name = "cancel";
this.cancel.Size = new System.Drawing.Size(112, 27); this.cancel.Size = new System.Drawing.Size(112, 27);
this.cancel.TabIndex = 19; this.cancel.TabIndex = 11;
this.cancel.Text = "Cancel"; this.cancel.Text = "Cancel";
this.cancel.UseVisualStyleBackColor = true; this.cancel.UseVisualStyleBackColor = true;
this.cancel.Click += new System.EventHandler(this.cancel_Click); this.cancel.Click += new System.EventHandler(this.cancel_Click);
@ -370,7 +370,7 @@ namespace CodeImp.DoomBuilder.Interface
this.apply.Location = new System.Drawing.Point(177, 459); this.apply.Location = new System.Drawing.Point(177, 459);
this.apply.Name = "apply"; this.apply.Name = "apply";
this.apply.Size = new System.Drawing.Size(112, 27); this.apply.Size = new System.Drawing.Size(112, 27);
this.apply.TabIndex = 18; this.apply.TabIndex = 10;
this.apply.Text = "OK"; this.apply.Text = "OK";
this.apply.UseVisualStyleBackColor = true; this.apply.UseVisualStyleBackColor = true;
this.apply.Click += new System.EventHandler(this.apply_Click); this.apply.Click += new System.EventHandler(this.apply_Click);
@ -380,10 +380,11 @@ namespace CodeImp.DoomBuilder.Interface
this.actions.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.actions.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.actions.HideSelection = false;
this.actions.Location = new System.Drawing.Point(6, 52); this.actions.Location = new System.Drawing.Point(6, 52);
this.actions.Name = "actions"; this.actions.Name = "actions";
this.actions.Size = new System.Drawing.Size(379, 351); this.actions.Size = new System.Drawing.Size(379, 351);
this.actions.TabIndex = 20; this.actions.TabIndex = 0;
// //
// tabs // tabs
// //
@ -400,7 +401,7 @@ namespace CodeImp.DoomBuilder.Interface
this.tabs.SelectedIndex = 0; this.tabs.SelectedIndex = 0;
this.tabs.Size = new System.Drawing.Size(399, 436); this.tabs.Size = new System.Drawing.Size(399, 436);
this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.tabs.TabIndex = 21; this.tabs.TabIndex = 12;
// //
// tabactions // tabactions
// //

View file

@ -107,35 +107,39 @@ namespace CodeImp.DoomBuilder.Interface
} }
} }
// Add for all generalized categories to the combobox // Using generalized actions?
category.Items.AddRange(General.Map.Config.GenActionCategories.ToArray()); if(General.Map.Config.GeneralizedActions)
// Given action is generalized?
if(General.Map.Config.IsGeneralizedAction(action))
{ {
// Open the generalized tab // Add for all generalized categories to the combobox
tabs.SelectedTab = tabgeneralized; category.Items.AddRange(General.Map.Config.GenActionCategories.ToArray());
// Select category // Given action is generalized?
foreach(GeneralActionCategory ac in category.Items) if(General.Map.Config.IsGeneralizedAction(action))
if((action >= ac.Offset) && (action < (ac.Offset + ac.Length))) category.SelectedItem = ac;
// Anything selected?
if(category.SelectedIndex > -1)
{ {
// Go for all options in selected category // Open the generalized tab
sc = category.SelectedItem as GeneralActionCategory; tabs.SelectedTab = tabgeneralized;
actionbits = action - sc.Offset;
for(int i = 0; i < MAX_OPTIONS; i++) // Select category
foreach(GeneralActionCategory ac in category.Items)
if((action >= ac.Offset) && (action < (ac.Offset + ac.Length))) category.SelectedItem = ac;
// Anything selected?
if(category.SelectedIndex > -1)
{ {
// Option used? // Go for all options in selected category
if(i < sc.Options.Count) sc = category.SelectedItem as GeneralActionCategory;
actionbits = action - sc.Offset;
for(int i = 0; i < MAX_OPTIONS; i++)
{ {
// Go for all bits // Option used?
foreach(GeneralActionBit ab in sc.Options[i].Bits) if(i < sc.Options.Count)
{ {
// Select this setting if matches // Go for all bits
if((actionbits & ab.Index) == ab.Index) options[i].SelectedItem = ab; foreach(GeneralActionBit ab in sc.Options[i].Bits)
{
// Select this setting if matches
if((actionbits & ab.Index) == ab.Index) options[i].SelectedItem = ab;
}
} }
} }
} }
@ -143,8 +147,8 @@ namespace CodeImp.DoomBuilder.Interface
} }
else else
{ {
// Open the predefined tab // Remove generalized tab
tabs.SelectedTab = tabactions; tabs.TabPages.Remove(tabgeneralized);
} }
} }

View file

@ -168,6 +168,15 @@
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="category.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label7.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>

View file

@ -73,69 +73,74 @@ namespace CodeImp.DoomBuilder.Interface
private void list_DrawItem(object sender, DrawItemEventArgs e) private void list_DrawItem(object sender, DrawItemEventArgs e)
{ {
INumberedTitle item; INumberedTitle item;
Brush displaybrush; Brush displaybrush = SystemBrushes.WindowText;
Brush backbrush; Brush backbrush = SystemBrushes.Window;
string displayname; string displayname = "";
int intnumber = 0; int intnumber = 0;
// Unknow item? // Only when running
if(e.Index < 0) if(!this.DesignMode)
{ {
// Grayed // Unknow item?
displaybrush = new SolidBrush(SystemColors.GrayText); if(e.Index < 0)
backbrush = new SolidBrush(SystemColors.Window);
// Try getting integral number
int.TryParse(number.Text, out intnumber);
// Check what to display
if(number.Text.Length == 0)
displayname = "";
else if(intnumber == 0)
displayname = "None";
else if(General.Map.Config.IsGeneralizedAction(intnumber))
displayname = "Generalized (" + General.Map.Config.GetGeneralizedActionCategory(intnumber) + ")";
else
displayname = "Unknown";
}
// In the display part of the combobox?
else if((e.State & DrawItemState.ComboBoxEdit) != 0)
{
// Show without number
item = (INumberedTitle)list.Items[e.Index];
displayname = item.Title.Trim();
// Determine colors to use
if(item.Index == 0)
{ {
// Grayed // Grayed
displaybrush = new SolidBrush(SystemColors.GrayText); displaybrush = new SolidBrush(SystemColors.GrayText);
backbrush = new SolidBrush(SystemColors.Window); backbrush = new SolidBrush(SystemColors.Window);
}
else
{
// Normal color
displaybrush = new SolidBrush(list.ForeColor);
backbrush = new SolidBrush(SystemColors.Window);
}
}
else
{
// Use number and description
item = (INumberedTitle)list.Items[e.Index];
displayname = item.Index + NUMBER_SEPERATOR + item.Title;
// Determine colors to use // Try getting integral number
if((e.State & DrawItemState.Focus) != 0) int.TryParse(number.Text, out intnumber);
// Check what to display
if(number.Text.Length == 0)
displayname = "";
else if(intnumber == 0)
displayname = "None";
else if(General.Map.Config.IsGeneralizedAction(intnumber))
displayname = "Generalized (" + General.Map.Config.GetGeneralizedActionCategory(intnumber) + ")";
else
displayname = "Unknown";
}
// In the display part of the combobox?
else if((e.State & DrawItemState.ComboBoxEdit) != 0)
{ {
displaybrush = new SolidBrush(SystemColors.HighlightText); // Show without number
backbrush = new SolidBrush(SystemColors.Highlight); item = (INumberedTitle)list.Items[e.Index];
displayname = item.Title.Trim();
// Determine colors to use
if(item.Index == 0)
{
// Grayed
displaybrush = new SolidBrush(SystemColors.GrayText);
backbrush = new SolidBrush(SystemColors.Window);
}
else
{
// Normal color
displaybrush = new SolidBrush(list.ForeColor);
backbrush = new SolidBrush(SystemColors.Window);
}
} }
else else
{ {
displaybrush = new SolidBrush(list.ForeColor); // Use number and description
backbrush = new SolidBrush(SystemColors.Window); item = (INumberedTitle)list.Items[e.Index];
displayname = item.Index + NUMBER_SEPERATOR + item.Title;
// Determine colors to use
if((e.State & DrawItemState.Focus) != 0)
{
displaybrush = new SolidBrush(SystemColors.HighlightText);
backbrush = new SolidBrush(SystemColors.Highlight);
}
else
{
displaybrush = new SolidBrush(list.ForeColor);
backbrush = new SolidBrush(SystemColors.Window);
}
} }
} }
// Draw item // Draw item

View file

@ -226,9 +226,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// arg0label // arg0label
// //
this.arg0label.Location = new System.Drawing.Point(-36, 58); this.arg0label.Location = new System.Drawing.Point(-18, 58);
this.arg0label.Name = "arg0label"; this.arg0label.Name = "arg0label";
this.arg0label.Size = new System.Drawing.Size(143, 14); this.arg0label.Size = new System.Drawing.Size(179, 14);
this.arg0label.TabIndex = 12; this.arg0label.TabIndex = 12;
this.arg0label.Text = "Argument 1:"; this.arg0label.Text = "Argument 1:";
this.arg0label.TextAlign = System.Drawing.ContentAlignment.TopRight; this.arg0label.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -236,9 +236,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// arg1label // arg1label
// //
this.arg1label.Location = new System.Drawing.Point(-36, 84); this.arg1label.Location = new System.Drawing.Point(-18, 84);
this.arg1label.Name = "arg1label"; this.arg1label.Name = "arg1label";
this.arg1label.Size = new System.Drawing.Size(143, 14); this.arg1label.Size = new System.Drawing.Size(179, 14);
this.arg1label.TabIndex = 14; this.arg1label.TabIndex = 14;
this.arg1label.Text = "Argument 2:"; this.arg1label.Text = "Argument 2:";
this.arg1label.TextAlign = System.Drawing.ContentAlignment.TopRight; this.arg1label.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -246,9 +246,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// arg4label // arg4label
// //
this.arg4label.Location = new System.Drawing.Point(294, 58); this.arg4label.Location = new System.Drawing.Point(192, 84);
this.arg4label.Name = "arg4label"; this.arg4label.Name = "arg4label";
this.arg4label.Size = new System.Drawing.Size(143, 14); this.arg4label.Size = new System.Drawing.Size(179, 14);
this.arg4label.TabIndex = 16; this.arg4label.TabIndex = 16;
this.arg4label.Text = "Argument 5:"; this.arg4label.Text = "Argument 5:";
this.arg4label.TextAlign = System.Drawing.ContentAlignment.TopRight; this.arg4label.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -256,9 +256,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// arg2label // arg2label
// //
this.arg2label.Location = new System.Drawing.Point(130, 58); this.arg2label.Location = new System.Drawing.Point(-18, 110);
this.arg2label.Name = "arg2label"; this.arg2label.Name = "arg2label";
this.arg2label.Size = new System.Drawing.Size(143, 14); this.arg2label.Size = new System.Drawing.Size(179, 14);
this.arg2label.TabIndex = 18; this.arg2label.TabIndex = 18;
this.arg2label.Text = "Argument 3:"; this.arg2label.Text = "Argument 3:";
this.arg2label.TextAlign = System.Drawing.ContentAlignment.TopRight; this.arg2label.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -266,9 +266,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// arg3label // arg3label
// //
this.arg3label.Location = new System.Drawing.Point(130, 84); this.arg3label.Location = new System.Drawing.Point(192, 58);
this.arg3label.Name = "arg3label"; this.arg3label.Name = "arg3label";
this.arg3label.Size = new System.Drawing.Size(143, 14); this.arg3label.Size = new System.Drawing.Size(179, 14);
this.arg3label.TabIndex = 20; this.arg3label.TabIndex = 20;
this.arg3label.Text = "Argument 4:"; this.arg3label.Text = "Argument 4:";
this.arg3label.TextAlign = System.Drawing.ContentAlignment.TopRight; this.arg3label.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -278,7 +278,7 @@ namespace CodeImp.DoomBuilder.Interface
// //
this.cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancel.Location = new System.Drawing.Point(439, 402); this.cancel.Location = new System.Drawing.Point(439, 428);
this.cancel.Name = "cancel"; this.cancel.Name = "cancel";
this.cancel.Size = new System.Drawing.Size(112, 25); this.cancel.Size = new System.Drawing.Size(112, 25);
this.cancel.TabIndex = 17; this.cancel.TabIndex = 17;
@ -289,7 +289,7 @@ namespace CodeImp.DoomBuilder.Interface
// apply // apply
// //
this.apply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.apply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.apply.Location = new System.Drawing.Point(320, 402); this.apply.Location = new System.Drawing.Point(320, 428);
this.apply.Name = "apply"; this.apply.Name = "apply";
this.apply.Size = new System.Drawing.Size(112, 25); this.apply.Size = new System.Drawing.Size(112, 25);
this.apply.TabIndex = 16; this.apply.TabIndex = 16;
@ -308,7 +308,7 @@ namespace CodeImp.DoomBuilder.Interface
this.actiongroup.Controls.Add(this.doompanel); this.actiongroup.Controls.Add(this.doompanel);
this.actiongroup.Location = new System.Drawing.Point(8, 169); this.actiongroup.Location = new System.Drawing.Point(8, 169);
this.actiongroup.Name = "actiongroup"; this.actiongroup.Name = "actiongroup";
this.actiongroup.Size = new System.Drawing.Size(517, 171); this.actiongroup.Size = new System.Drawing.Size(517, 197);
this.actiongroup.TabIndex = 18; this.actiongroup.TabIndex = 18;
this.actiongroup.TabStop = false; this.actiongroup.TabStop = false;
this.actiongroup.Text = " Action "; this.actiongroup.Text = " Action ";
@ -332,14 +332,14 @@ namespace CodeImp.DoomBuilder.Interface
this.hexenpanel.Controls.Add(this.arg4label); this.hexenpanel.Controls.Add(this.arg4label);
this.hexenpanel.Location = new System.Drawing.Point(6, 54); this.hexenpanel.Location = new System.Drawing.Point(6, 54);
this.hexenpanel.Name = "hexenpanel"; this.hexenpanel.Name = "hexenpanel";
this.hexenpanel.Size = new System.Drawing.Size(505, 111); this.hexenpanel.Size = new System.Drawing.Size(505, 137);
this.hexenpanel.TabIndex = 13; this.hexenpanel.TabIndex = 13;
// //
// arg3 // arg3
// //
this.arg3.AllowNegative = false; this.arg3.AllowNegative = false;
this.arg3.AllowRelative = true; this.arg3.AllowRelative = true;
this.arg3.Location = new System.Drawing.Point(279, 81); this.arg3.Location = new System.Drawing.Point(377, 55);
this.arg3.Name = "arg3"; this.arg3.Name = "arg3";
this.arg3.Size = new System.Drawing.Size(50, 20); this.arg3.Size = new System.Drawing.Size(50, 20);
this.arg3.TabIndex = 21; this.arg3.TabIndex = 21;
@ -348,7 +348,7 @@ namespace CodeImp.DoomBuilder.Interface
// //
this.arg2.AllowNegative = false; this.arg2.AllowNegative = false;
this.arg2.AllowRelative = true; this.arg2.AllowRelative = true;
this.arg2.Location = new System.Drawing.Point(279, 55); this.arg2.Location = new System.Drawing.Point(167, 107);
this.arg2.Name = "arg2"; this.arg2.Name = "arg2";
this.arg2.Size = new System.Drawing.Size(50, 20); this.arg2.Size = new System.Drawing.Size(50, 20);
this.arg2.TabIndex = 19; this.arg2.TabIndex = 19;
@ -357,7 +357,7 @@ namespace CodeImp.DoomBuilder.Interface
// //
this.arg4.AllowNegative = false; this.arg4.AllowNegative = false;
this.arg4.AllowRelative = true; this.arg4.AllowRelative = true;
this.arg4.Location = new System.Drawing.Point(443, 55); this.arg4.Location = new System.Drawing.Point(377, 81);
this.arg4.Name = "arg4"; this.arg4.Name = "arg4";
this.arg4.Size = new System.Drawing.Size(50, 20); this.arg4.Size = new System.Drawing.Size(50, 20);
this.arg4.TabIndex = 17; this.arg4.TabIndex = 17;
@ -366,7 +366,7 @@ namespace CodeImp.DoomBuilder.Interface
// //
this.arg1.AllowNegative = false; this.arg1.AllowNegative = false;
this.arg1.AllowRelative = true; this.arg1.AllowRelative = true;
this.arg1.Location = new System.Drawing.Point(113, 81); this.arg1.Location = new System.Drawing.Point(167, 81);
this.arg1.Name = "arg1"; this.arg1.Name = "arg1";
this.arg1.Size = new System.Drawing.Size(50, 20); this.arg1.Size = new System.Drawing.Size(50, 20);
this.arg1.TabIndex = 15; this.arg1.TabIndex = 15;
@ -375,7 +375,7 @@ namespace CodeImp.DoomBuilder.Interface
// //
this.arg0.AllowNegative = false; this.arg0.AllowNegative = false;
this.arg0.AllowRelative = true; this.arg0.AllowRelative = true;
this.arg0.Location = new System.Drawing.Point(113, 55); this.arg0.Location = new System.Drawing.Point(167, 55);
this.arg0.Name = "arg0"; this.arg0.Name = "arg0";
this.arg0.Size = new System.Drawing.Size(50, 20); this.arg0.Size = new System.Drawing.Size(50, 20);
this.arg0.TabIndex = 13; this.arg0.TabIndex = 13;
@ -424,7 +424,7 @@ namespace CodeImp.DoomBuilder.Interface
this.doompanel.Controls.Add(this.newtag); this.doompanel.Controls.Add(this.newtag);
this.doompanel.Location = new System.Drawing.Point(6, 54); this.doompanel.Location = new System.Drawing.Point(6, 54);
this.doompanel.Name = "doompanel"; this.doompanel.Name = "doompanel";
this.doompanel.Size = new System.Drawing.Size(505, 111); this.doompanel.Size = new System.Drawing.Size(505, 137);
this.doompanel.TabIndex = 12; this.doompanel.TabIndex = 12;
// //
// tag // tag
@ -488,7 +488,7 @@ namespace CodeImp.DoomBuilder.Interface
this.tabs.Margin = new System.Windows.Forms.Padding(1); this.tabs.Margin = new System.Windows.Forms.Padding(1);
this.tabs.Name = "tabs"; this.tabs.Name = "tabs";
this.tabs.SelectedIndex = 0; this.tabs.SelectedIndex = 0;
this.tabs.Size = new System.Drawing.Size(541, 375); this.tabs.Size = new System.Drawing.Size(541, 401);
this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.tabs.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.tabs.TabIndex = 20; this.tabs.TabIndex = 20;
// //
@ -500,7 +500,7 @@ namespace CodeImp.DoomBuilder.Interface
this.tabPage1.Location = new System.Drawing.Point(4, 23); this.tabPage1.Location = new System.Drawing.Point(4, 23);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(5); this.tabPage1.Padding = new System.Windows.Forms.Padding(5);
this.tabPage1.Size = new System.Drawing.Size(533, 348); this.tabPage1.Size = new System.Drawing.Size(533, 374);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Properties"; this.tabPage1.Text = "Properties";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
@ -515,7 +515,7 @@ namespace CodeImp.DoomBuilder.Interface
this.tabPage2.Location = new System.Drawing.Point(4, 23); this.tabPage2.Location = new System.Drawing.Point(4, 23);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(5); this.tabPage2.Padding = new System.Windows.Forms.Padding(5);
this.tabPage2.Size = new System.Drawing.Size(533, 348); this.tabPage2.Size = new System.Drawing.Size(533, 374);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Sidedefs"; this.tabPage2.Text = "Sidedefs";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
@ -523,7 +523,7 @@ namespace CodeImp.DoomBuilder.Interface
// backside // backside
// //
this.backside.AutoSize = true; this.backside.AutoSize = true;
this.backside.Location = new System.Drawing.Point(20, 176); this.backside.Location = new System.Drawing.Point(20, 188);
this.backside.Name = "backside"; this.backside.Name = "backside";
this.backside.Size = new System.Drawing.Size(74, 18); this.backside.Size = new System.Drawing.Size(74, 18);
this.backside.TabIndex = 2; this.backside.TabIndex = 2;
@ -545,9 +545,9 @@ namespace CodeImp.DoomBuilder.Interface
this.backgroup.Controls.Add(label9); this.backgroup.Controls.Add(label9);
this.backgroup.Controls.Add(label10); this.backgroup.Controls.Add(label10);
this.backgroup.Enabled = false; this.backgroup.Enabled = false;
this.backgroup.Location = new System.Drawing.Point(8, 179); this.backgroup.Location = new System.Drawing.Point(8, 191);
this.backgroup.Name = "backgroup"; this.backgroup.Name = "backgroup";
this.backgroup.Size = new System.Drawing.Size(517, 161); this.backgroup.Size = new System.Drawing.Size(517, 175);
this.backgroup.TabIndex = 1; this.backgroup.TabIndex = 1;
this.backgroup.TabStop = false; this.backgroup.TabStop = false;
this.backgroup.Text = " "; this.backgroup.Text = " ";
@ -567,7 +567,7 @@ namespace CodeImp.DoomBuilder.Interface
this.backlow.Location = new System.Drawing.Point(416, 37); this.backlow.Location = new System.Drawing.Point(416, 37);
this.backlow.Name = "backlow"; this.backlow.Name = "backlow";
this.backlow.Required = false; this.backlow.Required = false;
this.backlow.Size = new System.Drawing.Size(83, 107); this.backlow.Size = new System.Drawing.Size(83, 120);
this.backlow.TabIndex = 15; this.backlow.TabIndex = 15;
this.backlow.TextureName = ""; this.backlow.TextureName = "";
// //
@ -576,7 +576,7 @@ namespace CodeImp.DoomBuilder.Interface
this.backmid.Location = new System.Drawing.Point(325, 37); this.backmid.Location = new System.Drawing.Point(325, 37);
this.backmid.Name = "backmid"; this.backmid.Name = "backmid";
this.backmid.Required = false; this.backmid.Required = false;
this.backmid.Size = new System.Drawing.Size(83, 107); this.backmid.Size = new System.Drawing.Size(83, 120);
this.backmid.TabIndex = 14; this.backmid.TabIndex = 14;
this.backmid.TextureName = ""; this.backmid.TextureName = "";
// //
@ -585,7 +585,7 @@ namespace CodeImp.DoomBuilder.Interface
this.backhigh.Location = new System.Drawing.Point(234, 37); this.backhigh.Location = new System.Drawing.Point(234, 37);
this.backhigh.Name = "backhigh"; this.backhigh.Name = "backhigh";
this.backhigh.Required = false; this.backhigh.Required = false;
this.backhigh.Size = new System.Drawing.Size(83, 107); this.backhigh.Size = new System.Drawing.Size(83, 120);
this.backhigh.TabIndex = 13; this.backhigh.TabIndex = 13;
this.backhigh.TextureName = ""; this.backhigh.TextureName = "";
// //
@ -636,7 +636,7 @@ namespace CodeImp.DoomBuilder.Interface
this.frontgroup.Enabled = false; this.frontgroup.Enabled = false;
this.frontgroup.Location = new System.Drawing.Point(8, 8); this.frontgroup.Location = new System.Drawing.Point(8, 8);
this.frontgroup.Name = "frontgroup"; this.frontgroup.Name = "frontgroup";
this.frontgroup.Size = new System.Drawing.Size(517, 161); this.frontgroup.Size = new System.Drawing.Size(517, 175);
this.frontgroup.TabIndex = 0; this.frontgroup.TabIndex = 0;
this.frontgroup.TabStop = false; this.frontgroup.TabStop = false;
this.frontgroup.Text = " "; this.frontgroup.Text = " ";
@ -656,7 +656,7 @@ namespace CodeImp.DoomBuilder.Interface
this.frontlow.Location = new System.Drawing.Point(416, 37); this.frontlow.Location = new System.Drawing.Point(416, 37);
this.frontlow.Name = "frontlow"; this.frontlow.Name = "frontlow";
this.frontlow.Required = false; this.frontlow.Required = false;
this.frontlow.Size = new System.Drawing.Size(83, 107); this.frontlow.Size = new System.Drawing.Size(83, 120);
this.frontlow.TabIndex = 12; this.frontlow.TabIndex = 12;
this.frontlow.TextureName = ""; this.frontlow.TextureName = "";
// //
@ -665,7 +665,7 @@ namespace CodeImp.DoomBuilder.Interface
this.frontmid.Location = new System.Drawing.Point(325, 37); this.frontmid.Location = new System.Drawing.Point(325, 37);
this.frontmid.Name = "frontmid"; this.frontmid.Name = "frontmid";
this.frontmid.Required = false; this.frontmid.Required = false;
this.frontmid.Size = new System.Drawing.Size(83, 107); this.frontmid.Size = new System.Drawing.Size(83, 120);
this.frontmid.TabIndex = 11; this.frontmid.TabIndex = 11;
this.frontmid.TextureName = ""; this.frontmid.TextureName = "";
// //
@ -674,7 +674,7 @@ namespace CodeImp.DoomBuilder.Interface
this.fronthigh.Location = new System.Drawing.Point(234, 37); this.fronthigh.Location = new System.Drawing.Point(234, 37);
this.fronthigh.Name = "fronthigh"; this.fronthigh.Name = "fronthigh";
this.fronthigh.Required = false; this.fronthigh.Required = false;
this.fronthigh.Size = new System.Drawing.Size(83, 107); this.fronthigh.Size = new System.Drawing.Size(83, 120);
this.fronthigh.TabIndex = 10; this.fronthigh.TabIndex = 10;
this.fronthigh.TextureName = ""; this.fronthigh.TextureName = "";
// //
@ -703,7 +703,7 @@ namespace CodeImp.DoomBuilder.Interface
this.AcceptButton = this.apply; this.AcceptButton = this.apply;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.CancelButton = this.cancel; this.CancelButton = this.cancel;
this.ClientSize = new System.Drawing.Size(561, 437); this.ClientSize = new System.Drawing.Size(561, 463);
this.Controls.Add(this.tabs); this.Controls.Add(this.tabs);
this.Controls.Add(this.cancel); this.Controls.Add(this.cancel);
this.Controls.Add(this.apply); this.Controls.Add(this.apply);

View file

@ -593,7 +593,9 @@ namespace CodeImp.DoomBuilder.Interface
// //
// PreferencesForm // PreferencesForm
// //
this.AcceptButton = this.apply;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.CancelButton = this.cancel;
this.ClientSize = new System.Drawing.Size(619, 464); this.ClientSize = new System.Drawing.Size(619, 464);
this.Controls.Add(this.cancel); this.Controls.Add(this.cancel);
this.Controls.Add(this.apply); this.Controls.Add(this.apply);

View file

@ -117,13 +117,136 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="label7.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label7.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="label6.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label6.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="label6.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </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"> <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value> <value>False</value>
</metadata> </metadata>
<metadata name="colorsgroup1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorgrid64.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorgrid.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorassociations.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorsoundlinedefs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorspeciallinedefs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorbackcolor.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorselection.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorvertices.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorhighlight.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorlinedefs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cancel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="apply.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tabs.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tabinterface.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tabkeys.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="listactions.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actioncontrolpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actioncontrol.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actiontitle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actioncontrolclear.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actionkey.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="actiondescription.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tabcolors.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="blackbrowsers.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorsgroup3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorconstants.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorliterals.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorscriptbackground.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorkeywords.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorlinenumbers.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorcomments.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorplaintext.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorsgroup2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorselection3d.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorhighlight3d.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colorcrosshair3d.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> </root>