mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
- removed useless things menu
- fixed curve lines menu item in linedefs menu - changed the test map drop down menu (nomonsters option is now in the menu instead of a seperate button)
This commit is contained in:
parent
851a7c7895
commit
45ab139ff9
13 changed files with 69 additions and 96 deletions
|
@ -3,19 +3,13 @@ quality over quantity. It is done when it's done.
|
||||||
The order and included items may also change any time.
|
The order and included items may also change any time.
|
||||||
=========================================================
|
=========================================================
|
||||||
|
|
||||||
- Create menus for different modes
|
|
||||||
|
|
||||||
- Create gradient ceiling/floor heights feature
|
|
||||||
|
|
||||||
- Set up forum for bug reports and development.
|
|
||||||
|
|
||||||
- Test map nomonsters option in same menu
|
|
||||||
|
|
||||||
=========================================================
|
=========================================================
|
||||||
BETA TESTING STARTS HERE
|
BETA TESTING STARTS HERE
|
||||||
OFFICIAL MANUAL WRITING STARTS HERE
|
OFFICIAL MANUAL WRITING STARTS HERE
|
||||||
=========================================================
|
=========================================================
|
||||||
|
|
||||||
|
- Create gradient ceiling/floor heights feature
|
||||||
|
|
||||||
- Make DECORATE support
|
- Make DECORATE support
|
||||||
|
|
||||||
- Add more find/replace types
|
- Add more find/replace types
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 880 B |
BIN
Resources/Icons/Monster3.png
Normal file
BIN
Resources/Icons/Monster3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 694 B |
|
@ -656,6 +656,8 @@
|
||||||
<EmbeddedResource Include="Resources\Crosshair.png" />
|
<EmbeddedResource Include="Resources\Crosshair.png" />
|
||||||
<EmbeddedResource Include="Resources\CrosshairBusy.png" />
|
<EmbeddedResource Include="Resources\CrosshairBusy.png" />
|
||||||
<Content Include="Resources\DB2.ico" />
|
<Content Include="Resources\DB2.ico" />
|
||||||
|
<None Include="Resources\Monster3.png" />
|
||||||
|
<None Include="Resources\Monster2.png" />
|
||||||
<None Include="Resources\Prefab2.png" />
|
<None Include="Resources\Prefab2.png" />
|
||||||
<None Include="Resources\Prefab.png" />
|
<None Include="Resources\Prefab.png" />
|
||||||
<EmbeddedResource Include="Resources\ThingBox.png" />
|
<EmbeddedResource Include="Resources\ThingBox.png" />
|
||||||
|
@ -698,7 +700,6 @@
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Resources\Hourglass3D.png" />
|
<EmbeddedResource Include="Resources\Hourglass3D.png" />
|
||||||
<None Include="Resources\Failed.png" />
|
<None Include="Resources\Failed.png" />
|
||||||
<None Include="Resources\Monster2.png" />
|
|
||||||
<None Include="Resources\Grid2_arrowup.png" />
|
<None Include="Resources\Grid2_arrowup.png" />
|
||||||
<None Include="Resources\Zoom_arrowup.png" />
|
<None Include="Resources\Zoom_arrowup.png" />
|
||||||
<None Include="Resources\Paste.png" />
|
<None Include="Resources\Paste.png" />
|
||||||
|
|
50
Source/BuilderModes/Interface/MenusForm.Designer.cs
generated
50
Source/BuilderModes/Interface/MenusForm.Designer.cs
generated
|
@ -40,9 +40,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
this.joinsectorsitem = new System.Windows.Forms.ToolStripMenuItem();
|
this.joinsectorsitem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.mergesectorsitem = new System.Windows.Forms.ToolStripMenuItem();
|
this.mergesectorsitem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.thingsmenu = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.rotatethingscwitem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.rotatethingsccwitem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.globalstrip = new System.Windows.Forms.ToolStrip();
|
this.globalstrip = new System.Windows.Forms.ToolStrip();
|
||||||
this.manualstrip = new System.Windows.Forms.ToolStrip();
|
this.manualstrip = new System.Windows.Forms.ToolStrip();
|
||||||
this.buttonbrightnessgradient = new System.Windows.Forms.ToolStripButton();
|
this.buttonbrightnessgradient = new System.Windows.Forms.ToolStripButton();
|
||||||
|
@ -54,8 +51,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//
|
//
|
||||||
this.menustrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.menustrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.linedefsmenu,
|
this.linedefsmenu,
|
||||||
this.sectorsmenu,
|
this.sectorsmenu});
|
||||||
this.thingsmenu});
|
|
||||||
this.menustrip.Location = new System.Drawing.Point(0, 0);
|
this.menustrip.Location = new System.Drawing.Point(0, 0);
|
||||||
this.menustrip.Name = "menustrip";
|
this.menustrip.Name = "menustrip";
|
||||||
this.menustrip.Size = new System.Drawing.Size(423, 24);
|
this.menustrip.Size = new System.Drawing.Size(423, 24);
|
||||||
|
@ -79,7 +75,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// fliplinedefsitem
|
// fliplinedefsitem
|
||||||
//
|
//
|
||||||
this.fliplinedefsitem.Name = "fliplinedefsitem";
|
this.fliplinedefsitem.Name = "fliplinedefsitem";
|
||||||
this.fliplinedefsitem.Size = new System.Drawing.Size(158, 22);
|
this.fliplinedefsitem.Size = new System.Drawing.Size(169, 22);
|
||||||
this.fliplinedefsitem.Tag = "fliplinedefs";
|
this.fliplinedefsitem.Tag = "fliplinedefs";
|
||||||
this.fliplinedefsitem.Text = "Flip Linedefs";
|
this.fliplinedefsitem.Text = "Flip Linedefs";
|
||||||
this.fliplinedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.fliplinedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
@ -87,7 +83,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// flipsidedefsitem
|
// flipsidedefsitem
|
||||||
//
|
//
|
||||||
this.flipsidedefsitem.Name = "flipsidedefsitem";
|
this.flipsidedefsitem.Name = "flipsidedefsitem";
|
||||||
this.flipsidedefsitem.Size = new System.Drawing.Size(158, 22);
|
this.flipsidedefsitem.Size = new System.Drawing.Size(169, 22);
|
||||||
this.flipsidedefsitem.Tag = "flipsidedefs";
|
this.flipsidedefsitem.Tag = "flipsidedefs";
|
||||||
this.flipsidedefsitem.Text = "Flip Sidedefs";
|
this.flipsidedefsitem.Text = "Flip Sidedefs";
|
||||||
this.flipsidedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.flipsidedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
@ -95,24 +91,25 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// toolStripMenuItem1
|
// toolStripMenuItem1
|
||||||
//
|
//
|
||||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(155, 6);
|
this.toolStripMenuItem1.Size = new System.Drawing.Size(166, 6);
|
||||||
//
|
//
|
||||||
// curvelinedefsitem
|
// curvelinedefsitem
|
||||||
//
|
//
|
||||||
this.curvelinedefsitem.Name = "curvelinedefsitem";
|
this.curvelinedefsitem.Name = "curvelinedefsitem";
|
||||||
this.curvelinedefsitem.Size = new System.Drawing.Size(158, 22);
|
this.curvelinedefsitem.Size = new System.Drawing.Size(169, 22);
|
||||||
this.curvelinedefsitem.Tag = "curvelinesmode";
|
this.curvelinedefsitem.Tag = "curvelinesmode";
|
||||||
this.curvelinedefsitem.Text = "Curve Linedefs...";
|
this.curvelinedefsitem.Text = "Curve Linedefs...";
|
||||||
|
this.curvelinedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
//
|
//
|
||||||
// toolStripMenuItem3
|
// toolStripMenuItem3
|
||||||
//
|
//
|
||||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(155, 6);
|
this.toolStripMenuItem3.Size = new System.Drawing.Size(166, 6);
|
||||||
//
|
//
|
||||||
// splitlinedefsitem
|
// splitlinedefsitem
|
||||||
//
|
//
|
||||||
this.splitlinedefsitem.Name = "splitlinedefsitem";
|
this.splitlinedefsitem.Name = "splitlinedefsitem";
|
||||||
this.splitlinedefsitem.Size = new System.Drawing.Size(158, 22);
|
this.splitlinedefsitem.Size = new System.Drawing.Size(169, 22);
|
||||||
this.splitlinedefsitem.Tag = "splitlinedefs";
|
this.splitlinedefsitem.Tag = "splitlinedefs";
|
||||||
this.splitlinedefsitem.Text = "Split Linedefs";
|
this.splitlinedefsitem.Text = "Split Linedefs";
|
||||||
this.splitlinedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.splitlinedefsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
@ -131,7 +128,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// joinsectorsitem
|
// joinsectorsitem
|
||||||
//
|
//
|
||||||
this.joinsectorsitem.Name = "joinsectorsitem";
|
this.joinsectorsitem.Name = "joinsectorsitem";
|
||||||
this.joinsectorsitem.Size = new System.Drawing.Size(143, 22);
|
this.joinsectorsitem.Size = new System.Drawing.Size(154, 22);
|
||||||
this.joinsectorsitem.Tag = "joinsectors";
|
this.joinsectorsitem.Tag = "joinsectors";
|
||||||
this.joinsectorsitem.Text = "Join Sectors";
|
this.joinsectorsitem.Text = "Join Sectors";
|
||||||
this.joinsectorsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.joinsectorsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
@ -139,7 +136,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// mergesectorsitem
|
// mergesectorsitem
|
||||||
//
|
//
|
||||||
this.mergesectorsitem.Name = "mergesectorsitem";
|
this.mergesectorsitem.Name = "mergesectorsitem";
|
||||||
this.mergesectorsitem.Size = new System.Drawing.Size(143, 22);
|
this.mergesectorsitem.Size = new System.Drawing.Size(154, 22);
|
||||||
this.mergesectorsitem.Tag = "mergesectors";
|
this.mergesectorsitem.Tag = "mergesectors";
|
||||||
this.mergesectorsitem.Text = "Merge Sectors";
|
this.mergesectorsitem.Text = "Merge Sectors";
|
||||||
this.mergesectorsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.mergesectorsitem.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
@ -147,29 +144,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// toolStripMenuItem2
|
// toolStripMenuItem2
|
||||||
//
|
//
|
||||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(140, 6);
|
this.toolStripMenuItem2.Size = new System.Drawing.Size(151, 6);
|
||||||
//
|
|
||||||
// thingsmenu
|
|
||||||
//
|
|
||||||
this.thingsmenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
||||||
this.rotatethingscwitem,
|
|
||||||
this.rotatethingsccwitem});
|
|
||||||
this.thingsmenu.Name = "thingsmenu";
|
|
||||||
this.thingsmenu.Size = new System.Drawing.Size(50, 20);
|
|
||||||
this.thingsmenu.Text = "Things";
|
|
||||||
this.thingsmenu.Visible = false;
|
|
||||||
//
|
|
||||||
// rotatethingscwitem
|
|
||||||
//
|
|
||||||
this.rotatethingscwitem.Name = "rotatethingscwitem";
|
|
||||||
this.rotatethingscwitem.Size = new System.Drawing.Size(193, 22);
|
|
||||||
this.rotatethingscwitem.Text = "Rotate Clockwise";
|
|
||||||
//
|
|
||||||
// rotatethingsccwitem
|
|
||||||
//
|
|
||||||
this.rotatethingsccwitem.Name = "rotatethingsccwitem";
|
|
||||||
this.rotatethingsccwitem.Size = new System.Drawing.Size(193, 22);
|
|
||||||
this.rotatethingsccwitem.Text = "Rotate Counterclockwise";
|
|
||||||
//
|
//
|
||||||
// globalstrip
|
// globalstrip
|
||||||
//
|
//
|
||||||
|
@ -231,7 +206,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
private System.Windows.Forms.MenuStrip menustrip;
|
private System.Windows.Forms.MenuStrip menustrip;
|
||||||
private System.Windows.Forms.ToolStripMenuItem linedefsmenu;
|
private System.Windows.Forms.ToolStripMenuItem linedefsmenu;
|
||||||
private System.Windows.Forms.ToolStripMenuItem sectorsmenu;
|
private System.Windows.Forms.ToolStripMenuItem sectorsmenu;
|
||||||
private System.Windows.Forms.ToolStripMenuItem thingsmenu;
|
|
||||||
private System.Windows.Forms.ToolStripMenuItem fliplinedefsitem;
|
private System.Windows.Forms.ToolStripMenuItem fliplinedefsitem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem flipsidedefsitem;
|
private System.Windows.Forms.ToolStripMenuItem flipsidedefsitem;
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||||
|
@ -239,8 +213,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
private System.Windows.Forms.ToolStripMenuItem joinsectorsitem;
|
private System.Windows.Forms.ToolStripMenuItem joinsectorsitem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem mergesectorsitem;
|
private System.Windows.Forms.ToolStripMenuItem mergesectorsitem;
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
|
||||||
private System.Windows.Forms.ToolStripMenuItem rotatethingscwitem;
|
|
||||||
private System.Windows.Forms.ToolStripMenuItem rotatethingsccwitem;
|
|
||||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
|
||||||
private System.Windows.Forms.ToolStripMenuItem splitlinedefsitem;
|
private System.Windows.Forms.ToolStripMenuItem splitlinedefsitem;
|
||||||
private System.Windows.Forms.ToolStrip globalstrip;
|
private System.Windows.Forms.ToolStrip globalstrip;
|
||||||
|
|
|
@ -52,7 +52,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
public ToolStripMenuItem LinedefsMenu { get { return linedefsmenu; } }
|
public ToolStripMenuItem LinedefsMenu { get { return linedefsmenu; } }
|
||||||
public ToolStripMenuItem SectorsMenu { get { return sectorsmenu; } }
|
public ToolStripMenuItem SectorsMenu { get { return sectorsmenu; } }
|
||||||
public ToolStripMenuItem ThingsMenu { get { return thingsmenu; } }
|
|
||||||
public ToolStripButton MakeGradientBrightness { get { return buttonbrightnessgradient; } }
|
public ToolStripButton MakeGradientBrightness { get { return buttonbrightnessgradient; } }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -119,17 +118,17 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
public void ShowEditingModeMenu(EditMode mode)
|
public void ShowEditingModeMenu(EditMode mode)
|
||||||
{
|
{
|
||||||
Type sourcemode = typeof(object);
|
Type sourcemode = typeof(object);
|
||||||
if(mode != null) sourcemode = mode.GetType();
|
if(mode != null)
|
||||||
|
{
|
||||||
|
sourcemode = mode.GetType();
|
||||||
|
|
||||||
// When these modes are active, then test against the base mode they will return to
|
// When in a volatile mode, check against the last stable mode
|
||||||
if((mode is DragGeometryMode) || (mode is DragThingsMode) ||
|
if(mode.Attributes.Volatile) sourcemode = General.Editing.PreviousStableMode;
|
||||||
(mode is DrawGeometryMode) || (mode is CurveLinedefsMode))
|
}
|
||||||
sourcemode = General.Editing.PreviousStableMode;
|
|
||||||
|
|
||||||
// Final decision
|
// Final decision
|
||||||
if(sourcemode == typeof(LinedefsMode)) HideAllMenusExcept(linedefsmenu);
|
if(sourcemode == typeof(LinedefsMode)) HideAllMenusExcept(linedefsmenu);
|
||||||
else if(sourcemode == typeof(SectorsMode)) HideAllMenusExcept(sectorsmenu);
|
else if(sourcemode == typeof(SectorsMode)) HideAllMenusExcept(sectorsmenu);
|
||||||
else if(sourcemode == typeof(ThingsMode)) HideAllMenusExcept(thingsmenu);
|
|
||||||
else HideAllMenus();
|
else HideAllMenus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
Source/Properties/Resources.Designer.cs
generated
7
Source/Properties/Resources.Designer.cs
generated
|
@ -179,6 +179,13 @@ namespace CodeImp.DoomBuilder.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static System.Drawing.Bitmap Monster3 {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("Monster3", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
internal static System.Drawing.Bitmap NewMap {
|
internal static System.Drawing.Bitmap NewMap {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("NewMap", resourceCulture);
|
object obj = ResourceManager.GetObject("NewMap", resourceCulture);
|
||||||
|
|
|
@ -166,9 +166,6 @@
|
||||||
<data name="treeview" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="treeview" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\treeview.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\treeview.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Monster2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
|
||||||
<value>..\Resources\Monster2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
|
||||||
</data>
|
|
||||||
<data name="ColorPick" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="ColorPick" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\ColorPick.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\ColorPick.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -277,4 +274,10 @@
|
||||||
<data name="Prefab2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Prefab2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Prefab2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Prefab2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Monster2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Monster2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="Monster3" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\Monster3.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
Binary file not shown.
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 880 B |
BIN
Source/Resources/Monster3.png
Normal file
BIN
Source/Resources/Monster3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 694 B |
16
Source/Windows/MainForm.Designer.cs
generated
16
Source/Windows/MainForm.Designer.cs
generated
|
@ -118,7 +118,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.buttonsnaptogrid = new System.Windows.Forms.ToolStripButton();
|
this.buttonsnaptogrid = new System.Windows.Forms.ToolStripButton();
|
||||||
this.buttonautomerge = new System.Windows.Forms.ToolStripButton();
|
this.buttonautomerge = new System.Windows.Forms.ToolStripButton();
|
||||||
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.buttontestmonsters = new System.Windows.Forms.ToolStripButton();
|
|
||||||
this.buttontest = new System.Windows.Forms.ToolStripSplitButton();
|
this.buttontest = new System.Windows.Forms.ToolStripSplitButton();
|
||||||
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
|
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.statusbar = new System.Windows.Forms.StatusStrip();
|
this.statusbar = new System.Windows.Forms.StatusStrip();
|
||||||
|
@ -749,7 +748,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.buttonsnaptogrid,
|
this.buttonsnaptogrid,
|
||||||
this.buttonautomerge,
|
this.buttonautomerge,
|
||||||
this.toolStripSeparator5,
|
this.toolStripSeparator5,
|
||||||
this.buttontestmonsters,
|
|
||||||
this.buttontest,
|
this.buttontest,
|
||||||
this.toolStripSeparator6});
|
this.toolStripSeparator6});
|
||||||
this.toolbar.Location = new System.Drawing.Point(0, 24);
|
this.toolbar.Location = new System.Drawing.Point(0, 24);
|
||||||
|
@ -1005,19 +1003,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.toolStripSeparator5.Name = "toolStripSeparator5";
|
this.toolStripSeparator5.Name = "toolStripSeparator5";
|
||||||
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
|
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25);
|
||||||
//
|
//
|
||||||
// buttontestmonsters
|
|
||||||
//
|
|
||||||
this.buttontestmonsters.Checked = true;
|
|
||||||
this.buttontestmonsters.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.buttontestmonsters.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
|
||||||
this.buttontestmonsters.Image = global::CodeImp.DoomBuilder.Properties.Resources.Monster2;
|
|
||||||
this.buttontestmonsters.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
|
||||||
this.buttontestmonsters.ImageTransparentColor = System.Drawing.Color.Magenta;
|
|
||||||
this.buttontestmonsters.Name = "buttontestmonsters";
|
|
||||||
this.buttontestmonsters.Size = new System.Drawing.Size(23, 22);
|
|
||||||
this.buttontestmonsters.Text = "Test with monsters";
|
|
||||||
this.buttontestmonsters.Click += new System.EventHandler(this.buttontestmonsters_Click);
|
|
||||||
//
|
|
||||||
// buttontest
|
// buttontest
|
||||||
//
|
//
|
||||||
this.buttontest.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
this.buttontest.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||||
|
@ -1565,7 +1550,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private System.Windows.Forms.ToolStripMenuItem itempaste;
|
private System.Windows.Forms.ToolStripMenuItem itempaste;
|
||||||
private System.Windows.Forms.ToolStripStatusLabel configlabel;
|
private System.Windows.Forms.ToolStripStatusLabel configlabel;
|
||||||
private System.Windows.Forms.ToolStripMenuItem menumode;
|
private System.Windows.Forms.ToolStripMenuItem menumode;
|
||||||
private System.Windows.Forms.ToolStripButton buttontestmonsters;
|
|
||||||
private System.Windows.Forms.ToolStripButton buttonviewnormal;
|
private System.Windows.Forms.ToolStripButton buttonviewnormal;
|
||||||
private System.Windows.Forms.ToolStripButton buttonviewbrightness;
|
private System.Windows.Forms.ToolStripButton buttonviewbrightness;
|
||||||
private System.Windows.Forms.ToolStripButton buttonviewfloors;
|
private System.Windows.Forms.ToolStripButton buttonviewfloors;
|
||||||
|
|
|
@ -101,7 +101,7 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private int mouseexclusivebreaklevel;
|
private int mouseexclusivebreaklevel;
|
||||||
|
|
||||||
// Skills
|
// Skills
|
||||||
private ToolStripMenuItem[] skills;
|
private ToolStripItem[] skills;
|
||||||
|
|
||||||
// Last info on panels
|
// Last info on panels
|
||||||
private object lastinfoobject;
|
private object lastinfoobject;
|
||||||
|
@ -1179,13 +1179,34 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
if(General.Map != null)
|
if(General.Map != null)
|
||||||
{
|
{
|
||||||
// Make the new skills list
|
// Make the new skills list
|
||||||
skills = new ToolStripMenuItem[General.Map.Config.Skills.Count];
|
skills = new ToolStripItem[(General.Map.Config.Skills.Count * 2) + 1];
|
||||||
|
int addindex = 0;
|
||||||
|
|
||||||
|
// Positive skills are with monsters
|
||||||
for(int i = 0; i < General.Map.Config.Skills.Count; i++)
|
for(int i = 0; i < General.Map.Config.Skills.Count; i++)
|
||||||
{
|
{
|
||||||
skills[i] = new ToolStripMenuItem(General.Map.Config.Skills[i].ToString());
|
ToolStripMenuItem menuitem = new ToolStripMenuItem(General.Map.Config.Skills[i].ToString());
|
||||||
skills[i].Image = buttontest.Image;
|
menuitem.Image = Properties.Resources.Monster2;
|
||||||
skills[i].Click += new EventHandler(TestSkill_Click);
|
menuitem.Click += new EventHandler(TestSkill_Click);
|
||||||
skills[i].Tag = General.Map.Config.Skills[i].Index;
|
menuitem.Tag = General.Map.Config.Skills[i].Index;
|
||||||
|
menuitem.Checked = (General.Settings.TestMonsters && (General.Map.ConfigSettings.TestSkill == General.Map.Config.Skills[i].Index));
|
||||||
|
skills[addindex++] = menuitem;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add seperator
|
||||||
|
skills[addindex] = new ToolStripSeparator();
|
||||||
|
skills[addindex].Padding = new Padding(0, 3, 0, 3);
|
||||||
|
addindex++;
|
||||||
|
|
||||||
|
// Negative skills are without monsters
|
||||||
|
for(int i = 0; i < General.Map.Config.Skills.Count; i++)
|
||||||
|
{
|
||||||
|
ToolStripMenuItem menuitem = new ToolStripMenuItem(General.Map.Config.Skills[i].ToString());
|
||||||
|
menuitem.Image = Properties.Resources.Monster3;
|
||||||
|
menuitem.Click += new EventHandler(TestSkill_Click);
|
||||||
|
menuitem.Tag = -General.Map.Config.Skills[i].Index;
|
||||||
|
menuitem.Checked = (!General.Settings.TestMonsters && (General.Map.ConfigSettings.TestSkill == General.Map.Config.Skills[i].Index));
|
||||||
|
skills[addindex++] = menuitem;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to list
|
// Add to list
|
||||||
|
@ -1197,14 +1218,10 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private void TestSkill_Click(object sender, EventArgs e)
|
private void TestSkill_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int skill = (int)((sender as ToolStripMenuItem).Tag);
|
int skill = (int)((sender as ToolStripMenuItem).Tag);
|
||||||
General.Map.Launcher.TestAtSkill(skill);
|
General.Settings.TestMonsters = (skill > 0);
|
||||||
}
|
General.Map.ConfigSettings.TestSkill = Math.Abs(skill);
|
||||||
|
General.Map.Launcher.TestAtSkill(Math.Abs(skill));
|
||||||
// Toggle monster testing
|
UpdateSkills();
|
||||||
private void buttontestmonsters_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
General.Settings.TestMonsters = !General.Settings.TestMonsters;
|
|
||||||
buttontestmonsters.Checked = General.Settings.TestMonsters;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This loses focus
|
// This loses focus
|
||||||
|
@ -1343,10 +1360,6 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
{
|
{
|
||||||
// Enable/disable all edit mode items
|
// Enable/disable all edit mode items
|
||||||
foreach(ToolStripItem i in editmodeitems) i.Enabled = (General.Map != null);
|
foreach(ToolStripItem i in editmodeitems) i.Enabled = (General.Map != null);
|
||||||
|
|
||||||
// Update buttons
|
|
||||||
buttontestmonsters.Enabled = (General.Map != null);
|
|
||||||
buttontestmonsters.Checked = General.Settings.TestMonsters;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This checks one of the edit mode items (and unchecks all others)
|
// This checks one of the edit mode items (and unchecks all others)
|
||||||
|
|
|
@ -171,12 +171,12 @@
|
||||||
<metadata name="toolbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>121, 17</value>
|
<value>121, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="statusbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="statusbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="statusbar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>207, 17</value>
|
<value>207, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="statusbar.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="panelinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="panelinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
Loading…
Reference in a new issue