mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Implement polyobject previews, clean up zoom tube & NiGHTS rendering
This commit is contained in:
parent
65604bab03
commit
5c13cbb011
36 changed files with 416 additions and 134 deletions
|
@ -727,7 +727,10 @@
|
||||||
<None Include="Resources\ZBLogo.png" />
|
<None Include="Resources\ZBLogo.png" />
|
||||||
<None Include="Resources\axis1.png" />
|
<None Include="Resources\axis1.png" />
|
||||||
<None Include="Resources\ZB16.png" />
|
<None Include="Resources\ZB16.png" />
|
||||||
|
<None Include="Resources\polycenter.png" />
|
||||||
<Content Include="Resources\Snap1mp.png" />
|
<Content Include="Resources\Snap1mp.png" />
|
||||||
|
<None Include="Resources\zoomtube.bmp" />
|
||||||
|
<None Include="Resources\zoomtube.png" />
|
||||||
<Content Include="ZB.ico" />
|
<Content Include="ZB.ico" />
|
||||||
<None Include="Resources\zonebuilder.png" />
|
<None Include="Resources\zonebuilder.png" />
|
||||||
<None Include="Resources\ZoneBuilder.bmp" />
|
<None Include="Resources\ZoneBuilder.bmp" />
|
||||||
|
|
|
@ -148,6 +148,8 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
private bool fixedthingsscale; //mxd
|
private bool fixedthingsscale; //mxd
|
||||||
private bool rendergrid;
|
private bool rendergrid;
|
||||||
private bool rendernightspath;
|
private bool rendernightspath;
|
||||||
|
private bool renderzoomtubes;
|
||||||
|
private bool renderpolypreview;
|
||||||
private bool dynamicgridsize;
|
private bool dynamicgridsize;
|
||||||
private int ignoredremoterevision;
|
private int ignoredremoterevision;
|
||||||
private bool drawscreenshotinfo;
|
private bool drawscreenshotinfo;
|
||||||
|
@ -283,7 +285,9 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
public bool FixedThingsScale { get { return fixedthingsscale; } internal set { fixedthingsscale = value; } } //mxd
|
public bool FixedThingsScale { get { return fixedthingsscale; } internal set { fixedthingsscale = value; } } //mxd
|
||||||
public bool RenderGrid { get { return rendergrid; } internal set { rendergrid = value; } } //mxd
|
public bool RenderGrid { get { return rendergrid; } internal set { rendergrid = value; } } //mxd
|
||||||
public bool RenderNiGHTSPath { get { return rendernightspath; } internal set { rendernightspath = value; } }
|
public bool RenderNiGHTSPath { get { return rendernightspath; } internal set { rendernightspath = value; } }
|
||||||
public bool DynamicGridSize { get { return dynamicgridsize; } internal set { dynamicgridsize = value; } } //mxd
|
public bool RenderZoomtubes { get { return renderzoomtubes; } internal set { renderzoomtubes = value; } }
|
||||||
|
public bool RenderPolyPreview { get { return renderpolypreview; } internal set { renderpolypreview = value; } }
|
||||||
|
public bool DynamicGridSize { get { return dynamicgridsize; } internal set { dynamicgridsize = value; } } //mxd
|
||||||
internal int IgnoredRemoteRevision { get { return ignoredremoterevision; } set { ignoredremoterevision = value; } } //mxd
|
internal int IgnoredRemoteRevision { get { return ignoredremoterevision; } set { ignoredremoterevision = value; } } //mxd
|
||||||
public bool DrawScreenshotInfo { get { return drawscreenshotinfo; } set { drawscreenshotinfo = value; } }
|
public bool DrawScreenshotInfo { get { return drawscreenshotinfo; } set { drawscreenshotinfo = value; } }
|
||||||
public bool CompressScreenshots { get { return compressscreenshots; } set { compressscreenshots = value; } }
|
public bool CompressScreenshots { get { return compressscreenshots; } set { compressscreenshots = value; } }
|
||||||
|
@ -426,7 +430,9 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
fixedthingsscale = cfg.ReadSetting("fixedthingsscale", false); //mxd
|
fixedthingsscale = cfg.ReadSetting("fixedthingsscale", false); //mxd
|
||||||
rendergrid = cfg.ReadSetting("rendergrid", true); //mxd
|
rendergrid = cfg.ReadSetting("rendergrid", true); //mxd
|
||||||
rendernightspath = cfg.ReadSetting("rendernightspath", true);
|
rendernightspath = cfg.ReadSetting("rendernightspath", true);
|
||||||
dynamicgridsize = cfg.ReadSetting("dynamicgridsize", true); //mxd
|
renderzoomtubes = cfg.ReadSetting("renderzoomtubes", true);
|
||||||
|
renderpolypreview = cfg.ReadSetting("renderpolypreview", true);
|
||||||
|
dynamicgridsize = cfg.ReadSetting("dynamicgridsize", true); //mxd
|
||||||
ignoredremoterevision = cfg.ReadSetting("ignoredremoterevision", 0); //mxd
|
ignoredremoterevision = cfg.ReadSetting("ignoredremoterevision", 0); //mxd
|
||||||
drawscreenshotinfo = cfg.ReadSetting("drawscreenshotinfo", true);
|
drawscreenshotinfo = cfg.ReadSetting("drawscreenshotinfo", true);
|
||||||
compressscreenshots = cfg.ReadSetting("compressscreenshots", true);
|
compressscreenshots = cfg.ReadSetting("compressscreenshots", true);
|
||||||
|
@ -552,8 +558,10 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
cfg.WriteSetting("rendercomments", rendercomments); //mxd
|
cfg.WriteSetting("rendercomments", rendercomments); //mxd
|
||||||
cfg.WriteSetting("fixedthingsscale", fixedthingsscale); //mxd
|
cfg.WriteSetting("fixedthingsscale", fixedthingsscale); //mxd
|
||||||
cfg.WriteSetting("rendergrid", rendergrid); //mxd
|
cfg.WriteSetting("rendergrid", rendergrid); //mxd
|
||||||
cfg.WriteSetting("rendernightspath", rendernightspath); //mxd
|
cfg.WriteSetting("rendernightspath", rendernightspath);
|
||||||
cfg.WriteSetting("dynamicgridsize", dynamicgridsize); //mxd
|
cfg.WriteSetting("renderzoomtubes", renderzoomtubes);
|
||||||
|
cfg.WriteSetting("renderpolypreview", renderpolypreview);
|
||||||
|
cfg.WriteSetting("dynamicgridsize", dynamicgridsize); //mxd
|
||||||
cfg.WriteSetting("ignoredremoterevision", ignoredremoterevision); //mxd
|
cfg.WriteSetting("ignoredremoterevision", ignoredremoterevision); //mxd
|
||||||
cfg.WriteSetting("drawscreenshotinfo", drawscreenshotinfo);
|
cfg.WriteSetting("drawscreenshotinfo", drawscreenshotinfo);
|
||||||
cfg.WriteSetting("compressscreenshots", compressscreenshots);
|
cfg.WriteSetting("compressscreenshots", compressscreenshots);
|
||||||
|
|
20
Source/Core/Properties/Resources.Designer.cs
generated
20
Source/Core/Properties/Resources.Designer.cs
generated
|
@ -980,6 +980,16 @@ namespace CodeImp.DoomBuilder.Properties {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap polycenter {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("polycenter", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1689,5 +1699,15 @@ namespace CodeImp.DoomBuilder.Properties {
|
||||||
return ((System.Drawing.Bitmap)(obj));
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
internal static System.Drawing.Bitmap zoomtube {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("zoomtube", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -607,4 +607,10 @@
|
||||||
<data name="Snap1mp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="Snap1mp" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\Snap1mp.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\Snap1mp.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="polycenter" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\polycenter.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
|
<data name="zoomtube" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\zoomtube.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -68,7 +68,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
void PlotVerticesSet(ICollection<Vertex> vertices);
|
void PlotVerticesSet(ICollection<Vertex> vertices);
|
||||||
void RenderThing(Thing t, PixelColor c, float alpha);
|
void RenderThing(Thing t, PixelColor c, float alpha);
|
||||||
void RenderThingSet(ICollection<Thing> things, float alpha);
|
void RenderThingSet(ICollection<Thing> things, float alpha);
|
||||||
void RenderNiGHTSPath();
|
void RenderSRB2Extras();
|
||||||
void RenderRectangle(RectangleF rect, float bordersize, PixelColor c, bool transformrect);
|
void RenderRectangle(RectangleF rect, float bordersize, PixelColor c, bool transformrect);
|
||||||
void RenderRectangleFilled(RectangleF rect, PixelColor c, bool transformrect);
|
void RenderRectangleFilled(RectangleF rect, PixelColor c, bool transformrect);
|
||||||
void RenderRectangleFilled(RectangleF rect, PixelColor c, bool transformrect, ImageData texture);
|
void RenderRectangleFilled(RectangleF rect, PixelColor c, bool transformrect, ImageData texture);
|
||||||
|
|
|
@ -28,6 +28,8 @@ using CodeImp.DoomBuilder.Editing;
|
||||||
using CodeImp.DoomBuilder.GZBuilder.Data; //mxd
|
using CodeImp.DoomBuilder.GZBuilder.Data; //mxd
|
||||||
using CodeImp.DoomBuilder.GZBuilder.Geometry; //mxd
|
using CodeImp.DoomBuilder.GZBuilder.Geometry; //mxd
|
||||||
using CodeImp.DoomBuilder.Config; //mxd
|
using CodeImp.DoomBuilder.Config; //mxd
|
||||||
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -114,6 +116,17 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
// Presentation
|
// Presentation
|
||||||
private Presentation present;
|
private Presentation present;
|
||||||
|
|
||||||
|
// SRB2 stuff
|
||||||
|
private List<Thing> axes;
|
||||||
|
private List<Thing> axistransferlines;
|
||||||
|
private List<Thing> waypoints;
|
||||||
|
private List<Thing> polyanchors;
|
||||||
|
private List<Thing> polyspawns;
|
||||||
|
private List<Linedef> firstlines;
|
||||||
|
|
||||||
|
private TextLabel spawnlabel;
|
||||||
|
private TextLabel anchorlabel;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ================== Properties
|
#region ================== Properties
|
||||||
|
@ -141,6 +154,26 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
// Create rendertargets
|
// Create rendertargets
|
||||||
CreateRendertargets();
|
CreateRendertargets();
|
||||||
|
|
||||||
|
anchorlabel = new TextLabel() // create sequence ID label
|
||||||
|
{
|
||||||
|
Text = "0",
|
||||||
|
AlignX = TextAlignmentX.Center,
|
||||||
|
AlignY = TextAlignmentY.Middle,
|
||||||
|
Color = General.Colors.GetNiGHTSColor(8),
|
||||||
|
BackColor = General.Colors.Background,
|
||||||
|
TransformCoords = true
|
||||||
|
};
|
||||||
|
|
||||||
|
spawnlabel = new TextLabel() // create sequence ID label
|
||||||
|
{
|
||||||
|
Text = "0",
|
||||||
|
AlignX = TextAlignmentX.Center,
|
||||||
|
AlignY = TextAlignmentY.Middle,
|
||||||
|
Color = General.Colors.GetNiGHTSColor(7),
|
||||||
|
BackColor = General.Colors.Background,
|
||||||
|
TransformCoords = true
|
||||||
|
};
|
||||||
|
|
||||||
// We have no destructor
|
// We have no destructor
|
||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
@ -1495,102 +1528,199 @@ namespace CodeImp.DoomBuilder.Rendering
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void RenderNiGHTSPath()
|
public void RenderSRB2Extras()
|
||||||
{
|
{
|
||||||
if (!General.Settings.RenderNiGHTSPath) return;
|
if (!(General.Settings.RenderNiGHTSPath || General.Settings.RenderZoomtubes || General.Settings.RenderPolyPreview)) return;
|
||||||
ICollection<Thing> things = General.Map.Map.Things;
|
ICollection<Thing> things = General.Map.Map.Things;
|
||||||
List<Thing> axes = new List<Thing>();
|
|
||||||
List<Thing> axistransferlines = new List<Thing>();
|
|
||||||
List<Thing> waypoints = new List<Thing>();
|
|
||||||
|
|
||||||
|
axes = new List<Thing>();
|
||||||
|
axistransferlines = new List<Thing>();
|
||||||
|
waypoints = new List<Thing>();
|
||||||
|
polyanchors = new List<Thing>();
|
||||||
|
polyspawns = new List<Thing>();
|
||||||
|
firstlines = new List<Linedef>();
|
||||||
|
|
||||||
|
// Collect relevant things
|
||||||
foreach (Thing t in things)
|
foreach (Thing t in things)
|
||||||
{
|
{
|
||||||
int type = t.Type;
|
int type = t.Type;
|
||||||
if (type == General.Map.FormatInterface.AxisType) axes.Add(t);
|
if (General.Settings.RenderNiGHTSPath && type == General.Map.FormatInterface.AxisType)
|
||||||
if (type == General.Map.FormatInterface.AxisTransferLineType) axistransferlines.Add(t);
|
axes.Add(t);
|
||||||
if (type == General.Map.FormatInterface.WaypointType) waypoints.Add(t);
|
if (General.Settings.RenderNiGHTSPath && type == General.Map.FormatInterface.AxisTransferLineType)
|
||||||
|
axistransferlines.Add(t);
|
||||||
|
if (General.Settings.RenderZoomtubes && type == General.Map.FormatInterface.WaypointType)
|
||||||
|
waypoints.Add(t);
|
||||||
|
if (General.Settings.RenderPolyPreview && type == 760)
|
||||||
|
polyanchors.Add(t);
|
||||||
|
if (General.Settings.RenderPolyPreview && (type == 761 || type == 762))
|
||||||
|
polyspawns.Add(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Sort waypoints by angle
|
//Sort waypoints by angle
|
||||||
waypoints.Sort((x,y) => (x.AngleDoom.CompareTo(y.AngleDoom)));
|
waypoints.Sort((x, y) => (x.AngleDoom.CompareTo(y.AngleDoom)));
|
||||||
//Sort by axis number and mare number.
|
|
||||||
axistransferlines.Sort((x, y) => (x.GetFlagsValue() | (x.Parameter)<<16).CompareTo((y.GetFlagsValue() | (y.Parameter) << 16)));
|
// Sort polyobject stuff by "angle"/tag
|
||||||
|
polyanchors.Sort((x, y) => (x.AngleDoom.CompareTo(y.AngleDoom)));
|
||||||
|
polyspawns.Sort((x, y) => (x.AngleDoom.CompareTo(y.AngleDoom)));
|
||||||
|
|
||||||
|
//Sort by axis number and mare number.
|
||||||
|
axistransferlines.Sort((x, y) => (x.GetFlagsValue() | (x.Parameter) << 16).CompareTo((y.GetFlagsValue() | (y.Parameter) << 16)));
|
||||||
|
|
||||||
|
// Collect relevant lines
|
||||||
|
if (General.Settings.RenderPolyPreview)
|
||||||
|
{
|
||||||
|
foreach (Linedef l in General.Map.Map.Linedefs)
|
||||||
|
{
|
||||||
|
if (l.Action == 20) firstlines.Add(l);
|
||||||
|
}
|
||||||
|
|
||||||
|
//Sort polyobject first lines by tag
|
||||||
|
firstlines.Sort((x, y) => (x.Tag.CompareTo(y.Tag)));
|
||||||
|
}
|
||||||
|
|
||||||
//Render (zoom tube) waypoint sequences.
|
//Render (zoom tube) waypoint sequences.
|
||||||
int i = 0;
|
if (General.Settings.RenderZoomtubes)
|
||||||
int size = waypoints.Count;
|
|
||||||
int seqStart = 0;
|
|
||||||
ITextLabel[] sequencelabels = new ITextLabel[256];
|
|
||||||
while (i < size)
|
|
||||||
{
|
{
|
||||||
int iNext = i + 1;
|
int i = 0;
|
||||||
if (waypoints[i].AngleDoom % 256 == 0) // start of a new sequence?
|
int size = waypoints.Count;
|
||||||
|
int seqStart = 0;
|
||||||
|
ITextLabel[] sequencelabels = new ITextLabel[256];
|
||||||
|
while (i < size)
|
||||||
{
|
{
|
||||||
seqStart = i;
|
int iNext = i + 1;
|
||||||
sequencelabels[waypoints[i].AngleDoom / 256] = new TextLabel() // create sequence ID label
|
if (waypoints[i].AngleDoom % 256 == 0) // start of a new sequence?
|
||||||
{
|
{
|
||||||
Text = (waypoints[i].AngleDoom / 256).ToString(),
|
seqStart = i;
|
||||||
AlignX = TextAlignmentX.Center,
|
sequencelabels[waypoints[i].AngleDoom / 256] = new TextLabel() // create sequence ID label
|
||||||
AlignY = TextAlignmentY.Middle,
|
{
|
||||||
Color = General.Colors.WaypointColor,
|
Text = (waypoints[i].AngleDoom / 256).ToString(),
|
||||||
TransformCoords = true,
|
AlignX = TextAlignmentX.Center,
|
||||||
Location = waypoints[i].Position
|
AlignY = TextAlignmentY.Middle,
|
||||||
};
|
Color = General.Colors.WaypointColor,
|
||||||
|
TransformCoords = true,
|
||||||
|
Location = waypoints[i].Position
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (iNext < size && waypoints[iNext].AngleDoom == waypoints[i].AngleDoom + 1)
|
||||||
|
{
|
||||||
|
// draw line between this waypoint and the next
|
||||||
|
RenderLine(waypoints[i].Position, waypoints[iNext].Position, 1.5f, General.Colors.WaypointColor, true);
|
||||||
|
}
|
||||||
|
else if (iNext < size && waypoints[iNext].AngleDoom == waypoints[i].AngleDoom)
|
||||||
|
{
|
||||||
|
// mark duplicate waypoints
|
||||||
|
RenderCircle(waypoints[i].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
||||||
|
RenderCircle(waypoints[iNext].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
||||||
|
}
|
||||||
|
else if (iNext < size && i > 0 && waypoints[i].AngleDoom - waypoints[i - 1].AngleDoom > 1 && waypoints[iNext].AngleDoom > waypoints[seqStart].AngleDoom + 255)
|
||||||
|
{
|
||||||
|
// mark inaccessible waypoints
|
||||||
|
RenderCircle(waypoints[i].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// draw different line between last and first waypoint of this sequence
|
||||||
|
RenderLine(waypoints[i].Position, waypoints[seqStart].Position, 0.75f, General.Colors.WaypointLoopColor, true);
|
||||||
|
}
|
||||||
|
i = iNext;
|
||||||
}
|
}
|
||||||
if (iNext < size && waypoints[iNext].AngleDoom == waypoints[i].AngleDoom + 1)
|
|
||||||
{
|
for (i = 0; i < 256; i++)
|
||||||
// draw line between this waypoint and the next
|
if (sequencelabels[i] != null) RenderText(sequencelabels[i]);
|
||||||
RenderLine(waypoints[i].Position, waypoints[iNext].Position, 1.5f, General.Colors.WaypointColor, true);
|
|
||||||
}
|
|
||||||
else if (iNext < size && waypoints[iNext].AngleDoom == waypoints[i].AngleDoom)
|
|
||||||
{
|
|
||||||
// mark duplicate waypoints
|
|
||||||
RenderCircle(waypoints[i].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
|
||||||
RenderCircle(waypoints[iNext].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
|
||||||
}
|
|
||||||
else if (iNext < size && i > 0 && waypoints[i].AngleDoom - waypoints[i - 1].AngleDoom > 1 && waypoints[iNext].AngleDoom > waypoints[seqStart].AngleDoom + 255)
|
|
||||||
{
|
|
||||||
// mark inaccessible waypoints
|
|
||||||
RenderCircle(waypoints[i].Position, 32f, 1f, PixelColor.FromColor(Color.Red), true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// draw different line between last and first waypoint of this sequence
|
|
||||||
RenderLine(waypoints[i].Position, waypoints[seqStart].Position, 0.75f, General.Colors.WaypointLoopColor, true);
|
|
||||||
}
|
|
||||||
i = iNext;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 256; i++)
|
|
||||||
if (sequencelabels[i] != null) RenderText(sequencelabels[i]);
|
|
||||||
|
|
||||||
//Render axis transfer lines.
|
//Render axis transfer lines.
|
||||||
i = 0;
|
if (General.Settings.RenderNiGHTSPath)
|
||||||
size = axistransferlines.Count;
|
{
|
||||||
while (i < size - 1)
|
int i = 0;
|
||||||
{
|
int size = axistransferlines.Count;
|
||||||
int iNext = i;
|
while (i < size - 1)
|
||||||
while (iNext < size - 1 && axistransferlines[++iNext].GetFlagsValue() <= axistransferlines[i].GetFlagsValue()) ;
|
{
|
||||||
|
int iNext = i;
|
||||||
|
while (iNext < size - 1 && axistransferlines[++iNext].GetFlagsValue() <= axistransferlines[i].GetFlagsValue()) ;
|
||||||
|
|
||||||
|
if (iNext < size && axistransferlines[iNext].GetFlagsValue() == axistransferlines[i].GetFlagsValue() + 1)
|
||||||
|
{
|
||||||
|
int mare = axistransferlines[i].Parameter;
|
||||||
|
RenderLine(axistransferlines[i].Position, axistransferlines[iNext].Position, 1f, General.Colors.GetNiGHTSColor(mare), true);
|
||||||
|
/* Start looking for partners for the one beyond iNext. */
|
||||||
|
i = iNext + 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* No partner, so start looking for partners for iNext. */
|
||||||
|
i = iNext;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Render axes.
|
||||||
|
foreach (Thing axis in axes)
|
||||||
|
{
|
||||||
|
int mare = axis.Parameter;
|
||||||
|
RenderCircle(axis.Position, (float)(axis.AngleDoom & 0x3FFF), 1f, General.Colors.GetNiGHTSColor(mare), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (General.Settings.RenderPolyPreview)
|
||||||
|
{
|
||||||
|
int i = 0, j = 0, k = 0;
|
||||||
|
Sector s = null;
|
||||||
|
while (i < polyanchors.Count && j < polyspawns.Count && k < firstlines.Count)
|
||||||
|
{
|
||||||
|
while (j + 1 < polyspawns.Count && polyanchors[i].AngleDoom > polyspawns[j].AngleDoom) j++;
|
||||||
|
while (k + 1 < firstlines.Count && polyanchors[i].AngleDoom > firstlines[k].Tag) k++;
|
||||||
|
|
||||||
|
if (polyanchors[i].AngleDoom == firstlines[k].Tag)
|
||||||
|
s = firstlines[k].Back.Sector;
|
||||||
|
else
|
||||||
|
s = null;
|
||||||
|
|
||||||
|
if (polyanchors[i].AngleDoom == polyspawns[j].AngleDoom && s != null)
|
||||||
|
{
|
||||||
|
while (j + 1 < polyspawns.Count && polyspawns[j].AngleDoom == polyspawns[j + 1].AngleDoom)
|
||||||
|
{
|
||||||
|
// Mark redundant spawnpoints
|
||||||
|
spawnlabel.Text = polyspawns[j].AngleDoom.ToString();
|
||||||
|
spawnlabel.Location = polyspawns[j].Position;
|
||||||
|
spawnlabel.Color = PixelColor.FromColor(Color.Red);
|
||||||
|
RenderText(spawnlabel);
|
||||||
|
j++;
|
||||||
|
}
|
||||||
|
|
||||||
|
float xdiff = polyanchors[i].Position.x - polyspawns[j].Position.x;
|
||||||
|
float ydiff = polyanchors[i].Position.y - polyspawns[j].Position.y;
|
||||||
|
|
||||||
|
foreach (Sidedef side in s.Sidedefs)
|
||||||
|
{
|
||||||
|
Vector2D start = side.Line.Start.Position;
|
||||||
|
Vector2D end = side.Line.End.Position;
|
||||||
|
start.x -= xdiff;
|
||||||
|
start.y -= ydiff;
|
||||||
|
end.x -= xdiff;
|
||||||
|
end.y -= ydiff;
|
||||||
|
RenderLine(start, end, 1.0f, General.Colors.GetNiGHTSColor(7), true);
|
||||||
|
}
|
||||||
|
anchorlabel.Color = General.Colors.GetNiGHTSColor(8);
|
||||||
|
spawnlabel.Color = General.Colors.GetNiGHTSColor(7);
|
||||||
|
|
||||||
|
spawnlabel.Text = polyspawns[j].AngleDoom.ToString();
|
||||||
|
spawnlabel.Location = polyspawns[j].Position;
|
||||||
|
RenderText(spawnlabel);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Mark unused polyobject anchors
|
||||||
|
anchorlabel.Color = PixelColor.FromColor(Color.Red);
|
||||||
|
}
|
||||||
|
|
||||||
|
anchorlabel.Text = polyanchors[i].AngleDoom.ToString();
|
||||||
|
anchorlabel.Location = polyanchors[i].Position;
|
||||||
|
RenderText(anchorlabel);
|
||||||
|
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (iNext < size && axistransferlines[iNext].GetFlagsValue() == axistransferlines[i].GetFlagsValue() + 1)
|
|
||||||
{
|
|
||||||
int mare = axistransferlines[i].Parameter;
|
|
||||||
RenderLine(axistransferlines[i].Position, axistransferlines[iNext].Position, 1f, General.Colors.GetNiGHTSColor(mare), true);
|
|
||||||
/* Start looking for partners for the one beyond iNext. */
|
|
||||||
i = iNext + 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* No partner, so start looking for partners for iNext. */
|
|
||||||
i = iNext;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//Render axes.
|
|
||||||
foreach (Thing axis in axes)
|
|
||||||
{
|
|
||||||
int mare = axis.Parameter;
|
|
||||||
RenderCircle(axis.Position, (float)(axis.AngleDoom & 0x3FFF), 1f, General.Colors.GetNiGHTSColor(mare), true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ================== Surface
|
#region ================== Surface
|
||||||
|
|
|
@ -405,12 +405,31 @@ togglegrid
|
||||||
default = 262215; //Alt-G
|
default = 262215; //Alt-G
|
||||||
}
|
}
|
||||||
|
|
||||||
//mxd
|
|
||||||
togglenightspath
|
togglenightspath
|
||||||
{
|
{
|
||||||
title = "Toggle Waypoint and NiGHTS Paths";
|
title = "Toggle NiGHTS Paths";
|
||||||
category = "classic";
|
category = "classic";
|
||||||
description = "Toggles (zoom tube) waypoint and NiGHTS path rendering in classic modes.";
|
description = "Toggles NiGHTS path rendering in classic modes.";
|
||||||
|
allowkeys = true;
|
||||||
|
allowmouse = false;
|
||||||
|
allowscroll = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
togglezoomtubes
|
||||||
|
{
|
||||||
|
title = "Toggle Zoom Tube Waypoint Paths";
|
||||||
|
category = "classic";
|
||||||
|
description = "Toggles zoom tube waypoint path rendering in classic modes.";
|
||||||
|
allowkeys = true;
|
||||||
|
allowmouse = false;
|
||||||
|
allowscroll = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
togglepolypreview
|
||||||
|
{
|
||||||
|
title = "Toggle Polyobject Preview";
|
||||||
|
category = "classic";
|
||||||
|
description = "Toggles polyobject previews in classic modes.";
|
||||||
allowkeys = true;
|
allowkeys = true;
|
||||||
allowmouse = false;
|
allowmouse = false;
|
||||||
allowscroll = false;
|
allowscroll = false;
|
||||||
|
|
BIN
Source/Core/Resources/polycenter.png
Normal file
BIN
Source/Core/Resources/polycenter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 399 B |
BIN
Source/Core/Resources/zoomtube.bmp
Normal file
BIN
Source/Core/Resources/zoomtube.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
Source/Core/Resources/zoomtube.png
Normal file
BIN
Source/Core/Resources/zoomtube.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 314 B |
92
Source/Core/Windows/MainForm.Designer.cs
generated
92
Source/Core/Windows/MainForm.Designer.cs
generated
|
@ -211,6 +211,8 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.buttonsplitjoinedsectors = new System.Windows.Forms.ToolStripButton();
|
this.buttonsplitjoinedsectors = new System.Windows.Forms.ToolStripButton();
|
||||||
this.buttonautoclearsidetextures = new System.Windows.Forms.ToolStripButton();
|
this.buttonautoclearsidetextures = new System.Windows.Forms.ToolStripButton();
|
||||||
this.buttontogglenightspath = new System.Windows.Forms.ToolStripButton();
|
this.buttontogglenightspath = new System.Windows.Forms.ToolStripButton();
|
||||||
|
this.buttontogglezoomtubes = new System.Windows.Forms.ToolStripButton();
|
||||||
|
this.buttontogglepolypreview = new System.Windows.Forms.ToolStripButton();
|
||||||
this.seperatorgeometry = new System.Windows.Forms.ToolStripSeparator();
|
this.seperatorgeometry = new System.Windows.Forms.ToolStripSeparator();
|
||||||
this.dynamiclightmode = new System.Windows.Forms.ToolStripSplitButton();
|
this.dynamiclightmode = new System.Windows.Forms.ToolStripSplitButton();
|
||||||
this.sightsdontshow = new System.Windows.Forms.ToolStripMenuItem();
|
this.sightsdontshow = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
@ -284,7 +286,9 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.itemtogglefixedthingsscale = new System.Windows.Forms.ToolStripMenuItem();
|
this.itemtogglefixedthingsscale = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.itemdynamicgridsize = new System.Windows.Forms.ToolStripMenuItem();
|
this.itemdynamicgridsize = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.itemrendernightspath = new System.Windows.Forms.ToolStripMenuItem();
|
this.itemrendernightspath = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
this.itemrenderzoomtubes = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.itemrenderpolypreview = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
|
toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
|
toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
|
toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
|
||||||
|
@ -803,7 +807,9 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.itemfullbrightness,
|
this.itemfullbrightness,
|
||||||
this.itemtogglegrid,
|
this.itemtogglegrid,
|
||||||
this.itemrendernightspath,
|
this.itemrendernightspath,
|
||||||
this.itemtogglecomments,
|
this.itemrenderzoomtubes,
|
||||||
|
this.itemrenderpolypreview,
|
||||||
|
this.itemtogglecomments,
|
||||||
this.itemtogglefixedthingsscale,
|
this.itemtogglefixedthingsscale,
|
||||||
this.separatorrendering,
|
this.separatorrendering,
|
||||||
this.itemdynlightmodes,
|
this.itemdynlightmodes,
|
||||||
|
@ -1366,7 +1372,9 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.buttonsplitjoinedsectors,
|
this.buttonsplitjoinedsectors,
|
||||||
this.buttonautoclearsidetextures,
|
this.buttonautoclearsidetextures,
|
||||||
this.buttontogglenightspath,
|
this.buttontogglenightspath,
|
||||||
this.seperatorgeometry,
|
this.buttontogglezoomtubes,
|
||||||
|
this.buttontogglepolypreview,
|
||||||
|
this.seperatorgeometry,
|
||||||
this.dynamiclightmode,
|
this.dynamiclightmode,
|
||||||
this.modelrendermode,
|
this.modelrendermode,
|
||||||
this.buttontogglefog,
|
this.buttontogglefog,
|
||||||
|
@ -1831,12 +1839,40 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.buttontogglenightspath.Name = "buttontogglenightspath";
|
this.buttontogglenightspath.Name = "buttontogglenightspath";
|
||||||
this.buttontogglenightspath.Size = new System.Drawing.Size(23, 22);
|
this.buttontogglenightspath.Size = new System.Drawing.Size(23, 22);
|
||||||
this.buttontogglenightspath.Tag = "builder_togglenightspath";
|
this.buttontogglenightspath.Tag = "builder_togglenightspath";
|
||||||
this.buttontogglenightspath.Text = "Show Waypoint and NiGHTS Paths";
|
this.buttontogglenightspath.Text = "Show NiGHTS Paths";
|
||||||
this.buttontogglenightspath.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.buttontogglenightspath.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
//
|
//
|
||||||
// separatorfullbrightness
|
// buttontogglezoomtubes
|
||||||
//
|
//
|
||||||
this.separatorfullbrightness.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
this.buttontogglezoomtubes.Checked = true;
|
||||||
|
this.buttontogglezoomtubes.CheckOnClick = true;
|
||||||
|
this.buttontogglezoomtubes.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.buttontogglezoomtubes.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||||
|
this.buttontogglezoomtubes.Image = global::CodeImp.DoomBuilder.Properties.Resources.zoomtube;
|
||||||
|
this.buttontogglezoomtubes.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
|
this.buttontogglezoomtubes.Name = "buttontogglezoomtubes";
|
||||||
|
this.buttontogglezoomtubes.Size = new System.Drawing.Size(23, 22);
|
||||||
|
this.buttontogglezoomtubes.Tag = "builder_togglezoomtubes";
|
||||||
|
this.buttontogglezoomtubes.Text = "Show Zoom Tube Waypoint Paths";
|
||||||
|
this.buttontogglezoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
//
|
||||||
|
// buttontogglepolypreview
|
||||||
|
//
|
||||||
|
this.buttontogglepolypreview.Checked = true;
|
||||||
|
this.buttontogglepolypreview.CheckOnClick = true;
|
||||||
|
this.buttontogglepolypreview.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.buttontogglepolypreview.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||||
|
this.buttontogglepolypreview.Image = global::CodeImp.DoomBuilder.Properties.Resources.polycenter;
|
||||||
|
this.buttontogglepolypreview.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||||
|
this.buttontogglepolypreview.Name = "buttontogglepolypreview";
|
||||||
|
this.buttontogglepolypreview.Size = new System.Drawing.Size(23, 22);
|
||||||
|
this.buttontogglepolypreview.Tag = "builder_togglepolypreview";
|
||||||
|
this.buttontogglepolypreview.Text = "Show Polyobject Previews";
|
||||||
|
this.buttontogglepolypreview.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
//
|
||||||
|
// separatorfullbrightness
|
||||||
|
//
|
||||||
|
this.separatorfullbrightness.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
|
||||||
this.separatorfullbrightness.Name = "separatorfullbrightness";
|
this.separatorfullbrightness.Name = "separatorfullbrightness";
|
||||||
this.separatorfullbrightness.Size = new System.Drawing.Size(6, 25);
|
this.separatorfullbrightness.Size = new System.Drawing.Size(6, 25);
|
||||||
//
|
//
|
||||||
|
@ -2785,12 +2821,36 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
this.itemrendernightspath.Name = "itemrendernightspath";
|
this.itemrendernightspath.Name = "itemrendernightspath";
|
||||||
this.itemrendernightspath.Size = new System.Drawing.Size(215, 22);
|
this.itemrendernightspath.Size = new System.Drawing.Size(215, 22);
|
||||||
this.itemrendernightspath.Tag = "builder_togglenightspath";
|
this.itemrendernightspath.Tag = "builder_togglenightspath";
|
||||||
this.itemrendernightspath.Text = "Show Waypoint and NiGHTS Paths";
|
this.itemrendernightspath.Text = "Show NiGHTS Paths";
|
||||||
this.itemrendernightspath.Click += new System.EventHandler(this.InvokeTaggedAction);
|
this.itemrendernightspath.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
//
|
//
|
||||||
// MainForm
|
// itemrenderzoomtubes
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
this.itemrenderzoomtubes.Checked = true;
|
||||||
|
this.itemrenderzoomtubes.CheckOnClick = true;
|
||||||
|
this.itemrenderzoomtubes.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.itemrenderzoomtubes.Image = global::CodeImp.DoomBuilder.Properties.Resources.zoomtube;
|
||||||
|
this.itemrenderzoomtubes.Name = "itemrenderzoomtubes";
|
||||||
|
this.itemrenderzoomtubes.Size = new System.Drawing.Size(215, 22);
|
||||||
|
this.itemrenderzoomtubes.Tag = "builder_togglezoomtubes";
|
||||||
|
this.itemrenderzoomtubes.Text = "Show Zoom Tube Waypoint Paths";
|
||||||
|
this.itemrenderzoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
//
|
||||||
|
// itemrenderpolypreview
|
||||||
|
//
|
||||||
|
this.itemrenderpolypreview.Checked = true;
|
||||||
|
this.itemrenderpolypreview.CheckOnClick = true;
|
||||||
|
this.itemrenderpolypreview.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.itemrenderpolypreview.Image = global::CodeImp.DoomBuilder.Properties.Resources.polycenter;
|
||||||
|
this.itemrenderpolypreview.Name = "itemrenderpolypreview";
|
||||||
|
this.itemrenderpolypreview.Size = new System.Drawing.Size(215, 22);
|
||||||
|
this.itemrenderpolypreview.Tag = "builder_togglepolypreview";
|
||||||
|
this.itemrenderpolypreview.Text = "Show Polyobject Previews";
|
||||||
|
this.itemrenderpolypreview.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||||
|
//
|
||||||
|
// MainForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||||
this.ClientSize = new System.Drawing.Size(1012, 693);
|
this.ClientSize = new System.Drawing.Size(1012, 693);
|
||||||
this.Controls.Add(this.dockerspanel);
|
this.Controls.Add(this.dockerspanel);
|
||||||
|
@ -3071,8 +3131,12 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
private ToolStripButton buttontogglegrid;
|
private ToolStripButton buttontogglegrid;
|
||||||
private ToolStripButton buttontoggledynamicgrid;
|
private ToolStripButton buttontoggledynamicgrid;
|
||||||
private ToolStripButton buttontogglenightspath;
|
private ToolStripButton buttontogglenightspath;
|
||||||
private ToolStripMenuItem itemdynamicgridsize;
|
private ToolStripButton buttontogglezoomtubes;
|
||||||
|
private ToolStripButton buttontogglepolypreview;
|
||||||
|
private ToolStripMenuItem itemdynamicgridsize;
|
||||||
private ToolStripMenuItem itemrendernightspath;
|
private ToolStripMenuItem itemrendernightspath;
|
||||||
|
private ToolStripMenuItem itemrenderzoomtubes;
|
||||||
|
private ToolStripMenuItem itemrenderpolypreview;
|
||||||
private ToolStripMenuItem itemtogglecomments;
|
private ToolStripMenuItem itemtogglecomments;
|
||||||
private ToolStripMenuItem itemtogglefixedthingsscale;
|
private ToolStripMenuItem itemtogglefixedthingsscale;
|
||||||
private ToolStripMenuItem itemdosnapto1mp;
|
private ToolStripMenuItem itemdosnapto1mp;
|
||||||
|
|
|
@ -2034,7 +2034,11 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
buttontogglegrid.Checked = General.Settings.RenderGrid; //mxd
|
buttontogglegrid.Checked = General.Settings.RenderGrid; //mxd
|
||||||
itemrendernightspath.Visible = maploaded && General.Map.SRB2;
|
itemrendernightspath.Visible = maploaded && General.Map.SRB2;
|
||||||
itemrendernightspath.Checked = General.Settings.RenderNiGHTSPath;
|
itemrendernightspath.Checked = General.Settings.RenderNiGHTSPath;
|
||||||
buttontogglecomments.Visible = General.Settings.ToolbarViewModes && maploaded && General.Map.UDMF; //mxd
|
itemrenderzoomtubes.Visible = maploaded && General.Map.SRB2;
|
||||||
|
itemrenderzoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||||
|
itemrenderpolypreview.Visible = maploaded && General.Map.SRB2;
|
||||||
|
itemrenderpolypreview.Checked = General.Settings.RenderPolyPreview;
|
||||||
|
buttontogglecomments.Visible = General.Settings.ToolbarViewModes && maploaded && General.Map.UDMF; //mxd
|
||||||
buttontogglecomments.Checked = General.Settings.RenderComments; //mxd
|
buttontogglecomments.Checked = General.Settings.RenderComments; //mxd
|
||||||
buttontogglefixedthingsscale.Visible = General.Settings.ToolbarViewModes && maploaded; //mxd
|
buttontogglefixedthingsscale.Visible = General.Settings.ToolbarViewModes && maploaded; //mxd
|
||||||
buttontogglefixedthingsscale.Checked = General.Settings.FixedThingsScale; //mxd
|
buttontogglefixedthingsscale.Checked = General.Settings.FixedThingsScale; //mxd
|
||||||
|
@ -2052,7 +2056,11 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
buttontoggledynamicgrid.Checked = General.Settings.DynamicGridSize; //mxd
|
buttontoggledynamicgrid.Checked = General.Settings.DynamicGridSize; //mxd
|
||||||
buttontogglenightspath.Visible = maploaded && General.Map.SRB2;
|
buttontogglenightspath.Visible = maploaded && General.Map.SRB2;
|
||||||
buttontogglenightspath.Checked = General.Settings.RenderNiGHTSPath;
|
buttontogglenightspath.Checked = General.Settings.RenderNiGHTSPath;
|
||||||
buttonautomerge.Visible = General.Settings.ToolbarGeometry && maploaded;
|
buttontogglezoomtubes.Visible = maploaded && General.Map.SRB2;
|
||||||
|
buttontogglezoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||||
|
buttontogglepolypreview.Visible = maploaded && General.Map.SRB2;
|
||||||
|
buttontogglepolypreview.Checked = General.Settings.RenderPolyPreview;
|
||||||
|
buttonautomerge.Visible = General.Settings.ToolbarGeometry && maploaded;
|
||||||
buttonsplitjoinedsectors.Visible = General.Settings.ToolbarGeometry && maploaded; //mxd
|
buttonsplitjoinedsectors.Visible = General.Settings.ToolbarGeometry && maploaded; //mxd
|
||||||
buttonsplitjoinedsectors.Checked = General.Settings.SplitJoinedSectors; //mxd
|
buttonsplitjoinedsectors.Checked = General.Settings.SplitJoinedSectors; //mxd
|
||||||
buttonautoclearsidetextures.Visible = General.Settings.ToolbarGeometry && maploaded; //mxd
|
buttonautoclearsidetextures.Visible = General.Settings.ToolbarGeometry && maploaded; //mxd
|
||||||
|
@ -2887,10 +2895,34 @@ namespace CodeImp.DoomBuilder.Windows
|
||||||
|
|
||||||
// Redraw display to show changes
|
// Redraw display to show changes
|
||||||
General.Interface.RedrawDisplay();
|
General.Interface.RedrawDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
//mxd
|
[BeginAction("togglezoomtubes")]
|
||||||
[BeginAction("toggledynamicgrid")]
|
protected void ToggleZoomtubes()
|
||||||
|
{
|
||||||
|
General.Settings.RenderZoomtubes = !General.Settings.RenderZoomtubes;
|
||||||
|
itemrenderzoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||||
|
buttontogglezoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||||
|
General.Interface.DisplayStatus(StatusType.Action, "Zoom tube waypoint path rendering is " + (General.Settings.RenderZoomtubes ? "ENABLED" : "DISABLED"));
|
||||||
|
|
||||||
|
// Redraw display to show changes
|
||||||
|
General.Interface.RedrawDisplay();
|
||||||
|
}
|
||||||
|
|
||||||
|
[BeginAction("togglepolypreview")]
|
||||||
|
protected void TogglePolyPreview()
|
||||||
|
{
|
||||||
|
General.Settings.RenderPolyPreview = !General.Settings.RenderPolyPreview;
|
||||||
|
itemrenderpolypreview.Checked = General.Settings.RenderPolyPreview;
|
||||||
|
buttontogglepolypreview.Checked = General.Settings.RenderPolyPreview;
|
||||||
|
General.Interface.DisplayStatus(StatusType.Action, "Polyobject previews are " + (General.Settings.RenderPolyPreview ? "ENABLED" : "DISABLED"));
|
||||||
|
|
||||||
|
// Redraw display to show changes
|
||||||
|
General.Interface.RedrawDisplay();
|
||||||
|
}
|
||||||
|
|
||||||
|
//mxd
|
||||||
|
[BeginAction("toggledynamicgrid")]
|
||||||
protected void ToggleDynamicGrid()
|
protected void ToggleDynamicGrid()
|
||||||
{
|
{
|
||||||
General.Settings.DynamicGridSize = !General.Settings.DynamicGridSize;
|
General.Settings.DynamicGridSize = !General.Settings.DynamicGridSize;
|
||||||
|
|
|
@ -373,7 +373,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.ClassicModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -340,7 +340,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
|
|
||||||
// Draw the dragged item highlighted
|
// Draw the dragged item highlighted
|
||||||
// This is important to know, because this item is used
|
// This is important to know, because this item is used
|
||||||
|
|
|
@ -118,7 +118,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(unselectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(selectedthings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -876,7 +876,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1796,7 +1796,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
if(highlighted is Thing) renderer.RenderThing((Thing)highlighted, General.Colors.Highlight, General.Settings.ActiveThingsAlpha);
|
if(highlighted is Thing) renderer.RenderThing((Thing)highlighted, General.Colors.Highlight, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
//foreach(ErrorResult result in selection) result.RenderThingsSelection(renderer); //mxd
|
//foreach(ErrorResult result in selection) result.RenderThingsSelection(renderer); //mxd
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.Map.Things, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
if (BuilderPlug.Me.FindReplaceForm.Finder != null)
|
if (BuilderPlug.Me.FindReplaceForm.Finder != null)
|
||||||
BuilderPlug.Me.FindReplaceForm.Finder.RenderThingsSelection(renderer, selection);
|
BuilderPlug.Me.FindReplaceForm.Finder.RenderThingsSelection(renderer, selection);
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
|
|
|
@ -877,7 +877,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -677,7 +677,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -344,7 +344,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -386,7 +386,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if (renderer.StartThings(true))
|
if (renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -358,7 +358,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if (renderer.StartThings(true))
|
if (renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -417,7 +417,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if (renderer.StartThings(true))
|
if (renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -931,7 +931,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
float alpha = (General.Settings.FixedThingsScale ? Presentation.THINGS_ALPHA : General.Settings.ActiveThingsAlpha); //mxd
|
float alpha = (General.Settings.FixedThingsScale ? Presentation.THINGS_ALPHA : General.Settings.ActiveThingsAlpha); //mxd
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, alpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, alpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
|
|
||||||
if((highlighted != null) && !highlighted.IsDisposed)
|
if((highlighted != null) && !highlighted.IsDisposed)
|
||||||
{
|
{
|
||||||
|
|
|
@ -460,7 +460,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -875,7 +875,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if(renderer.StartThings(true))
|
if(renderer.StartThings(true))
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
renderer.RenderThingSet(General.Map.Map.Things, Presentation.THINGS_ALPHA);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.ActiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
renderer.Finish();
|
renderer.Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.InactiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.InactiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
|
|
||||||
lock (BuilderPlug.Me.SoundEnvironments)
|
lock (BuilderPlug.Me.SoundEnvironments)
|
||||||
{
|
{
|
||||||
|
|
|
@ -278,7 +278,7 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
|
||||||
{
|
{
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.HiddenThings, General.Settings.HiddenThingsAlpha);
|
||||||
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.InactiveThingsAlpha);
|
renderer.RenderThingSet(General.Map.ThingsFilter.VisibleThings, General.Settings.InactiveThingsAlpha);
|
||||||
renderer.RenderNiGHTSPath();
|
renderer.RenderSRB2Extras();
|
||||||
foreach (Thing thing in huntingThings)
|
foreach (Thing thing in huntingThings)
|
||||||
{
|
{
|
||||||
renderer.RenderThing(thing, General.Colors.Selection, General.Settings.ActiveThingsAlpha);
|
renderer.RenderThing(thing, General.Colors.Selection, General.Settings.ActiveThingsAlpha);
|
||||||
|
|
Loading…
Reference in a new issue