mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-30 08:32:00 +00:00
Thing Info panel, Linedef info panel: tag labels are now displayed for action arguments.
This commit is contained in:
parent
e487a9c80a
commit
88a6f5a46c
6 changed files with 47 additions and 44 deletions
|
@ -3219,10 +3219,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Wrap the value within the width of the texture (to prevent ridiculous values)
|
||||
// NOTE: We don't use ScaledWidth here because the texture offset is in pixels, not mappixels
|
||||
if(texture.IsImageLoaded) {
|
||||
if(alignx)
|
||||
j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny)
|
||||
j.sidedef.OffsetY %= texture.Height;
|
||||
if(alignx) j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny) j.sidedef.OffsetY %= texture.Height;
|
||||
}
|
||||
|
||||
// Add sidedefs forward (connected to the right vertex)
|
||||
|
@ -3239,7 +3237,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
// Apply alignment
|
||||
if(alignx)
|
||||
j.sidedef.OffsetX = (int)j.offsetx - (int)Math.Round(j.sidedef.Line.Length / scalex);
|
||||
j.controlSide.OffsetX = (int)j.offsetx - (int)Math.Round(j.sidedef.Line.Length / scalex);
|
||||
if(aligny)
|
||||
j.sidedef.OffsetY = (int)Math.Round((first.controlSide.Sector.CeilHeight - j.controlSide.Sector.CeilHeight) / scaley) + ystartalign;
|
||||
forwardoffset = (int)j.offsetx;
|
||||
|
@ -3250,10 +3248,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Wrap the value within the width of the texture (to prevent ridiculous values)
|
||||
// NOTE: We don't use ScaledWidth here because the texture offset is in pixels, not mappixels
|
||||
if(texture.IsImageLoaded) {
|
||||
if(alignx)
|
||||
j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny)
|
||||
j.sidedef.OffsetY %= texture.Height;
|
||||
if(alignx) j.sidedef.OffsetX %= texture.Width;
|
||||
if(aligny) j.sidedef.OffsetY %= texture.Height;
|
||||
}
|
||||
|
||||
// Add sidedefs backward (connected to the left vertex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue