mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed: slightly incorrect texture name offsets in classic view in the texture browser
This commit is contained in:
parent
fbbfaad579
commit
d47dd9a533
5 changed files with 11 additions and 13 deletions
|
@ -67,8 +67,8 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
this.tooltip = tooltip; //mxd
|
||||
|
||||
//mxd. Calculate names width
|
||||
this.namewidth = (int)Math.Ceiling(General.Interface.MeasureString(icon.Name, SystemFonts.MessageBoxFont, 10000, StringFormat.GenericTypographic).Width);
|
||||
this.shortnamewidth = (int)Math.Ceiling(General.Interface.MeasureString(icon.ShortName, SystemFonts.MessageBoxFont, 10000, StringFormat.GenericTypographic).Width);
|
||||
this.namewidth = (int)Math.Ceiling(General.Interface.MeasureString(icon.Name, SystemFonts.MessageBoxFont, 10000, StringFormat.GenericTypographic).Width)+6;
|
||||
this.shortnamewidth = (int)Math.Ceiling(General.Interface.MeasureString(icon.ShortName, SystemFonts.MessageBoxFont, 10000, StringFormat.GenericTypographic).Width)+6;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -969,7 +969,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
if(General.Map.VisualCamera.Sector != null)
|
||||
{
|
||||
// If the camera is inside a sector, compare z coordinates
|
||||
translucentgeo.Sort(delegate(VisualGeometry vg1, VisualGeometry vg2)
|
||||
geopass.Sort(delegate(VisualGeometry vg1, VisualGeometry vg2)
|
||||
{
|
||||
if(vg1 == vg2) return 0;
|
||||
float camdist1, camdist2;
|
||||
|
@ -999,7 +999,7 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
}
|
||||
else
|
||||
{
|
||||
translucentgeo.Sort(delegate(VisualGeometry vg1, VisualGeometry vg2)
|
||||
geopass.Sort(delegate(VisualGeometry vg1, VisualGeometry vg2)
|
||||
{
|
||||
if(vg1 == vg2) return 0;
|
||||
return (int)((General.Map.VisualCamera.Position - vg2.BoundingBox[0]).GetLengthSq()
|
||||
|
|
|
@ -112,10 +112,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
base.Texture = General.Map.Data.UnknownTexture3D;
|
||||
setuponloadedtexture = Sidedef.LongLowTexture;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!base.Texture.IsImageLoaded)
|
||||
setuponloadedtexture = Sidedef.LongLowTexture;
|
||||
else if (!base.Texture.IsImageLoaded)
|
||||
{
|
||||
setuponloadedtexture = Sidedef.LongLowTexture;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
else if(!base.Texture.IsImageLoaded)
|
||||
{
|
||||
setuponloadedtexture = Sidedef.LongMiddleTexture;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -113,10 +113,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
base.Texture = General.Map.Data.UnknownTexture3D;
|
||||
setuponloadedtexture = Sidedef.LongHighTexture;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!base.Texture.IsImageLoaded)
|
||||
setuponloadedtexture = Sidedef.LongHighTexture;
|
||||
else if (!base.Texture.IsImageLoaded)
|
||||
{
|
||||
setuponloadedtexture = Sidedef.LongHighTexture;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue