mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
lot more.
This commit is contained in:
parent
5f74778193
commit
947bdb59e9
95 changed files with 2682 additions and 220 deletions
|
@ -52,6 +52,7 @@
|
|||
<Compile Include="Data\DirectoryReader.cs" />
|
||||
<Compile Include="Data\FileImage.cs" />
|
||||
<Compile Include="Data\FlatImage.cs" />
|
||||
<Compile Include="Data\NullImage.cs" />
|
||||
<Compile Include="Data\PatchNames.cs" />
|
||||
<Compile Include="Data\Playpal.cs" />
|
||||
<Compile Include="Data\ResourceImage.cs" />
|
||||
|
@ -102,6 +103,12 @@
|
|||
<Compile Include="Interface\DelayedForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Interface\LinedefInfoPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Interface\LinedefInfoPanel.Designer.cs">
|
||||
<DependentUpon>LinedefInfoPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Interface\MapOptionsForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -138,6 +145,24 @@
|
|||
<Compile Include="Interface\ResourceOptionsForm.Designer.cs">
|
||||
<DependentUpon>ResourceOptionsForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Interface\SectorInfoPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Interface\SectorInfoPanel.Designer.cs">
|
||||
<DependentUpon>SectorInfoPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Interface\ThingInfoPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Interface\ThingInfoPanel.Designer.cs">
|
||||
<DependentUpon>ThingInfoPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Interface\VertexInfoPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Interface\VertexInfoPanel.Designer.cs">
|
||||
<DependentUpon>VertexInfoPanel.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="IO\Configuration.cs" />
|
||||
<Compile Include="General\General.cs" />
|
||||
<Compile Include="IO\ClippedStream.cs" />
|
||||
|
@ -186,8 +211,10 @@
|
|||
<ItemGroup>
|
||||
<Reference Include="SlimDX, Version=1.0.2851.40166, Culture=neutral, processorArchitecture=x86" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Interface\AboutForm.resx">
|
||||
|
@ -244,6 +271,10 @@
|
|||
<SubType>Designer</SubType>
|
||||
<DependentUpon>DelayedForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Interface\LinedefInfoPanel.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>LinedefInfoPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Interface\PreferencesForm.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>PreferencesForm.cs</DependentUpon>
|
||||
|
@ -252,6 +283,18 @@
|
|||
<SubType>Designer</SubType>
|
||||
<DependentUpon>ResourceListEditor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Interface\SectorInfoPanel.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>SectorInfoPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Interface\ThingInfoPanel.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>ThingInfoPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Interface\VertexInfoPanel.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>VertexInfoPanel.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Resources\Actions.cfg" />
|
||||
<EmbeddedResource Include="Resources\display2d.fx" />
|
||||
<EmbeddedResource Include="Resources\Thing2D.png" />
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Diagnostics;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class CompilerInfo
|
||||
public class CompilerInfo
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class ConfigurationInfo : IComparable<ConfigurationInfo>
|
||||
public class ConfigurationInfo : IComparable<ConfigurationInfo>
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class GameConfiguration
|
||||
public class GameConfiguration
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -125,18 +125,18 @@ namespace CodeImp.DoomBuilder.Config
|
|||
public IDictionary ReadSetting(string setting, IDictionary defaultsetting) { return cfg.ReadSetting(setting, defaultsetting); }
|
||||
|
||||
// This gets thing information by index
|
||||
public ThingTypeInfo GetThingInfo(int index)
|
||||
public ThingTypeInfo GetThingInfo(int thingtype)
|
||||
{
|
||||
// Index in config?
|
||||
if(things.ContainsKey(index))
|
||||
if(things.ContainsKey(thingtype))
|
||||
{
|
||||
// Return from config
|
||||
return things[index];
|
||||
return things[thingtype];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Create unknown thing info
|
||||
return new ThingTypeInfo(index);
|
||||
return new ThingTypeInfo(thingtype);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class NodebuilderInfo : IComparable<NodebuilderInfo>
|
||||
public class NodebuilderInfo : IComparable<NodebuilderInfo>
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ using CodeImp.DoomBuilder.Rendering;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class ThingCategory : IDisposable
|
||||
public class ThingCategory : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Config
|
||||
{
|
||||
internal class ThingTypeInfo
|
||||
public class ThingTypeInfo
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Controls
|
||||
{
|
||||
internal class Action
|
||||
public class Action
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ using System.Reflection;
|
|||
namespace CodeImp.DoomBuilder.Controls
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, Inherited=true, AllowMultiple=true)]
|
||||
internal class ActionAttribute : Attribute
|
||||
public class ActionAttribute : Attribute
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -26,5 +26,5 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Controls
|
||||
{
|
||||
internal delegate void ActionDelegate();
|
||||
public delegate void ActionDelegate();
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Collections;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Controls
|
||||
{
|
||||
internal class ActionManager : IDisposable
|
||||
public class ActionManager : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Controls
|
||||
{
|
||||
internal struct KeyControl
|
||||
public struct KeyControl
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal struct DataLocation : IComparable<DataLocation>, IComparable, IEquatable<DataLocation>
|
||||
public struct DataLocation : IComparable<DataLocation>, IComparable, IEquatable<DataLocation>
|
||||
{
|
||||
// Constants
|
||||
public const int RESOURCE_WAD = 0;
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Collections.Specialized;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class DataLocationList : List<DataLocation>
|
||||
public sealed class DataLocationList : List<DataLocation>
|
||||
{
|
||||
#region ================== Constructors
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Windows.Forms;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class DataManager : IDisposable
|
||||
public sealed class DataManager : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -282,6 +282,86 @@ namespace CodeImp.DoomBuilder.Data
|
|||
return null;
|
||||
}
|
||||
|
||||
// This returns a texture by string
|
||||
public ImageData GetTextureByName(string name)
|
||||
{
|
||||
// Get the long name
|
||||
long longname = Lump.MakeLongName(name);
|
||||
return GetTextureByLongName(longname);
|
||||
}
|
||||
|
||||
// This returns a texture by long
|
||||
public ImageData GetTextureByLongName(long longname)
|
||||
{
|
||||
// Does this texture exist?
|
||||
if(textures.ContainsKey(longname))
|
||||
{
|
||||
// Return texture
|
||||
return textures[longname];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return null image
|
||||
return new NullImage();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Flats
|
||||
|
||||
// This returns a flat by string
|
||||
public ImageData GetFlatByName(string name)
|
||||
{
|
||||
// Get the long name
|
||||
long longname = Lump.MakeLongName(name);
|
||||
return GetFlatByLongName(longname);
|
||||
}
|
||||
|
||||
// This returns a flat by long
|
||||
public ImageData GetFlatByLongName(long longname)
|
||||
{
|
||||
// Does this flat exist?
|
||||
if(flats.ContainsKey(longname))
|
||||
{
|
||||
// Return flat
|
||||
return flats[longname];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return null image
|
||||
return new NullImage();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Sprites
|
||||
|
||||
// This returns a sprite by string
|
||||
public ImageData GetSpriteByName(string name)
|
||||
{
|
||||
// Get the long name
|
||||
long longname = Lump.MakeLongName(name);
|
||||
return GetSpriteByLongName(longname);
|
||||
}
|
||||
|
||||
// This returns a sprite by long
|
||||
public ImageData GetSpriteByLongName(long longname)
|
||||
{
|
||||
// Does this sprite exist?
|
||||
if(sprites.ContainsKey(longname))
|
||||
{
|
||||
// Return sprite
|
||||
return sprites[longname];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return null image
|
||||
return new NullImage();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ using CodeImp.DoomBuilder.Rendering;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal abstract class DataReader : IDisposable
|
||||
public abstract class DataReader : IDisposable
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using CodeImp.DoomBuilder.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class DirectoryReader : DataReader
|
||||
public sealed class DirectoryReader : DataReader
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class FileImage : ImageData
|
||||
public sealed class FileImage : ImageData
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class FlatImage : ImageData
|
||||
public sealed class FlatImage : ImageData
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal abstract unsafe class ImageData : IDisposable
|
||||
public abstract unsafe class ImageData : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -126,7 +126,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
}
|
||||
|
||||
// This creates the 2D pixel data
|
||||
public void CreatePixelData()
|
||||
public virtual void CreatePixelData()
|
||||
{
|
||||
BitmapData bmpdata;
|
||||
|
||||
|
@ -148,7 +148,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
}
|
||||
|
||||
// This creates the Direct3D texture
|
||||
public void CreateTexture()
|
||||
public virtual void CreateTexture()
|
||||
{
|
||||
MemoryStream memstream;
|
||||
|
||||
|
|
61
Source/Data/NullImage.cs
Normal file
61
Source/Data/NullImage.cs
Normal file
|
@ -0,0 +1,61 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using CodeImp.DoomBuilder.Rendering;
|
||||
using CodeImp.DoomBuilder.IO;
|
||||
using System.IO;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
public sealed class NullImage : ImageData
|
||||
{
|
||||
#region ================== Constructor / Disposer
|
||||
|
||||
// Constructor
|
||||
public NullImage()
|
||||
{
|
||||
// Initialize
|
||||
this.width = 0;
|
||||
this.height = 0;
|
||||
SetName("");
|
||||
|
||||
// We have no destructor
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Methods
|
||||
|
||||
// Dont do anything
|
||||
public override void LoadImage() { }
|
||||
public override void CreatePixelData() { }
|
||||
public override void CreateTexture() { }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -28,7 +28,7 @@ using CodeImp.DoomBuilder.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class PatchNames
|
||||
public sealed class PatchNames
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ using CodeImp.DoomBuilder.Rendering;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class Playpal
|
||||
public sealed class Playpal
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal class ResourceImage : ImageData
|
||||
public class ResourceImage : ImageData
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class SpriteImage : ImageData
|
||||
public sealed class SpriteImage : ImageData
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed unsafe class TextureImage : ImageData
|
||||
public sealed unsafe class TextureImage : ImageData
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using CodeImp.DoomBuilder.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal struct TexturePatch
|
||||
public struct TexturePatch
|
||||
{
|
||||
public string lumpname;
|
||||
public int x;
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal enum TexturePatchFormat : int
|
||||
public enum TexturePatchFormat : int
|
||||
{
|
||||
Unknown = 0, // Not determined yet
|
||||
Invalid = 1, // Considered invalid
|
||||
|
|
|
@ -30,7 +30,7 @@ using CodeImp.DoomBuilder.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Data
|
||||
{
|
||||
internal sealed class WADReader : DataReader
|
||||
public sealed class WADReader : DataReader
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -154,7 +154,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
bool strifedata;
|
||||
|
||||
// Determine default scale
|
||||
defaultscale = General.Map.Configuration.DefaultTextureScale;
|
||||
defaultscale = General.Map.Config.DefaultTextureScale;
|
||||
|
||||
// Get number of textures
|
||||
texturedata.Seek(0, SeekOrigin.Begin);
|
||||
|
|
|
@ -36,7 +36,7 @@ using System.Drawing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal abstract class ClassicMode : EditMode
|
||||
public abstract class ClassicMode : EditMode
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ using CodeImp.DoomBuilder.Controls;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal abstract class EditMode : IDisposable
|
||||
public abstract class EditMode : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal class LinedefsMode : ClassicMode
|
||||
public class LinedefsMode : ClassicMode
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -91,7 +91,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
{
|
||||
base.Disengage();
|
||||
|
||||
// Check linedefs button on main window
|
||||
// Hide highlight info
|
||||
General.MainWindow.HideInfo();
|
||||
|
||||
// Uncheck linedefs button on main window
|
||||
General.MainWindow.SetLinedefsChecked(false);
|
||||
}
|
||||
|
||||
|
@ -148,6 +151,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Done
|
||||
renderer.FinishRendering();
|
||||
}
|
||||
|
||||
// Show highlight info
|
||||
if(highlighted != null) General.MainWindow.ShowLinedefInfo(highlighted);
|
||||
else General.MainWindow.HideInfo();
|
||||
}
|
||||
|
||||
// Mouse moves
|
||||
|
|
|
@ -34,7 +34,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal class SectorsMode : ClassicMode
|
||||
public class SectorsMode : ClassicMode
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -89,7 +89,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
{
|
||||
base.Disengage();
|
||||
|
||||
// Check sectors button on main window
|
||||
// Hide highlight info
|
||||
General.MainWindow.HideInfo();
|
||||
|
||||
// Uncheck sectors button on main window
|
||||
General.MainWindow.SetSectorsChecked(false);
|
||||
}
|
||||
|
||||
|
@ -126,6 +129,13 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
if(highlighted != null)
|
||||
renderer.RenderSector(highlighted);
|
||||
|
||||
/*
|
||||
// Undraw highlighted things
|
||||
if(highlighted != null)
|
||||
foreach(Thing t in highlighted.Things)
|
||||
renderer.RenderThing(t, renderer.DetermineThingColor(t));
|
||||
*/
|
||||
|
||||
// Set new highlight
|
||||
highlighted = s;
|
||||
|
||||
|
@ -133,9 +143,20 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
if(highlighted != null)
|
||||
renderer.RenderSector(highlighted, General.Colors.Highlight);
|
||||
|
||||
/*
|
||||
// Render highlighted things
|
||||
if(highlighted != null)
|
||||
foreach(Thing t in highlighted.Things)
|
||||
renderer.RenderThing(t, General.Colors.Highlight);
|
||||
*/
|
||||
|
||||
// Done
|
||||
renderer.FinishRendering();
|
||||
}
|
||||
|
||||
// Show highlight info
|
||||
if(highlighted != null) General.MainWindow.ShowSectorInfo(highlighted);
|
||||
else General.MainWindow.HideInfo();
|
||||
}
|
||||
|
||||
// Mouse moves
|
||||
|
|
|
@ -34,7 +34,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal class ThingsMode : ClassicMode
|
||||
public class ThingsMode : ClassicMode
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -91,7 +91,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
{
|
||||
base.Disengage();
|
||||
|
||||
// Check things button on main window
|
||||
// Hide highlight info
|
||||
General.MainWindow.HideInfo();
|
||||
|
||||
// Uncheck things button on main window
|
||||
General.MainWindow.SetThingsChecked(false);
|
||||
}
|
||||
|
||||
|
@ -138,6 +141,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Done
|
||||
renderer.FinishRendering();
|
||||
}
|
||||
|
||||
// Show highlight info
|
||||
if(highlighted != null) General.MainWindow.ShowThingInfo(highlighted);
|
||||
else General.MainWindow.HideInfo();
|
||||
}
|
||||
|
||||
// Mouse moves
|
||||
|
|
|
@ -34,7 +34,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Editing
|
||||
{
|
||||
internal class VerticesMode : ClassicMode
|
||||
public class VerticesMode : ClassicMode
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -90,8 +90,11 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
public override void Disengage()
|
||||
{
|
||||
base.Disengage();
|
||||
|
||||
// Hide highlight info
|
||||
General.MainWindow.HideInfo();
|
||||
|
||||
// Check vertices button on main window
|
||||
// Uncheck vertices button on main window
|
||||
General.MainWindow.SetVerticesChecked(false);
|
||||
}
|
||||
|
||||
|
@ -138,6 +141,10 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
// Done
|
||||
renderer.FinishRendering();
|
||||
}
|
||||
|
||||
// Show highlight info
|
||||
if(highlighted != null) General.MainWindow.ShowVertexInfo(highlighted);
|
||||
else General.MainWindow.HideInfo();
|
||||
}
|
||||
|
||||
// Mouse moves
|
||||
|
|
|
@ -38,7 +38,7 @@ using CodeImp.DoomBuilder.Config;
|
|||
|
||||
namespace CodeImp.DoomBuilder
|
||||
{
|
||||
internal static class General
|
||||
public static class General
|
||||
{
|
||||
#region ================== API Declarations
|
||||
|
||||
|
@ -49,14 +49,14 @@ namespace CodeImp.DoomBuilder
|
|||
public static extern void ZeroMemory(IntPtr dest, int size);
|
||||
|
||||
[DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory", SetLastError = false)]
|
||||
internal static extern unsafe void CopyMemory(void* dst, void* src, UIntPtr length);
|
||||
public static extern unsafe void CopyMemory(void* dst, void* src, UIntPtr length);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
internal static unsafe extern void* VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, uint flAllocationType, uint flProtect);
|
||||
public static unsafe extern void* VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, uint flAllocationType, uint flProtect);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
internal static unsafe extern bool VirtualFree(void* lpAddress, UIntPtr dwSize, uint dwFreeType);
|
||||
public static unsafe extern bool VirtualFree(void* lpAddress, UIntPtr dwSize, uint dwFreeType);
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ using CodeImp.DoomBuilder.Config;
|
|||
|
||||
namespace CodeImp.DoomBuilder
|
||||
{
|
||||
internal class MapManager : IDisposable
|
||||
public class MapManager : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -92,7 +92,7 @@ namespace CodeImp.DoomBuilder
|
|||
public bool IsChanged { get { return changed; } set { changed |= value; } }
|
||||
public bool IsDisposed { get { return isdisposed; } }
|
||||
public D3DGraphics Graphics { get { return graphics; } }
|
||||
public GameConfiguration Configuration { get { return config; } }
|
||||
public GameConfiguration Config { get { return config; } }
|
||||
public MapSelection Selection { get { return selection; } }
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal class ClippedStream : Stream
|
||||
public class ClippedStream : Stream
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ using System.Collections.Specialized;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal sealed class Configuration
|
||||
public sealed class Configuration
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal class DoomMapSetIO : MapSetIO
|
||||
public class DoomMapSetIO : MapSetIO
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -111,7 +111,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
|
||||
// Create new item
|
||||
t = map.CreateThing();
|
||||
t.Update(type, new Vector3D(x, y, 0f), angle, flags, 0, 0, Thing.EMPTY_ARGS);
|
||||
t.Update(type, x, y, 0, angle, flags, 0, 0, Thing.EMPTY_ARGS);
|
||||
t.DetermineSector();
|
||||
t.UpdateConfiguration();
|
||||
}
|
||||
|
@ -256,6 +256,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
// Create new item
|
||||
l = map.CreateLinedef(vertexlink[v1], vertexlink[v2]);
|
||||
l.Update(flags, tag, action, Linedef.EMPTY_ARGS);
|
||||
l.Update();
|
||||
|
||||
// Line has a front side?
|
||||
if(s1 != ushort.MaxValue)
|
||||
|
@ -265,8 +266,8 @@ namespace CodeImp.DoomBuilder.IO
|
|||
offsetx = readside.ReadInt16();
|
||||
offsety = readside.ReadInt16();
|
||||
thigh = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tmid = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tlow = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tmid = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
sc = readside.ReadUInt16();
|
||||
|
||||
// Create front sidedef
|
||||
|
@ -282,8 +283,8 @@ namespace CodeImp.DoomBuilder.IO
|
|||
offsetx = readside.ReadInt16();
|
||||
offsety = readside.ReadInt16();
|
||||
thigh = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tmid = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tlow = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
tmid = Lump.MakeNormalName(readside.ReadBytes(8), WAD.ENCODING);
|
||||
sc = readside.ReadUInt16();
|
||||
|
||||
// Create back sidedef
|
||||
|
@ -315,11 +316,11 @@ namespace CodeImp.DoomBuilder.IO
|
|||
|
||||
// Write lumps to wad (note the backwards order because they
|
||||
// are all inserted at position+1 when not found)
|
||||
WriteSectors(map, position, manager.Configuration.MapLumpNames);
|
||||
WriteVertices(map, position, manager.Configuration.MapLumpNames);
|
||||
WriteSidedefs(map, position, manager.Configuration.MapLumpNames, sectorids);
|
||||
WriteLinedefs(map, position, manager.Configuration.MapLumpNames, sidedefids, vertexids);
|
||||
WriteThings(map, position, manager.Configuration.MapLumpNames);
|
||||
WriteSectors(map, position, manager.Config.MapLumpNames);
|
||||
WriteVertices(map, position, manager.Config.MapLumpNames);
|
||||
WriteSidedefs(map, position, manager.Config.MapLumpNames, sectorids);
|
||||
WriteLinedefs(map, position, manager.Config.MapLumpNames, sidedefids, vertexids);
|
||||
WriteThings(map, position, manager.Config.MapLumpNames);
|
||||
}
|
||||
|
||||
// This writes the THINGS to WAD file
|
||||
|
@ -488,7 +489,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
writer.Write(Lump.MakeFixedName(s.FloorTexture, WAD.ENCODING));
|
||||
writer.Write(Lump.MakeFixedName(s.CeilTexture, WAD.ENCODING));
|
||||
writer.Write((Int16)s.Brightness);
|
||||
writer.Write((UInt16)s.Special);
|
||||
writer.Write((UInt16)s.Effect);
|
||||
writer.Write((UInt16)s.Tag);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal unsafe class DoomPictureReader
|
||||
public unsafe class DoomPictureReader
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal class Lump : IDisposable
|
||||
public class Lump : IDisposable
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Diagnostics;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal abstract class MapSetIO
|
||||
public abstract class MapSetIO
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.IO;
|
|||
|
||||
namespace CodeImp.DoomBuilder.IO
|
||||
{
|
||||
internal class WAD : IDisposable
|
||||
public class WAD : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
3
Source/Interface/AboutForm.Designer.cs
generated
3
Source/Interface/AboutForm.Designer.cs
generated
|
@ -79,8 +79,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// AboutForm
|
||||
//
|
||||
this.AcceptButton = this.close;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.close;
|
||||
this.ClientSize = new System.Drawing.Size(518, 104);
|
||||
this.Controls.Add(this.builderlink);
|
||||
|
|
1
Source/Interface/ColorControl.Designer.cs
generated
1
Source/Interface/ColorControl.Designer.cs
generated
|
@ -79,6 +79,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.Controls.Add(this.button);
|
||||
this.Controls.Add(this.panel);
|
||||
this.Controls.Add(this.label);
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
this.MinimumSize = new System.Drawing.Size(100, 23);
|
||||
this.Name = "ColorControl";
|
||||
|
|
|
@ -1,11 +1,33 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using CodeImp.DoomBuilder.Config;
|
||||
using CodeImp.DoomBuilder.Rendering;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class ColorControl : UserControl
|
||||
|
|
3
Source/Interface/ConfigForm.Designer.cs
generated
3
Source/Interface/ConfigForm.Designer.cs
generated
|
@ -394,8 +394,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// ConfigForm
|
||||
//
|
||||
this.AcceptButton = this.apply;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.cancel;
|
||||
this.ClientSize = new System.Drawing.Size(697, 416);
|
||||
this.Controls.Add(this.listconfigs);
|
||||
|
|
393
Source/Interface/LinedefInfoPanel.Designer.cs
generated
Normal file
393
Source/Interface/LinedefInfoPanel.Designer.cs
generated
Normal file
|
@ -0,0 +1,393 @@
|
|||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
partial class LinedefInfoPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if(disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.Label label1;
|
||||
System.Windows.Forms.GroupBox groupBox1;
|
||||
System.Windows.Forms.Label label13;
|
||||
System.Windows.Forms.Label label5;
|
||||
System.Windows.Forms.Label label4;
|
||||
System.Windows.Forms.Label label3;
|
||||
System.Windows.Forms.Label label2;
|
||||
this.backoffset = new System.Windows.Forms.Label();
|
||||
this.frontoffset = new System.Windows.Forms.Label();
|
||||
this.tag = new System.Windows.Forms.Label();
|
||||
this.angle = new System.Windows.Forms.Label();
|
||||
this.length = new System.Windows.Forms.Label();
|
||||
this.action = new System.Windows.Forms.Label();
|
||||
this.frontpanel = new System.Windows.Forms.GroupBox();
|
||||
this.frontlowname = new System.Windows.Forms.Label();
|
||||
this.frontlowtex = new System.Windows.Forms.Panel();
|
||||
this.frontmidname = new System.Windows.Forms.Label();
|
||||
this.frontmidtex = new System.Windows.Forms.Panel();
|
||||
this.fronthighname = new System.Windows.Forms.Label();
|
||||
this.fronthightex = new System.Windows.Forms.Panel();
|
||||
this.backpanel = new System.Windows.Forms.GroupBox();
|
||||
this.backlowname = new System.Windows.Forms.Label();
|
||||
this.backlowtex = new System.Windows.Forms.Panel();
|
||||
this.backmidname = new System.Windows.Forms.Label();
|
||||
this.backmidtex = new System.Windows.Forms.Panel();
|
||||
this.backhighname = new System.Windows.Forms.Label();
|
||||
this.backhightex = new System.Windows.Forms.Panel();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
label13 = new System.Windows.Forms.Label();
|
||||
label5 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
label3 = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
groupBox1.SuspendLayout();
|
||||
this.frontpanel.SuspendLayout();
|
||||
this.backpanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(11, 19);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(41, 14);
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "Action:";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
groupBox1.Controls.Add(this.backoffset);
|
||||
groupBox1.Controls.Add(label13);
|
||||
groupBox1.Controls.Add(this.frontoffset);
|
||||
groupBox1.Controls.Add(label5);
|
||||
groupBox1.Controls.Add(this.tag);
|
||||
groupBox1.Controls.Add(this.angle);
|
||||
groupBox1.Controls.Add(this.length);
|
||||
groupBox1.Controls.Add(label4);
|
||||
groupBox1.Controls.Add(label3);
|
||||
groupBox1.Controls.Add(label2);
|
||||
groupBox1.Controls.Add(this.action);
|
||||
groupBox1.Controls.Add(label1);
|
||||
groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
groupBox1.Name = "groupBox1";
|
||||
groupBox1.Size = new System.Drawing.Size(258, 100);
|
||||
groupBox1.TabIndex = 1;
|
||||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = " Linedef ";
|
||||
//
|
||||
// backoffset
|
||||
//
|
||||
this.backoffset.AutoSize = true;
|
||||
this.backoffset.Location = new System.Drawing.Point(180, 77);
|
||||
this.backoffset.Name = "backoffset";
|
||||
this.backoffset.Size = new System.Drawing.Size(49, 14);
|
||||
this.backoffset.TabIndex = 17;
|
||||
this.backoffset.Text = "100, 100";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
label13.AutoSize = true;
|
||||
label13.Location = new System.Drawing.Point(111, 77);
|
||||
label13.Name = "label13";
|
||||
label13.Size = new System.Drawing.Size(66, 14);
|
||||
label13.TabIndex = 14;
|
||||
label13.Text = "Back offset:";
|
||||
//
|
||||
// frontoffset
|
||||
//
|
||||
this.frontoffset.AutoSize = true;
|
||||
this.frontoffset.Location = new System.Drawing.Point(180, 58);
|
||||
this.frontoffset.Name = "frontoffset";
|
||||
this.frontoffset.Size = new System.Drawing.Size(49, 14);
|
||||
this.frontoffset.TabIndex = 11;
|
||||
this.frontoffset.Text = "100, 100";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
label5.AutoSize = true;
|
||||
label5.Location = new System.Drawing.Point(110, 58);
|
||||
label5.Name = "label5";
|
||||
label5.Size = new System.Drawing.Size(67, 14);
|
||||
label5.TabIndex = 8;
|
||||
label5.Text = "Front offset:";
|
||||
//
|
||||
// tag
|
||||
//
|
||||
this.tag.AutoSize = true;
|
||||
this.tag.Location = new System.Drawing.Point(55, 77);
|
||||
this.tag.Name = "tag";
|
||||
this.tag.Size = new System.Drawing.Size(13, 14);
|
||||
this.tag.TabIndex = 7;
|
||||
this.tag.Text = "0";
|
||||
//
|
||||
// angle
|
||||
//
|
||||
this.angle.AutoSize = true;
|
||||
this.angle.Location = new System.Drawing.Point(55, 58);
|
||||
this.angle.Name = "angle";
|
||||
this.angle.Size = new System.Drawing.Size(25, 14);
|
||||
this.angle.TabIndex = 6;
|
||||
this.angle.Text = "360";
|
||||
//
|
||||
// length
|
||||
//
|
||||
this.length.AutoSize = true;
|
||||
this.length.Location = new System.Drawing.Point(55, 39);
|
||||
this.length.Name = "length";
|
||||
this.length.Size = new System.Drawing.Size(31, 14);
|
||||
this.length.TabIndex = 5;
|
||||
this.length.Text = "1024";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new System.Drawing.Point(24, 77);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(28, 14);
|
||||
label4.TabIndex = 4;
|
||||
label4.Text = "Tag:";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(14, 58);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(38, 14);
|
||||
label3.TabIndex = 3;
|
||||
label3.Text = "Angle:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(9, 39);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(43, 14);
|
||||
label2.TabIndex = 2;
|
||||
label2.Text = "Length:";
|
||||
//
|
||||
// action
|
||||
//
|
||||
this.action.AutoSize = true;
|
||||
this.action.Location = new System.Drawing.Point(55, 19);
|
||||
this.action.Name = "action";
|
||||
this.action.Size = new System.Drawing.Size(190, 14);
|
||||
this.action.TabIndex = 1;
|
||||
this.action.Text = "0 - Big Door that goes Wobbly Wobbly";
|
||||
//
|
||||
// frontpanel
|
||||
//
|
||||
this.frontpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.frontpanel.Controls.Add(this.frontlowname);
|
||||
this.frontpanel.Controls.Add(this.frontlowtex);
|
||||
this.frontpanel.Controls.Add(this.frontmidname);
|
||||
this.frontpanel.Controls.Add(this.frontmidtex);
|
||||
this.frontpanel.Controls.Add(this.fronthighname);
|
||||
this.frontpanel.Controls.Add(this.fronthightex);
|
||||
this.frontpanel.Location = new System.Drawing.Point(264, 0);
|
||||
this.frontpanel.Name = "frontpanel";
|
||||
this.frontpanel.Size = new System.Drawing.Size(241, 100);
|
||||
this.frontpanel.TabIndex = 2;
|
||||
this.frontpanel.TabStop = false;
|
||||
this.frontpanel.Text = " Front ";
|
||||
//
|
||||
// frontlowname
|
||||
//
|
||||
this.frontlowname.Location = new System.Drawing.Point(159, 80);
|
||||
this.frontlowname.Name = "frontlowname";
|
||||
this.frontlowname.Size = new System.Drawing.Size(72, 13);
|
||||
this.frontlowname.TabIndex = 5;
|
||||
this.frontlowname.Text = "BIGDOOR6";
|
||||
this.frontlowname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// frontlowtex
|
||||
//
|
||||
this.frontlowtex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.frontlowtex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.frontlowtex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.frontlowtex.Location = new System.Drawing.Point(161, 19);
|
||||
this.frontlowtex.Name = "frontlowtex";
|
||||
this.frontlowtex.Size = new System.Drawing.Size(68, 60);
|
||||
this.frontlowtex.TabIndex = 4;
|
||||
//
|
||||
// frontmidname
|
||||
//
|
||||
this.frontmidname.Location = new System.Drawing.Point(85, 80);
|
||||
this.frontmidname.Name = "frontmidname";
|
||||
this.frontmidname.Size = new System.Drawing.Size(72, 13);
|
||||
this.frontmidname.TabIndex = 3;
|
||||
this.frontmidname.Text = "BIGDOOR6";
|
||||
this.frontmidname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// frontmidtex
|
||||
//
|
||||
this.frontmidtex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.frontmidtex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.frontmidtex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.frontmidtex.Location = new System.Drawing.Point(87, 19);
|
||||
this.frontmidtex.Name = "frontmidtex";
|
||||
this.frontmidtex.Size = new System.Drawing.Size(68, 60);
|
||||
this.frontmidtex.TabIndex = 2;
|
||||
//
|
||||
// fronthighname
|
||||
//
|
||||
this.fronthighname.Location = new System.Drawing.Point(11, 80);
|
||||
this.fronthighname.Name = "fronthighname";
|
||||
this.fronthighname.Size = new System.Drawing.Size(72, 13);
|
||||
this.fronthighname.TabIndex = 1;
|
||||
this.fronthighname.Text = "BIGDOOR6";
|
||||
this.fronthighname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// fronthightex
|
||||
//
|
||||
this.fronthightex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.fronthightex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.fronthightex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.fronthightex.Location = new System.Drawing.Point(13, 19);
|
||||
this.fronthightex.Name = "fronthightex";
|
||||
this.fronthightex.Size = new System.Drawing.Size(68, 60);
|
||||
this.fronthightex.TabIndex = 0;
|
||||
//
|
||||
// backpanel
|
||||
//
|
||||
this.backpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.backpanel.Controls.Add(this.backlowname);
|
||||
this.backpanel.Controls.Add(this.backlowtex);
|
||||
this.backpanel.Controls.Add(this.backmidname);
|
||||
this.backpanel.Controls.Add(this.backmidtex);
|
||||
this.backpanel.Controls.Add(this.backhighname);
|
||||
this.backpanel.Controls.Add(this.backhightex);
|
||||
this.backpanel.Location = new System.Drawing.Point(511, 0);
|
||||
this.backpanel.Name = "backpanel";
|
||||
this.backpanel.Size = new System.Drawing.Size(241, 100);
|
||||
this.backpanel.TabIndex = 3;
|
||||
this.backpanel.TabStop = false;
|
||||
this.backpanel.Text = " Back ";
|
||||
//
|
||||
// backlowname
|
||||
//
|
||||
this.backlowname.Location = new System.Drawing.Point(159, 80);
|
||||
this.backlowname.Name = "backlowname";
|
||||
this.backlowname.Size = new System.Drawing.Size(72, 13);
|
||||
this.backlowname.TabIndex = 5;
|
||||
this.backlowname.Text = "BIGDOOR6";
|
||||
this.backlowname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// backlowtex
|
||||
//
|
||||
this.backlowtex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.backlowtex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.backlowtex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.backlowtex.Location = new System.Drawing.Point(161, 19);
|
||||
this.backlowtex.Name = "backlowtex";
|
||||
this.backlowtex.Size = new System.Drawing.Size(68, 60);
|
||||
this.backlowtex.TabIndex = 4;
|
||||
//
|
||||
// backmidname
|
||||
//
|
||||
this.backmidname.Location = new System.Drawing.Point(85, 80);
|
||||
this.backmidname.Name = "backmidname";
|
||||
this.backmidname.Size = new System.Drawing.Size(72, 13);
|
||||
this.backmidname.TabIndex = 3;
|
||||
this.backmidname.Text = "BIGDOOR6";
|
||||
this.backmidname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// backmidtex
|
||||
//
|
||||
this.backmidtex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.backmidtex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.backmidtex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.backmidtex.Location = new System.Drawing.Point(87, 19);
|
||||
this.backmidtex.Name = "backmidtex";
|
||||
this.backmidtex.Size = new System.Drawing.Size(68, 60);
|
||||
this.backmidtex.TabIndex = 2;
|
||||
//
|
||||
// backhighname
|
||||
//
|
||||
this.backhighname.Location = new System.Drawing.Point(11, 80);
|
||||
this.backhighname.Name = "backhighname";
|
||||
this.backhighname.Size = new System.Drawing.Size(72, 13);
|
||||
this.backhighname.TabIndex = 1;
|
||||
this.backhighname.Text = "BIGDOOR6";
|
||||
this.backhighname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// backhightex
|
||||
//
|
||||
this.backhightex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.backhightex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.backhightex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.backhightex.Location = new System.Drawing.Point(13, 19);
|
||||
this.backhightex.Name = "backhightex";
|
||||
this.backhightex.Size = new System.Drawing.Size(68, 60);
|
||||
this.backhightex.TabIndex = 0;
|
||||
//
|
||||
// LinedefInfoPanel
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.backpanel);
|
||||
this.Controls.Add(this.frontpanel);
|
||||
this.Controls.Add(groupBox1);
|
||||
this.DoubleBuffered = true;
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.Name = "LinedefInfoPanel";
|
||||
this.Size = new System.Drawing.Size(770, 100);
|
||||
groupBox1.ResumeLayout(false);
|
||||
groupBox1.PerformLayout();
|
||||
this.frontpanel.ResumeLayout(false);
|
||||
this.backpanel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label action;
|
||||
private System.Windows.Forms.Label tag;
|
||||
private System.Windows.Forms.Label angle;
|
||||
private System.Windows.Forms.Label length;
|
||||
private System.Windows.Forms.Label frontoffset;
|
||||
private System.Windows.Forms.Label backoffset;
|
||||
private System.Windows.Forms.Panel fronthightex;
|
||||
private System.Windows.Forms.Label frontlowname;
|
||||
private System.Windows.Forms.Panel frontlowtex;
|
||||
private System.Windows.Forms.Label frontmidname;
|
||||
private System.Windows.Forms.Panel frontmidtex;
|
||||
private System.Windows.Forms.Label fronthighname;
|
||||
private System.Windows.Forms.Label backlowname;
|
||||
private System.Windows.Forms.Panel backlowtex;
|
||||
private System.Windows.Forms.Label backmidname;
|
||||
private System.Windows.Forms.Panel backmidtex;
|
||||
private System.Windows.Forms.Label backhighname;
|
||||
private System.Windows.Forms.Panel backhightex;
|
||||
private System.Windows.Forms.GroupBox frontpanel;
|
||||
private System.Windows.Forms.GroupBox backpanel;
|
||||
|
||||
}
|
||||
}
|
116
Source/Interface/LinedefInfoPanel.cs
Normal file
116
Source/Interface/LinedefInfoPanel.cs
Normal file
|
@ -0,0 +1,116 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using CodeImp.DoomBuilder.Data;
|
||||
using CodeImp.DoomBuilder.Map;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class LinedefInfoPanel : UserControl
|
||||
{
|
||||
// Constructor
|
||||
public LinedefInfoPanel()
|
||||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This shows the info
|
||||
public void ShowInfo(Linedef l)
|
||||
{
|
||||
// TODO: Get line action information
|
||||
|
||||
// Linedef info
|
||||
action.Text = l.Action.ToString();
|
||||
length.Text = l.Length.ToString("0.##");
|
||||
angle.Text = l.AngleDeg.ToString() + "\u00B0";
|
||||
tag.Text = l.Tag.ToString();
|
||||
frontoffset.Visible = (l.Front != null);
|
||||
backoffset.Visible = (l.Front != null);
|
||||
|
||||
// Front side available?
|
||||
if(l.Front != null)
|
||||
{
|
||||
// Show sidedef info
|
||||
frontoffset.Text = l.Front.OffsetX + ", " + l.Front.OffsetY;
|
||||
fronthighname.Text = l.Front.HighTexture;
|
||||
frontmidname.Text = l.Front.MiddleTexture;
|
||||
frontlowname.Text = l.Front.LowTexture;
|
||||
fronthightex.BackgroundImage = FindTexture(l.Front.HighTexture);
|
||||
frontmidtex.BackgroundImage = FindTexture(l.Front.MiddleTexture);
|
||||
frontlowtex.BackgroundImage = FindTexture(l.Front.LowTexture);
|
||||
}
|
||||
|
||||
// Back size available?
|
||||
if(l.Back != null)
|
||||
{
|
||||
// Show sidedef info
|
||||
backoffset.Text = l.Back.OffsetX + ", " + l.Back.OffsetY;
|
||||
backhighname.Text = l.Back.HighTexture;
|
||||
backmidname.Text = l.Back.MiddleTexture;
|
||||
backlowname.Text = l.Back.LowTexture;
|
||||
backhightex.BackgroundImage = FindTexture(l.Back.HighTexture);
|
||||
backmidtex.BackgroundImage = FindTexture(l.Back.MiddleTexture);
|
||||
backlowtex.BackgroundImage = FindTexture(l.Back.LowTexture);
|
||||
}
|
||||
|
||||
// Show panels
|
||||
frontpanel.Visible = (l.Front != null);
|
||||
backpanel.Visible = (l.Back != null);
|
||||
|
||||
// Show the whole thing
|
||||
this.Show();
|
||||
this.Update();
|
||||
}
|
||||
|
||||
// When visible changed
|
||||
protected override void OnVisibleChanged(EventArgs e)
|
||||
{
|
||||
// Hide panels
|
||||
if(!this.Visible)
|
||||
{
|
||||
frontpanel.Visible = false;
|
||||
backpanel.Visible = false;
|
||||
}
|
||||
|
||||
// Call base
|
||||
base.OnVisibleChanged(e);
|
||||
}
|
||||
|
||||
// This loads and returns the texture image if possible
|
||||
private Image FindTexture(string name)
|
||||
{
|
||||
ImageData img;
|
||||
|
||||
// Get it
|
||||
img = General.Map.Data.GetTextureByName(name);
|
||||
img.LoadImage();
|
||||
return img.Bitmap;
|
||||
}
|
||||
}
|
||||
}
|
225
Source/Interface/LinedefInfoPanel.resx
Normal file
225
Source/Interface/LinedefInfoPanel.resx
Normal file
|
@ -0,0 +1,225 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backoffset.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label13.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label13.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="frontoffset.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="tag.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="angle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="length.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="action.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="frontpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="frontlowname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="frontlowtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="frontmidname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="frontmidtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="fronthighname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="fronthightex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backlowname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backlowtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backmidname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backmidtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backhighname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="backhightex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
76
Source/Interface/MainForm.Designer.cs
generated
76
Source/Interface/MainForm.Designer.cs
generated
|
@ -87,6 +87,10 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.panelinfo = new System.Windows.Forms.Panel();
|
||||
this.redrawtimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.display = new CodeImp.DoomBuilder.Interface.RenderTargetControl();
|
||||
this.vertexinfo = new CodeImp.DoomBuilder.Interface.VertexInfoPanel();
|
||||
this.sectorinfo = new CodeImp.DoomBuilder.Interface.SectorInfoPanel();
|
||||
this.linedefinfo = new CodeImp.DoomBuilder.Interface.LinedefInfoPanel();
|
||||
this.thinginfo = new CodeImp.DoomBuilder.Interface.ThingInfoPanel();
|
||||
toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
|
@ -96,6 +100,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.menumain.SuspendLayout();
|
||||
this.toolbar.SuspendLayout();
|
||||
this.statusbar.SuspendLayout();
|
||||
this.panelinfo.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.display)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -140,7 +145,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.menuhelp});
|
||||
this.menumain.Location = new System.Drawing.Point(0, 0);
|
||||
this.menumain.Name = "menumain";
|
||||
this.menumain.Size = new System.Drawing.Size(731, 24);
|
||||
this.menumain.Size = new System.Drawing.Size(839, 24);
|
||||
this.menumain.TabIndex = 0;
|
||||
this.menumain.Text = "menuStrip1";
|
||||
//
|
||||
|
@ -356,7 +361,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.buttonthingsmode});
|
||||
this.toolbar.Location = new System.Drawing.Point(0, 24);
|
||||
this.toolbar.Name = "toolbar";
|
||||
this.toolbar.Size = new System.Drawing.Size(731, 25);
|
||||
this.toolbar.Size = new System.Drawing.Size(839, 25);
|
||||
this.toolbar.TabIndex = 1;
|
||||
this.toolbar.Text = "toolStrip1";
|
||||
//
|
||||
|
@ -474,14 +479,14 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.statusbar.Location = new System.Drawing.Point(0, 522);
|
||||
this.statusbar.Name = "statusbar";
|
||||
this.statusbar.ShowItemToolTips = true;
|
||||
this.statusbar.Size = new System.Drawing.Size(731, 23);
|
||||
this.statusbar.Size = new System.Drawing.Size(839, 23);
|
||||
this.statusbar.TabIndex = 2;
|
||||
//
|
||||
// statuslabel
|
||||
//
|
||||
this.statuslabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
|
||||
this.statuslabel.Name = "statuslabel";
|
||||
this.statuslabel.Size = new System.Drawing.Size(520, 18);
|
||||
this.statuslabel.Size = new System.Drawing.Size(628, 18);
|
||||
this.statuslabel.Spring = true;
|
||||
this.statuslabel.Text = "Initializing user interface...";
|
||||
this.statuslabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
|
@ -592,10 +597,14 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
//
|
||||
// panelinfo
|
||||
//
|
||||
this.panelinfo.Controls.Add(this.vertexinfo);
|
||||
this.panelinfo.Controls.Add(this.thinginfo);
|
||||
this.panelinfo.Controls.Add(this.sectorinfo);
|
||||
this.panelinfo.Controls.Add(this.linedefinfo);
|
||||
this.panelinfo.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panelinfo.Location = new System.Drawing.Point(0, 421);
|
||||
this.panelinfo.Location = new System.Drawing.Point(0, 416);
|
||||
this.panelinfo.Name = "panelinfo";
|
||||
this.panelinfo.Size = new System.Drawing.Size(731, 101);
|
||||
this.panelinfo.Size = new System.Drawing.Size(839, 106);
|
||||
this.panelinfo.TabIndex = 4;
|
||||
//
|
||||
// redrawtimer
|
||||
|
@ -612,7 +621,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.display.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.display.Location = new System.Drawing.Point(0, 49);
|
||||
this.display.Name = "display";
|
||||
this.display.Size = new System.Drawing.Size(731, 372);
|
||||
this.display.Size = new System.Drawing.Size(839, 367);
|
||||
this.display.TabIndex = 5;
|
||||
this.display.TabStop = false;
|
||||
this.display.MouseLeave += new System.EventHandler(this.display_MouseLeave);
|
||||
|
@ -625,16 +634,60 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.display.MouseUp += new System.Windows.Forms.MouseEventHandler(this.display_MouseUp);
|
||||
this.display.MouseEnter += new System.EventHandler(this.display_MouseEnter);
|
||||
//
|
||||
// vertexinfo
|
||||
//
|
||||
this.vertexinfo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.vertexinfo.Location = new System.Drawing.Point(3, 3);
|
||||
this.vertexinfo.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.vertexinfo.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.vertexinfo.Name = "vertexinfo";
|
||||
this.vertexinfo.Size = new System.Drawing.Size(180, 100);
|
||||
this.vertexinfo.TabIndex = 1;
|
||||
this.vertexinfo.Visible = false;
|
||||
//
|
||||
// sectorinfo
|
||||
//
|
||||
this.sectorinfo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.sectorinfo.Location = new System.Drawing.Point(3, 3);
|
||||
this.sectorinfo.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.sectorinfo.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.sectorinfo.Name = "sectorinfo";
|
||||
this.sectorinfo.Size = new System.Drawing.Size(447, 100);
|
||||
this.sectorinfo.TabIndex = 2;
|
||||
this.sectorinfo.Visible = false;
|
||||
//
|
||||
// linedefinfo
|
||||
//
|
||||
this.linedefinfo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.linedefinfo.Location = new System.Drawing.Point(3, 3);
|
||||
this.linedefinfo.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.linedefinfo.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.linedefinfo.Name = "linedefinfo";
|
||||
this.linedefinfo.Size = new System.Drawing.Size(783, 100);
|
||||
this.linedefinfo.TabIndex = 0;
|
||||
this.linedefinfo.Visible = false;
|
||||
//
|
||||
// thinginfo
|
||||
//
|
||||
this.thinginfo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.thinginfo.Location = new System.Drawing.Point(3, 3);
|
||||
this.thinginfo.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.thinginfo.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.thinginfo.Name = "thinginfo";
|
||||
this.thinginfo.Size = new System.Drawing.Size(385, 100);
|
||||
this.thinginfo.TabIndex = 3;
|
||||
this.thinginfo.Visible = false;
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(731, 545);
|
||||
this.ClientSize = new System.Drawing.Size(839, 545);
|
||||
this.Controls.Add(this.display);
|
||||
this.Controls.Add(this.panelinfo);
|
||||
this.Controls.Add(this.statusbar);
|
||||
this.Controls.Add(this.toolbar);
|
||||
this.Controls.Add(this.menumain);
|
||||
this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.KeyPreview = true;
|
||||
this.MainMenuStrip = this.menumain;
|
||||
|
@ -654,6 +707,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
this.toolbar.PerformLayout();
|
||||
this.statusbar.ResumeLayout(false);
|
||||
this.statusbar.PerformLayout();
|
||||
this.panelinfo.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.display)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
@ -713,5 +767,9 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
|
||||
private System.Windows.Forms.ToolStripButton buttonthingsmode;
|
||||
private System.Windows.Forms.ToolStripMenuItem itemthingsmode;
|
||||
private LinedefInfoPanel linedefinfo;
|
||||
private VertexInfoPanel vertexinfo;
|
||||
private SectorInfoPanel sectorinfo;
|
||||
private ThingInfoPanel thinginfo;
|
||||
}
|
||||
}
|
|
@ -29,6 +29,7 @@ using CodeImp.DoomBuilder.Rendering;
|
|||
using CodeImp.DoomBuilder.Editing;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using CodeImp.DoomBuilder.Map;
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -791,5 +792,31 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Info Panels
|
||||
|
||||
// This hides all info panels
|
||||
public void HideInfo()
|
||||
{
|
||||
// Hide them all
|
||||
if(linedefinfo.Visible) linedefinfo.Hide();
|
||||
if(vertexinfo.Visible) vertexinfo.Hide();
|
||||
if(sectorinfo.Visible) sectorinfo.Hide();
|
||||
if(thinginfo.Visible) thinginfo.Hide();
|
||||
}
|
||||
|
||||
// Show linedef info
|
||||
public void ShowLinedefInfo(Linedef l) { linedefinfo.ShowInfo(l); }
|
||||
|
||||
// Show vertex info
|
||||
public void ShowVertexInfo(Vertex v) { vertexinfo.ShowInfo(v); }
|
||||
|
||||
// Show sector info
|
||||
public void ShowSectorInfo(Sector s) { sectorinfo.ShowInfo(s); }
|
||||
|
||||
// Show thing info
|
||||
public void ShowThingInfo(Thing t) { thinginfo.ShowInfo(t); }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -156,6 +156,15 @@
|
|||
<metadata name="panelinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="vertexinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="sectorinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="linedefinfo.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="redrawtimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>304, 17</value>
|
||||
</metadata>
|
||||
|
|
3
Source/Interface/MapOptionsForm.Designer.cs
generated
3
Source/Interface/MapOptionsForm.Designer.cs
generated
|
@ -165,8 +165,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// MapOptionsForm
|
||||
//
|
||||
this.AcceptButton = this.apply;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.cancel;
|
||||
this.ClientSize = new System.Drawing.Size(391, 392);
|
||||
this.Controls.Add(this.panelres);
|
||||
|
|
|
@ -32,7 +32,7 @@ using CodeImp.DoomBuilder.Config;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal partial class MapOptionsForm : DelayedForm
|
||||
public partial class MapOptionsForm : DelayedForm
|
||||
{
|
||||
// Variables
|
||||
private MapOptions options;
|
||||
|
@ -125,7 +125,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
if(newcfg == null) return;
|
||||
|
||||
// Check if the config uses a different IO interface
|
||||
if(newcfg.ReadSetting("formatinterface", "") != General.Map.Configuration.FormatInterface)
|
||||
if(newcfg.ReadSetting("formatinterface", "") != General.Map.Config.FormatInterface)
|
||||
{
|
||||
// Warn the user about IO interface change
|
||||
if(General.ShowWarningMessage("The game configuration you selected uses a different file format than your current map. Because your map was not designed for this format it may cause the map to work incorrectly in the game. Do you want to continue?", MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button2) == DialogResult.No)
|
||||
|
|
3
Source/Interface/OpenMapOptionsForm.Designer.cs
generated
3
Source/Interface/OpenMapOptionsForm.Designer.cs
generated
|
@ -155,8 +155,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// OpenMapOptionsForm
|
||||
//
|
||||
this.AcceptButton = this.apply;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.cancel;
|
||||
this.ClientSize = new System.Drawing.Size(389, 465);
|
||||
this.Controls.Add(this.mapslist);
|
||||
|
|
|
@ -34,7 +34,7 @@ using CodeImp.DoomBuilder.Config;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal partial class OpenMapOptionsForm : DelayedForm
|
||||
public partial class OpenMapOptionsForm : DelayedForm
|
||||
{
|
||||
// Variables
|
||||
private Configuration mapsettings;
|
||||
|
|
25
Source/Interface/PreferencesForm.Designer.cs
generated
25
Source/Interface/PreferencesForm.Designer.cs
generated
|
@ -131,6 +131,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorgrid64
|
||||
//
|
||||
this.colorgrid64.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorgrid64.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorgrid64.Label = "64 Block grid:";
|
||||
this.colorgrid64.Location = new System.Drawing.Point(15, 288);
|
||||
this.colorgrid64.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -142,6 +143,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorgrid
|
||||
//
|
||||
this.colorgrid.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorgrid.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorgrid.Label = "Custom grid:";
|
||||
this.colorgrid.Location = new System.Drawing.Point(15, 259);
|
||||
this.colorgrid.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -153,6 +155,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorassociations
|
||||
//
|
||||
this.colorassociations.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorassociations.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorassociations.Label = "Associations:";
|
||||
this.colorassociations.Location = new System.Drawing.Point(15, 230);
|
||||
this.colorassociations.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -164,6 +167,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorsoundlinedefs
|
||||
//
|
||||
this.colorsoundlinedefs.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorsoundlinedefs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorsoundlinedefs.Label = "Sound lines:";
|
||||
this.colorsoundlinedefs.Location = new System.Drawing.Point(15, 143);
|
||||
this.colorsoundlinedefs.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -175,6 +179,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorspeciallinedefs
|
||||
//
|
||||
this.colorspeciallinedefs.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorspeciallinedefs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorspeciallinedefs.Label = "Action lines:";
|
||||
this.colorspeciallinedefs.Location = new System.Drawing.Point(15, 114);
|
||||
this.colorspeciallinedefs.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -186,6 +191,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorbackcolor
|
||||
//
|
||||
this.colorbackcolor.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorbackcolor.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorbackcolor.Label = "Background:";
|
||||
this.colorbackcolor.Location = new System.Drawing.Point(15, 27);
|
||||
this.colorbackcolor.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -197,6 +203,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorselection
|
||||
//
|
||||
this.colorselection.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorselection.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorselection.Label = "Selection:";
|
||||
this.colorselection.Location = new System.Drawing.Point(15, 201);
|
||||
this.colorselection.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -208,6 +215,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorvertices
|
||||
//
|
||||
this.colorvertices.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorvertices.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorvertices.Label = "Vertices:";
|
||||
this.colorvertices.Location = new System.Drawing.Point(15, 56);
|
||||
this.colorvertices.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -219,6 +227,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorhighlight
|
||||
//
|
||||
this.colorhighlight.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorhighlight.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorhighlight.Label = "Highlight:";
|
||||
this.colorhighlight.Location = new System.Drawing.Point(15, 172);
|
||||
this.colorhighlight.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -230,6 +239,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorlinedefs
|
||||
//
|
||||
this.colorlinedefs.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorlinedefs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorlinedefs.Label = "Common lines:";
|
||||
this.colorlinedefs.Location = new System.Drawing.Point(15, 85);
|
||||
this.colorlinedefs.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -381,7 +391,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
//
|
||||
this.actioncontrolclear.Location = new System.Drawing.Point(193, 140);
|
||||
this.actioncontrolclear.Name = "actioncontrolclear";
|
||||
this.actioncontrolclear.Size = new System.Drawing.Size(63, 27);
|
||||
this.actioncontrolclear.Size = new System.Drawing.Size(63, 25);
|
||||
this.actioncontrolclear.TabIndex = 6;
|
||||
this.actioncontrolclear.TabStop = false;
|
||||
this.actioncontrolclear.Text = "Clear";
|
||||
|
@ -439,6 +449,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorconstants
|
||||
//
|
||||
this.colorconstants.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorconstants.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorconstants.Label = "Constants:";
|
||||
this.colorconstants.Location = new System.Drawing.Point(15, 201);
|
||||
this.colorconstants.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -450,6 +461,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorliterals
|
||||
//
|
||||
this.colorliterals.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorliterals.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorliterals.Label = "Literals:";
|
||||
this.colorliterals.Location = new System.Drawing.Point(15, 172);
|
||||
this.colorliterals.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -461,6 +473,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorscriptbackground
|
||||
//
|
||||
this.colorscriptbackground.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorscriptbackground.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorscriptbackground.Label = "Background:";
|
||||
this.colorscriptbackground.Location = new System.Drawing.Point(15, 27);
|
||||
this.colorscriptbackground.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -472,6 +485,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorkeywords
|
||||
//
|
||||
this.colorkeywords.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorkeywords.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorkeywords.Label = "Keywords:";
|
||||
this.colorkeywords.Location = new System.Drawing.Point(15, 143);
|
||||
this.colorkeywords.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -483,6 +497,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorlinenumbers
|
||||
//
|
||||
this.colorlinenumbers.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorlinenumbers.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorlinenumbers.Label = "Line numbers:";
|
||||
this.colorlinenumbers.Location = new System.Drawing.Point(15, 56);
|
||||
this.colorlinenumbers.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -494,6 +509,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorcomments
|
||||
//
|
||||
this.colorcomments.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorcomments.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorcomments.Label = "Comments:";
|
||||
this.colorcomments.Location = new System.Drawing.Point(15, 114);
|
||||
this.colorcomments.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -505,6 +521,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorplaintext
|
||||
//
|
||||
this.colorplaintext.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorplaintext.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorplaintext.Label = "Plain text:";
|
||||
this.colorplaintext.Location = new System.Drawing.Point(15, 85);
|
||||
this.colorplaintext.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -529,6 +546,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorselection3d
|
||||
//
|
||||
this.colorselection3d.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorselection3d.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorselection3d.Label = "Selection:";
|
||||
this.colorselection3d.Location = new System.Drawing.Point(15, 85);
|
||||
this.colorselection3d.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -540,6 +558,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorhighlight3d
|
||||
//
|
||||
this.colorhighlight3d.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorhighlight3d.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorhighlight3d.Label = "Highlight:";
|
||||
this.colorhighlight3d.Location = new System.Drawing.Point(15, 56);
|
||||
this.colorhighlight3d.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -551,6 +570,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// colorcrosshair3d
|
||||
//
|
||||
this.colorcrosshair3d.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.colorcrosshair3d.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.colorcrosshair3d.Label = "Crosshair:";
|
||||
this.colorcrosshair3d.Location = new System.Drawing.Point(15, 27);
|
||||
this.colorcrosshair3d.MaximumSize = new System.Drawing.Size(10000, 23);
|
||||
|
@ -562,8 +582,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// PreferencesForm
|
||||
//
|
||||
this.AcceptButton = this.apply;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.cancel;
|
||||
this.ClientSize = new System.Drawing.Size(619, 440);
|
||||
this.Controls.Add(this.cancel);
|
||||
|
|
6
Source/Interface/ResourceListEditor.Designer.cs
generated
6
Source/Interface/ResourceListEditor.Designer.cs
generated
|
@ -1,6 +1,6 @@
|
|||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal partial class ResourceListEditor
|
||||
public partial class ResourceListEditor
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -195,9 +195,9 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
//
|
||||
// ResourceListEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Name = "ResourceListEditor";
|
||||
this.Size = new System.Drawing.Size(350, 166);
|
||||
buttonsbar2.Panel1.ResumeLayout(false);
|
||||
|
|
|
@ -29,7 +29,7 @@ using CodeImp.DoomBuilder.Data;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal partial class ResourceListEditor : UserControl
|
||||
public partial class ResourceListEditor : UserControl
|
||||
{
|
||||
#region ================== Delegates / Events
|
||||
|
||||
|
|
|
@ -150,69 +150,69 @@
|
|||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADi
|
||||
DwAAAk1TRnQBSQFMAgEBBAEAAQkBAAEEAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
|
||||
AwABIAMAAQEBAAEgBgABIP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AxgABBwKWAf8BBwKW
|
||||
Af8BBwJXAf8BBwJXAf8BBwJXAf8BBwJXAf8oAAEHApYB/w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/wMdAf9UAAMWAf8DFgH/AxYB/wMW
|
||||
Af8DFgH/AxYB/wMWAf8DFgH/AxYB/wMWAf8DFgH//wANAAFCAU0BPgcAAT4DAAEoAwABQAMAASADAAEB
|
||||
AQABAQYAAQEWAAP/gQAF/wGBAf8BgQL/AfgBBwH/AYEB+AEBAQABBwHwAQcBAAEBAfABAQEAAQMB4AEH
|
||||
AQABAQHgAQEBAAEDAcABBwEAAQEBwAEBAQABAQHAAQcBAAEBAcABAQEAAQEBwAEHAQABAQHAAQECAAHA
|
||||
AQcCAAHAAQMCAAHAAQcCAAHAAQcCAAHAAQcCAAHAAQcBAAEHAcABBwEAAQcBwAEHAQABBwHAAQcBAAEH
|
||||
|
|
|
@ -32,7 +32,7 @@ using CodeImp.DoomBuilder.Editing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal class ResourceListView : ListView
|
||||
public class ResourceListView : ListView
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
3
Source/Interface/ResourceOptionsForm.Designer.cs
generated
3
Source/Interface/ResourceOptionsForm.Designer.cs
generated
|
@ -207,8 +207,7 @@ namespace CodeImp.DoomBuilder.Interface
|
|||
// ResourceOptionsForm
|
||||
//
|
||||
this.AcceptButton = this.apply;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.CancelButton = this.cancel;
|
||||
this.ClientSize = new System.Drawing.Size(377, 226);
|
||||
this.Controls.Add(this.cancel);
|
||||
|
|
|
@ -30,7 +30,7 @@ using CodeImp.DoomBuilder.Data;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
internal partial class ResourceOptionsForm : DelayedForm
|
||||
public partial class ResourceOptionsForm : DelayedForm
|
||||
{
|
||||
// Variables
|
||||
private DataLocation res;
|
||||
|
|
291
Source/Interface/SectorInfoPanel.Designer.cs
generated
Normal file
291
Source/Interface/SectorInfoPanel.Designer.cs
generated
Normal file
|
@ -0,0 +1,291 @@
|
|||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
partial class SectorInfoPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if(disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.GroupBox groupBox1;
|
||||
System.Windows.Forms.Label label13;
|
||||
System.Windows.Forms.Label label5;
|
||||
System.Windows.Forms.Label label4;
|
||||
System.Windows.Forms.Label label3;
|
||||
System.Windows.Forms.Label label2;
|
||||
System.Windows.Forms.Label label1;
|
||||
this.brightness = new System.Windows.Forms.Label();
|
||||
this.height = new System.Windows.Forms.Label();
|
||||
this.tag = new System.Windows.Forms.Label();
|
||||
this.floor = new System.Windows.Forms.Label();
|
||||
this.ceiling = new System.Windows.Forms.Label();
|
||||
this.effect = new System.Windows.Forms.Label();
|
||||
this.ceilingpanel = new System.Windows.Forms.GroupBox();
|
||||
this.ceilingname = new System.Windows.Forms.Label();
|
||||
this.ceilingtex = new System.Windows.Forms.Panel();
|
||||
this.floorpanel = new System.Windows.Forms.GroupBox();
|
||||
this.floorname = new System.Windows.Forms.Label();
|
||||
this.floortex = new System.Windows.Forms.Panel();
|
||||
groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
label13 = new System.Windows.Forms.Label();
|
||||
label5 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
label3 = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
groupBox1.SuspendLayout();
|
||||
this.ceilingpanel.SuspendLayout();
|
||||
this.floorpanel.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
groupBox1.Controls.Add(this.brightness);
|
||||
groupBox1.Controls.Add(label13);
|
||||
groupBox1.Controls.Add(this.height);
|
||||
groupBox1.Controls.Add(label5);
|
||||
groupBox1.Controls.Add(this.tag);
|
||||
groupBox1.Controls.Add(this.floor);
|
||||
groupBox1.Controls.Add(this.ceiling);
|
||||
groupBox1.Controls.Add(label4);
|
||||
groupBox1.Controls.Add(label3);
|
||||
groupBox1.Controls.Add(label2);
|
||||
groupBox1.Controls.Add(this.effect);
|
||||
groupBox1.Controls.Add(label1);
|
||||
groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
groupBox1.Name = "groupBox1";
|
||||
groupBox1.Size = new System.Drawing.Size(230, 100);
|
||||
groupBox1.TabIndex = 2;
|
||||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = " Sector ";
|
||||
//
|
||||
// brightness
|
||||
//
|
||||
this.brightness.AutoSize = true;
|
||||
this.brightness.Location = new System.Drawing.Point(177, 77);
|
||||
this.brightness.Name = "brightness";
|
||||
this.brightness.Size = new System.Drawing.Size(13, 14);
|
||||
this.brightness.TabIndex = 17;
|
||||
this.brightness.Text = "0";
|
||||
//
|
||||
// label13
|
||||
//
|
||||
label13.AutoSize = true;
|
||||
label13.Location = new System.Drawing.Point(111, 77);
|
||||
label13.Name = "label13";
|
||||
label13.Size = new System.Drawing.Size(62, 14);
|
||||
label13.TabIndex = 14;
|
||||
label13.Text = "Brightness:";
|
||||
//
|
||||
// height
|
||||
//
|
||||
this.height.AutoSize = true;
|
||||
this.height.Location = new System.Drawing.Point(177, 58);
|
||||
this.height.Name = "height";
|
||||
this.height.Size = new System.Drawing.Size(13, 14);
|
||||
this.height.TabIndex = 11;
|
||||
this.height.Text = "0";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
label5.AutoSize = true;
|
||||
label5.Location = new System.Drawing.Point(133, 58);
|
||||
label5.Name = "label5";
|
||||
label5.Size = new System.Drawing.Size(40, 14);
|
||||
label5.TabIndex = 8;
|
||||
label5.Text = "Height:";
|
||||
//
|
||||
// tag
|
||||
//
|
||||
this.tag.AutoSize = true;
|
||||
this.tag.Location = new System.Drawing.Point(55, 77);
|
||||
this.tag.Name = "tag";
|
||||
this.tag.Size = new System.Drawing.Size(13, 14);
|
||||
this.tag.TabIndex = 7;
|
||||
this.tag.Text = "0";
|
||||
//
|
||||
// floor
|
||||
//
|
||||
this.floor.AutoSize = true;
|
||||
this.floor.Location = new System.Drawing.Point(55, 58);
|
||||
this.floor.Name = "floor";
|
||||
this.floor.Size = new System.Drawing.Size(25, 14);
|
||||
this.floor.TabIndex = 6;
|
||||
this.floor.Text = "360";
|
||||
//
|
||||
// ceiling
|
||||
//
|
||||
this.ceiling.AutoSize = true;
|
||||
this.ceiling.Location = new System.Drawing.Point(55, 39);
|
||||
this.ceiling.Name = "ceiling";
|
||||
this.ceiling.Size = new System.Drawing.Size(31, 14);
|
||||
this.ceiling.TabIndex = 5;
|
||||
this.ceiling.Text = "1024";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new System.Drawing.Point(24, 77);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(28, 14);
|
||||
label4.TabIndex = 4;
|
||||
label4.Text = "Tag:";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(18, 58);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(34, 14);
|
||||
label3.TabIndex = 3;
|
||||
label3.Text = "Floor:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(11, 39);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(41, 14);
|
||||
label2.TabIndex = 2;
|
||||
label2.Text = "Ceiling:";
|
||||
//
|
||||
// effect
|
||||
//
|
||||
this.effect.AutoSize = true;
|
||||
this.effect.Location = new System.Drawing.Point(55, 19);
|
||||
this.effect.Name = "effect";
|
||||
this.effect.Size = new System.Drawing.Size(123, 14);
|
||||
this.effect.TabIndex = 1;
|
||||
this.effect.Text = "0 - Whacky Pool of Fluid";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(13, 19);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(39, 14);
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "Effect:";
|
||||
//
|
||||
// ceilingpanel
|
||||
//
|
||||
this.ceilingpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ceilingpanel.Controls.Add(this.ceilingname);
|
||||
this.ceilingpanel.Controls.Add(this.ceilingtex);
|
||||
this.ceilingpanel.Location = new System.Drawing.Point(236, 0);
|
||||
this.ceilingpanel.Name = "ceilingpanel";
|
||||
this.ceilingpanel.Size = new System.Drawing.Size(93, 100);
|
||||
this.ceilingpanel.TabIndex = 3;
|
||||
this.ceilingpanel.TabStop = false;
|
||||
this.ceilingpanel.Text = " Ceiling ";
|
||||
//
|
||||
// ceilingname
|
||||
//
|
||||
this.ceilingname.Location = new System.Drawing.Point(11, 80);
|
||||
this.ceilingname.Name = "ceilingname";
|
||||
this.ceilingname.Size = new System.Drawing.Size(72, 13);
|
||||
this.ceilingname.TabIndex = 1;
|
||||
this.ceilingname.Text = "BIGDOOR6";
|
||||
this.ceilingname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// ceilingtex
|
||||
//
|
||||
this.ceilingtex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.ceilingtex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.ceilingtex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.ceilingtex.Location = new System.Drawing.Point(13, 19);
|
||||
this.ceilingtex.Name = "ceilingtex";
|
||||
this.ceilingtex.Size = new System.Drawing.Size(68, 60);
|
||||
this.ceilingtex.TabIndex = 0;
|
||||
//
|
||||
// floorpanel
|
||||
//
|
||||
this.floorpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.floorpanel.Controls.Add(this.floorname);
|
||||
this.floorpanel.Controls.Add(this.floortex);
|
||||
this.floorpanel.Location = new System.Drawing.Point(335, 0);
|
||||
this.floorpanel.Name = "floorpanel";
|
||||
this.floorpanel.Size = new System.Drawing.Size(93, 100);
|
||||
this.floorpanel.TabIndex = 4;
|
||||
this.floorpanel.TabStop = false;
|
||||
this.floorpanel.Text = " Floor ";
|
||||
//
|
||||
// floorname
|
||||
//
|
||||
this.floorname.Location = new System.Drawing.Point(11, 80);
|
||||
this.floorname.Name = "floorname";
|
||||
this.floorname.Size = new System.Drawing.Size(72, 13);
|
||||
this.floorname.TabIndex = 1;
|
||||
this.floorname.Text = "BIGDOOR6";
|
||||
this.floorname.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// floortex
|
||||
//
|
||||
this.floortex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.floortex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.floortex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.floortex.Location = new System.Drawing.Point(13, 19);
|
||||
this.floortex.Name = "floortex";
|
||||
this.floortex.Size = new System.Drawing.Size(68, 60);
|
||||
this.floortex.TabIndex = 0;
|
||||
//
|
||||
// SectorInfoPanel
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.floorpanel);
|
||||
this.Controls.Add(this.ceilingpanel);
|
||||
this.Controls.Add(groupBox1);
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.Name = "SectorInfoPanel";
|
||||
this.Size = new System.Drawing.Size(450, 100);
|
||||
groupBox1.ResumeLayout(false);
|
||||
groupBox1.PerformLayout();
|
||||
this.ceilingpanel.ResumeLayout(false);
|
||||
this.floorpanel.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label brightness;
|
||||
private System.Windows.Forms.Label height;
|
||||
private System.Windows.Forms.Label tag;
|
||||
private System.Windows.Forms.Label floor;
|
||||
private System.Windows.Forms.Label ceiling;
|
||||
private System.Windows.Forms.Label effect;
|
||||
private System.Windows.Forms.GroupBox ceilingpanel;
|
||||
private System.Windows.Forms.Label ceilingname;
|
||||
private System.Windows.Forms.Panel ceilingtex;
|
||||
private System.Windows.Forms.GroupBox floorpanel;
|
||||
private System.Windows.Forms.Label floorname;
|
||||
private System.Windows.Forms.Panel floortex;
|
||||
}
|
||||
}
|
78
Source/Interface/SectorInfoPanel.cs
Normal file
78
Source/Interface/SectorInfoPanel.cs
Normal file
|
@ -0,0 +1,78 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using CodeImp.DoomBuilder.Data;
|
||||
using CodeImp.DoomBuilder.Map;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class SectorInfoPanel : UserControl
|
||||
{
|
||||
// Constructor
|
||||
public SectorInfoPanel()
|
||||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This shows the info
|
||||
public void ShowInfo(Sector s)
|
||||
{
|
||||
int sheight = s.CeilHeight - s.FloorHeight;
|
||||
|
||||
// TODO: Lookup effect description in config
|
||||
|
||||
// Sector info
|
||||
effect.Text = s.Effect.ToString();
|
||||
ceiling.Text = s.CeilHeight.ToString();
|
||||
floor.Text = s.FloorHeight.ToString();
|
||||
tag.Text = s.Tag.ToString();
|
||||
height.Text = sheight.ToString();
|
||||
brightness.Text = s.Brightness.ToString();
|
||||
floorname.Text = s.FloorTexture;
|
||||
ceilingname.Text = s.CeilTexture;
|
||||
floortex.BackgroundImage = FindFlat(s.FloorTexture);
|
||||
ceilingtex.BackgroundImage = FindFlat(s.CeilTexture);
|
||||
|
||||
// Show the whole thing
|
||||
this.Show();
|
||||
this.Update();
|
||||
}
|
||||
|
||||
// This loads and returns the flat image if possible
|
||||
private Image FindFlat(string name)
|
||||
{
|
||||
ImageData img;
|
||||
|
||||
// Get it
|
||||
img = General.Map.Data.GetFlatByName(name);
|
||||
img.LoadImage();
|
||||
return img.Bitmap;
|
||||
}
|
||||
}
|
||||
}
|
201
Source/Interface/SectorInfoPanel.resx
Normal file
201
Source/Interface/SectorInfoPanel.resx
Normal file
|
@ -0,0 +1,201 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="brightness.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label13.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label13.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="height.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="tag.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="floor.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ceiling.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="effect.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="ceilingpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ceilingname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="ceilingtex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="floorpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="floorname.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="floortex.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>
|
227
Source/Interface/ThingInfoPanel.Designer.cs
generated
Normal file
227
Source/Interface/ThingInfoPanel.Designer.cs
generated
Normal file
|
@ -0,0 +1,227 @@
|
|||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
partial class ThingInfoPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if(disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.GroupBox groupBox1;
|
||||
System.Windows.Forms.Label label5;
|
||||
System.Windows.Forms.Label label4;
|
||||
System.Windows.Forms.Label label3;
|
||||
System.Windows.Forms.Label label2;
|
||||
System.Windows.Forms.Label label1;
|
||||
this.ceilingpanel = new System.Windows.Forms.GroupBox();
|
||||
this.spritename = new System.Windows.Forms.Label();
|
||||
this.spritetex = new System.Windows.Forms.Panel();
|
||||
this.angle = new System.Windows.Forms.Label();
|
||||
this.tag = new System.Windows.Forms.Label();
|
||||
this.position = new System.Windows.Forms.Label();
|
||||
this.action = new System.Windows.Forms.Label();
|
||||
this.type = new System.Windows.Forms.Label();
|
||||
groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
label5 = new System.Windows.Forms.Label();
|
||||
label4 = new System.Windows.Forms.Label();
|
||||
label3 = new System.Windows.Forms.Label();
|
||||
label2 = new System.Windows.Forms.Label();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
this.ceilingpanel.SuspendLayout();
|
||||
groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ceilingpanel
|
||||
//
|
||||
this.ceilingpanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.ceilingpanel.Controls.Add(this.spritename);
|
||||
this.ceilingpanel.Controls.Add(this.spritetex);
|
||||
this.ceilingpanel.Location = new System.Drawing.Point(273, 0);
|
||||
this.ceilingpanel.Name = "ceilingpanel";
|
||||
this.ceilingpanel.Size = new System.Drawing.Size(93, 100);
|
||||
this.ceilingpanel.TabIndex = 5;
|
||||
this.ceilingpanel.TabStop = false;
|
||||
this.ceilingpanel.Text = " Sprite ";
|
||||
//
|
||||
// spritename
|
||||
//
|
||||
this.spritename.Location = new System.Drawing.Point(11, 80);
|
||||
this.spritename.Name = "spritename";
|
||||
this.spritename.Size = new System.Drawing.Size(72, 13);
|
||||
this.spritename.TabIndex = 1;
|
||||
this.spritename.Text = "BIGDOOR6";
|
||||
this.spritename.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// spritetex
|
||||
//
|
||||
this.spritetex.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.spritetex.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
|
||||
this.spritetex.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.spritetex.Location = new System.Drawing.Point(13, 19);
|
||||
this.spritetex.Name = "spritetex";
|
||||
this.spritetex.Size = new System.Drawing.Size(68, 60);
|
||||
this.spritetex.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
groupBox1.Controls.Add(this.angle);
|
||||
groupBox1.Controls.Add(label5);
|
||||
groupBox1.Controls.Add(this.tag);
|
||||
groupBox1.Controls.Add(this.position);
|
||||
groupBox1.Controls.Add(this.action);
|
||||
groupBox1.Controls.Add(label4);
|
||||
groupBox1.Controls.Add(label3);
|
||||
groupBox1.Controls.Add(label2);
|
||||
groupBox1.Controls.Add(this.type);
|
||||
groupBox1.Controls.Add(label1);
|
||||
groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
groupBox1.Name = "groupBox1";
|
||||
groupBox1.Size = new System.Drawing.Size(267, 100);
|
||||
groupBox1.TabIndex = 4;
|
||||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = " Thing ";
|
||||
//
|
||||
// angle
|
||||
//
|
||||
this.angle.AutoSize = true;
|
||||
this.angle.Location = new System.Drawing.Point(206, 77);
|
||||
this.angle.Name = "angle";
|
||||
this.angle.Size = new System.Drawing.Size(13, 14);
|
||||
this.angle.TabIndex = 11;
|
||||
this.angle.Text = "0";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
label5.AutoSize = true;
|
||||
label5.Location = new System.Drawing.Point(165, 77);
|
||||
label5.Name = "label5";
|
||||
label5.Size = new System.Drawing.Size(38, 14);
|
||||
label5.TabIndex = 8;
|
||||
label5.Text = "Angle:";
|
||||
//
|
||||
// tag
|
||||
//
|
||||
this.tag.AutoSize = true;
|
||||
this.tag.Location = new System.Drawing.Point(61, 77);
|
||||
this.tag.Name = "tag";
|
||||
this.tag.Size = new System.Drawing.Size(13, 14);
|
||||
this.tag.TabIndex = 7;
|
||||
this.tag.Text = "0";
|
||||
//
|
||||
// position
|
||||
//
|
||||
this.position.AutoSize = true;
|
||||
this.position.Location = new System.Drawing.Point(61, 58);
|
||||
this.position.Name = "position";
|
||||
this.position.Size = new System.Drawing.Size(91, 14);
|
||||
this.position.TabIndex = 6;
|
||||
this.position.Text = "1024, 1024, 1024";
|
||||
//
|
||||
// action
|
||||
//
|
||||
this.action.AutoSize = true;
|
||||
this.action.Location = new System.Drawing.Point(61, 39);
|
||||
this.action.Name = "action";
|
||||
this.action.Size = new System.Drawing.Size(180, 14);
|
||||
this.action.TabIndex = 5;
|
||||
this.action.Text = "0 - Spawn a Blue Poopie and Ammo";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new System.Drawing.Point(30, 77);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new System.Drawing.Size(28, 14);
|
||||
label4.TabIndex = 4;
|
||||
label4.Text = "Tag:";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new System.Drawing.Point(11, 58);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new System.Drawing.Size(47, 14);
|
||||
label3.TabIndex = 3;
|
||||
label3.Text = "Position:";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new System.Drawing.Point(17, 39);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new System.Drawing.Size(41, 14);
|
||||
label2.TabIndex = 2;
|
||||
label2.Text = "Action:";
|
||||
//
|
||||
// type
|
||||
//
|
||||
this.type.AutoSize = true;
|
||||
this.type.Location = new System.Drawing.Point(61, 19);
|
||||
this.type.Name = "type";
|
||||
this.type.Size = new System.Drawing.Size(99, 14);
|
||||
this.type.TabIndex = 1;
|
||||
this.type.Text = "0 - Big Brown Pimp";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(24, 19);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(34, 14);
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "Type:";
|
||||
//
|
||||
// ThingInfoPanel
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(this.ceilingpanel);
|
||||
this.Controls.Add(groupBox1);
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.Name = "ThingInfoPanel";
|
||||
this.Size = new System.Drawing.Size(388, 100);
|
||||
this.ceilingpanel.ResumeLayout(false);
|
||||
groupBox1.ResumeLayout(false);
|
||||
groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox ceilingpanel;
|
||||
private System.Windows.Forms.Label spritename;
|
||||
private System.Windows.Forms.Panel spritetex;
|
||||
private System.Windows.Forms.Label angle;
|
||||
private System.Windows.Forms.Label tag;
|
||||
private System.Windows.Forms.Label position;
|
||||
private System.Windows.Forms.Label action;
|
||||
private System.Windows.Forms.Label type;
|
||||
|
||||
}
|
||||
}
|
102
Source/Interface/ThingInfoPanel.cs
Normal file
102
Source/Interface/ThingInfoPanel.cs
Normal file
|
@ -0,0 +1,102 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using CodeImp.DoomBuilder.Data;
|
||||
using CodeImp.DoomBuilder.Map;
|
||||
using CodeImp.DoomBuilder.Config;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class ThingInfoPanel : UserControl
|
||||
{
|
||||
// Constructor
|
||||
public ThingInfoPanel()
|
||||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This shows the info
|
||||
public void ShowInfo(Thing t)
|
||||
{
|
||||
ThingTypeInfo ti;
|
||||
int zvalue;
|
||||
string zinfo;
|
||||
|
||||
// Lookup thing info
|
||||
ti = General.Map.Config.GetThingInfo(t.Type);
|
||||
|
||||
// TODO: Lookup action description from config
|
||||
|
||||
// Determine z info to show
|
||||
if(t.Sector != null)
|
||||
{
|
||||
// Hangs from ceiling?
|
||||
if(ti.Hangs)
|
||||
{
|
||||
zvalue = t.Sector.CeilHeight + t.ZOffset;
|
||||
zinfo = zvalue.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
zvalue = t.Sector.FloorHeight + t.ZOffset;
|
||||
zinfo = zvalue.ToString();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
zvalue = t.ZOffset;
|
||||
if(zvalue > 0) zinfo = "+" + zvalue.ToString(); else zinfo = zvalue.ToString();
|
||||
}
|
||||
|
||||
// Thing info
|
||||
type.Text = t.Type + " - " + ti.Title;
|
||||
action.Text = ""; // TODO
|
||||
position.Text = t.X.ToString() + ", " + t.Y.ToString() + ", " + zinfo;
|
||||
tag.Text = ""; // TODO
|
||||
angle.Text = t.AngleDeg.ToString() + "\u00B0";
|
||||
spritename.Text = ti.Sprite;
|
||||
spritetex.BackgroundImage = FindSprite(ti.Sprite);
|
||||
|
||||
// Show the whole thing
|
||||
this.Show();
|
||||
this.Update();
|
||||
}
|
||||
|
||||
// This loads and returns the sprite image if possible
|
||||
private Image FindSprite(string name)
|
||||
{
|
||||
ImageData img;
|
||||
|
||||
// Get it
|
||||
img = General.Map.Data.GetSpriteByName(name);
|
||||
img.LoadImage();
|
||||
return img.Bitmap;
|
||||
}
|
||||
}
|
||||
}
|
183
Source/Interface/ThingInfoPanel.resx
Normal file
183
Source/Interface/ThingInfoPanel.resx
Normal file
|
@ -0,0 +1,183 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="ceilingpanel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="spritename.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="spritetex.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="angle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="tag.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="position.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="action.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="type.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
88
Source/Interface/VertexInfoPanel.Designer.cs
generated
Normal file
88
Source/Interface/VertexInfoPanel.Designer.cs
generated
Normal file
|
@ -0,0 +1,88 @@
|
|||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
partial class VertexInfoPanel
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if(disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.GroupBox groupBox1;
|
||||
System.Windows.Forms.Label label1;
|
||||
this.position = new System.Windows.Forms.Label();
|
||||
groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
label1 = new System.Windows.Forms.Label();
|
||||
groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
groupBox1.Controls.Add(this.position);
|
||||
groupBox1.Controls.Add(label1);
|
||||
groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
groupBox1.Name = "groupBox1";
|
||||
groupBox1.Size = new System.Drawing.Size(163, 100);
|
||||
groupBox1.TabIndex = 0;
|
||||
groupBox1.TabStop = false;
|
||||
groupBox1.Text = " Vertex ";
|
||||
//
|
||||
// position
|
||||
//
|
||||
this.position.AutoSize = true;
|
||||
this.position.Location = new System.Drawing.Point(66, 34);
|
||||
this.position.Name = "position";
|
||||
this.position.Size = new System.Drawing.Size(25, 14);
|
||||
this.position.TabIndex = 3;
|
||||
this.position.Text = "0, 0";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new System.Drawing.Point(13, 34);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new System.Drawing.Size(47, 14);
|
||||
label1.TabIndex = 2;
|
||||
label1.Text = "Position:";
|
||||
//
|
||||
// VertexInfoPanel
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.Controls.Add(groupBox1);
|
||||
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.MaximumSize = new System.Drawing.Size(10000, 100);
|
||||
this.MinimumSize = new System.Drawing.Size(100, 100);
|
||||
this.Name = "VertexInfoPanel";
|
||||
this.Size = new System.Drawing.Size(393, 100);
|
||||
groupBox1.ResumeLayout(false);
|
||||
groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label position;
|
||||
|
||||
}
|
||||
}
|
54
Source/Interface/VertexInfoPanel.cs
Normal file
54
Source/Interface/VertexInfoPanel.cs
Normal file
|
@ -0,0 +1,54 @@
|
|||
|
||||
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
||||
* This program is released under GNU General Public License
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Namespaces
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using System.Diagnostics;
|
||||
using CodeImp.DoomBuilder.Data;
|
||||
using CodeImp.DoomBuilder.Map;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class VertexInfoPanel : UserControl
|
||||
{
|
||||
// Constructor
|
||||
public VertexInfoPanel()
|
||||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This shows the info
|
||||
public void ShowInfo(Vertex v)
|
||||
{
|
||||
// Vertex info
|
||||
position.Text = v.X + ", " + v.Y;
|
||||
|
||||
// Show the whole thing
|
||||
this.Show();
|
||||
this.Update();
|
||||
}
|
||||
}
|
||||
}
|
138
Source/Interface/VertexInfoPanel.resx
Normal file
138
Source/Interface/VertexInfoPanel.resx
Normal file
|
@ -0,0 +1,138 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="position.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -29,7 +29,7 @@ using SlimDX.Direct3D;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class Linedef : IDisposable
|
||||
public class Linedef : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
private float lengthsq;
|
||||
private float length;
|
||||
private float lengthinv;
|
||||
//private float angle;
|
||||
private float angle;
|
||||
|
||||
// Properties
|
||||
private int flags;
|
||||
|
@ -94,6 +94,8 @@ namespace CodeImp.DoomBuilder.Map
|
|||
public float LengthSq { get { return lengthsq; } }
|
||||
public float Length { get { return length; } }
|
||||
public float LengthInv { get { return lengthinv; } }
|
||||
public float Angle { get { return angle; } }
|
||||
public int AngleDeg { get { return (int)(angle * Angle2D.PIDEG); } }
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -214,8 +216,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
lengthsq = delta.GetLengthSq();
|
||||
length = (float)Math.Sqrt(lengthsq);
|
||||
if(length > 0f) lengthinv = 1f / length; else lengthinv = 1f / 0.0000000001f;
|
||||
|
||||
//angle = delta.GetAngle();
|
||||
angle = delta.GetAngle();
|
||||
|
||||
// Updated
|
||||
updateneeded = false;
|
||||
|
|
|
@ -29,7 +29,7 @@ using CodeImp.DoomBuilder.Data;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class MapOptions
|
||||
public class MapOptions
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ using CodeImp.DoomBuilder.Geometry;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class MapSelection : IDisposable
|
||||
public class MapSelection : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ using System.Drawing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class MapSet : IDisposable
|
||||
public class MapSet : IDisposable
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class Sector : IDisposable
|
||||
public class Sector : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
private int ceilheight;
|
||||
private string floortexname;
|
||||
private string ceiltexname;
|
||||
private int special;
|
||||
private int effect;
|
||||
private int tag;
|
||||
private int brightness;
|
||||
|
||||
|
@ -67,12 +67,13 @@ namespace CodeImp.DoomBuilder.Map
|
|||
|
||||
public MapSet Map { get { return map; } }
|
||||
public ICollection<Sidedef> Sidedefs { get { return sidedefs; } }
|
||||
public ICollection<Thing> Things { get { return things; } }
|
||||
public bool IsDisposed { get { return isdisposed; } }
|
||||
public int FloorHeight { get { return floorheight; } }
|
||||
public int CeilHeight { get { return ceilheight; } }
|
||||
public string FloorTexture { get { return floortexname; } }
|
||||
public string CeilTexture { get { return ceiltexname; } }
|
||||
public int Special { get { return special; } }
|
||||
public int Effect { get { return effect; } }
|
||||
public int Tag { get { return tag; } }
|
||||
public int Brightness { get { return brightness; } }
|
||||
public int Selected { get { return selected; } set { selected = value; } }
|
||||
|
@ -160,7 +161,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
s.ceiltexname = ceiltexname;
|
||||
s.floorheight = floorheight;
|
||||
s.floortexname = floortexname;
|
||||
s.special = special;
|
||||
s.effect = effect;
|
||||
s.tag = tag;
|
||||
s.brightness = brightness;
|
||||
}
|
||||
|
@ -170,14 +171,14 @@ namespace CodeImp.DoomBuilder.Map
|
|||
#region ================== Changes
|
||||
|
||||
// This updates all properties
|
||||
public void Update(int hfloor, int hceil, string tfloor, string tceil, int special, int tag, int brightness)
|
||||
public void Update(int hfloor, int hceil, string tfloor, string tceil, int effect, int tag, int brightness)
|
||||
{
|
||||
// Apply changes
|
||||
this.floorheight = hfloor;
|
||||
this.ceilheight = hceil;
|
||||
this.floortexname = tfloor;
|
||||
this.ceiltexname = tceil;
|
||||
this.special = special;
|
||||
this.effect = effect;
|
||||
this.tag = tag;
|
||||
this.brightness = brightness;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class Sidedef : IDisposable
|
||||
public class Sidedef : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Drawing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class Thing : IDisposable
|
||||
public class Thing : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -58,6 +58,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
private int tag;
|
||||
private int action;
|
||||
private byte[] args;
|
||||
private int x, y, zoffset;
|
||||
|
||||
// Configuration
|
||||
private float size;
|
||||
|
@ -79,12 +80,17 @@ namespace CodeImp.DoomBuilder.Map
|
|||
public Vector3D Position { get { return pos; } }
|
||||
public bool IsDisposed { get { return isdisposed; } }
|
||||
public float Angle { get { return angle; } }
|
||||
public int AngleDeg { get { return (int)(angle * Angle2D.PIDEG); } }
|
||||
public int Flags { get { return flags; } }
|
||||
public int Selected { get { return selected; } set { selected = value; } }
|
||||
public float Size { get { return size; } }
|
||||
public float IconOffset { get { return iconoffset; } }
|
||||
public PixelColor Color { get { return color; } }
|
||||
|
||||
public int X { get { return x; } }
|
||||
public int Y { get { return y; } }
|
||||
public int ZOffset { get { return zoffset; } }
|
||||
public Sector Sector { get { return sector; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor / Disposer
|
||||
|
@ -138,6 +144,9 @@ namespace CodeImp.DoomBuilder.Map
|
|||
t.tag = tag;
|
||||
t.action = action;
|
||||
t.args = EMPTY_ARGS;
|
||||
t.x = x;
|
||||
t.y = y;
|
||||
t.zoffset = zoffset;
|
||||
args.CopyTo(t.args, 0);
|
||||
}
|
||||
|
||||
|
@ -145,28 +154,22 @@ namespace CodeImp.DoomBuilder.Map
|
|||
public void DetermineSector()
|
||||
{
|
||||
Sector newsector = null;
|
||||
Vertex nv;
|
||||
Linedef nl;
|
||||
|
||||
// Find the nearest vertex on the map
|
||||
nv = map.NearestVertex(pos);
|
||||
if(nv != null)
|
||||
// Find the nearest linedef on the map
|
||||
nl = map.NearestLinedef(pos);
|
||||
if(nl != null)
|
||||
{
|
||||
// Find the nearest linedef on the vertex
|
||||
nl = nv.NearestLinedef(pos);
|
||||
if(nl != null)
|
||||
// Check what side of line we are at
|
||||
if(nl.SideOfLine(pos) < 0f)
|
||||
{
|
||||
// Check what side of line we are at
|
||||
if(nl.SideOfLine(pos) < 0f)
|
||||
{
|
||||
// Front side
|
||||
if(nl.Front != null) newsector = nl.Front.Sector;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Back side
|
||||
if(nl.Back != null) newsector = nl.Back.Sector;
|
||||
}
|
||||
// Front side
|
||||
if(nl.Front != null) newsector = nl.Front.Sector;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Back side
|
||||
if(nl.Back != null) newsector = nl.Back.Sector;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -194,32 +197,35 @@ namespace CodeImp.DoomBuilder.Map
|
|||
|
||||
// This moves the thing
|
||||
// NOTE: This does not update sector! (call DetermineSector)
|
||||
public void Move(Vector3D newpos)
|
||||
public void Move(int x, int y, int zoffset)
|
||||
{
|
||||
// Change position
|
||||
pos = newpos;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.zoffset = zoffset;
|
||||
this.pos = new Vector3D(x, y, zoffset);
|
||||
}
|
||||
|
||||
// This rotates the thing
|
||||
public void Rotate(float newangle)
|
||||
{
|
||||
// Change angle
|
||||
angle = newangle;
|
||||
this.angle = newangle;
|
||||
}
|
||||
|
||||
// This updates all properties
|
||||
// NOTE: This does not update sector! (call DetermineSector)
|
||||
public void Update(int type, Vector3D pos, float angle,
|
||||
public void Update(int type, int x, int y, int zoffset, float angle,
|
||||
int flags, int tag, int action, byte[] args)
|
||||
{
|
||||
// Apply changes
|
||||
this.type = type;
|
||||
this.pos = pos;
|
||||
this.angle = angle;
|
||||
this.flags = flags;
|
||||
this.tag = tag;
|
||||
this.action = action;
|
||||
this.args = args;
|
||||
this.Move(x, y, zoffset);
|
||||
}
|
||||
|
||||
// This updates the settings from configuration
|
||||
|
@ -228,7 +234,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
ThingTypeInfo ti;
|
||||
|
||||
// Lookup settings
|
||||
ti = General.Map.Configuration.GetThingInfo(type);
|
||||
ti = General.Map.Config.GetThingInfo(type);
|
||||
|
||||
// Apply size
|
||||
size = ti.Width;
|
||||
|
|
|
@ -30,7 +30,7 @@ using System.Drawing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Map
|
||||
{
|
||||
internal class Vertex : IDisposable
|
||||
public class Vertex : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -121,9 +121,6 @@
|
|||
<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>
|
||||
</data>
|
||||
<data name="Splash2small" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Splash2small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Properties" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Properties.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -133,9 +130,15 @@
|
|||
<data name="VerticesMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\VerticesMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ThingsMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ThingsMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Splash2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Splash2.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LinesMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\LinesMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="SectorsMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SectorsMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -151,10 +154,7 @@
|
|||
<data name="SaveMap" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\SaveMap.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="LinesMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\LinesMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ThingsMode" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ThingsMode.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="Splash2small" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Splash2small.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
|
@ -30,7 +30,7 @@ using SlimDX.Direct3D;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal sealed class ColorCollection
|
||||
public sealed class ColorCollection
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ using System.Drawing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal sealed class ColorSetting : IEquatable<ColorSetting>
|
||||
public sealed class ColorSetting : IEquatable<ColorSetting>
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ using CodeImp.DoomBuilder.Interface;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal class D3DGraphics : IDisposable
|
||||
public class D3DGraphics : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal abstract class D3DShader : IDisposable
|
||||
public abstract class D3DShader : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal sealed class Display2DShader : D3DShader
|
||||
public sealed class Display2DShader : D3DShader
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ using SlimDX;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal interface ID3DResource : IDisposable
|
||||
public interface ID3DResource : IDisposable
|
||||
{
|
||||
// This is used to unload the resouce
|
||||
void UnloadResource();
|
||||
|
|
|
@ -37,7 +37,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal unsafe sealed class Plotter
|
||||
public unsafe sealed class Plotter
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ using System.Text;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal abstract class Renderer : IDisposable, ID3DResource
|
||||
public abstract class Renderer : IDisposable, ID3DResource
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ using CodeImp.DoomBuilder.Data;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal unsafe class Renderer2D : Renderer
|
||||
public unsafe class Renderer2D : Renderer
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
@ -564,7 +564,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
// Determine color
|
||||
if(l.Selected > 0) return General.Colors.Selection;
|
||||
else if(l.Action != 0) return General.Colors.Actions.WithAlpha(DOUBLESIDED_LINE_ALPHA);
|
||||
else if((l.Flags & General.Map.Configuration.SoundLinedefFlags) != 0) return General.Colors.Sounds.WithAlpha(DOUBLESIDED_LINE_ALPHA);
|
||||
else if((l.Flags & General.Map.Config.SoundLinedefFlags) != 0) return General.Colors.Sounds.WithAlpha(DOUBLESIDED_LINE_ALPHA);
|
||||
else return General.Colors.Linedefs.WithAlpha(DOUBLESIDED_LINE_ALPHA);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ using System.ComponentModel;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal class Renderer3D : Renderer
|
||||
public class Renderer3D : Renderer
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal class ShaderManager : IDisposable
|
||||
public class ShaderManager : IDisposable
|
||||
{
|
||||
#region ================== Constants
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ using System.Drawing.Imaging;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Rendering
|
||||
{
|
||||
internal sealed class Things2DShader : D3DShader
|
||||
public sealed class Things2DShader : D3DShader
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
|
Loading…
Reference in a new issue