mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
"Copy Texture Offsets" and "Paste Texture Offsets" actions now work in Doom and Hexen map formats.
This commit is contained in:
parent
0fe02bd3d3
commit
0469592bf5
1 changed files with 9 additions and 3 deletions
|
@ -846,8 +846,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
public virtual void OnPasteTextureOffsets()
|
||||
{
|
||||
mode.CreateUndo("Paste texture offsets");
|
||||
SetTextureOffsetX(BuilderPlug.Me.CopiedOffsets.X);
|
||||
SetTextureOffsetY(BuilderPlug.Me.CopiedOffsets.Y);
|
||||
if (General.Map.UDMF) {
|
||||
SetTextureOffsetX(BuilderPlug.Me.CopiedOffsets.X);
|
||||
SetTextureOffsetY(BuilderPlug.Me.CopiedOffsets.Y);
|
||||
} else {
|
||||
Sidedef.OffsetX = BuilderPlug.Me.CopiedOffsets.X;
|
||||
Sidedef.OffsetY = BuilderPlug.Me.CopiedOffsets.Y;
|
||||
}
|
||||
mode.SetActionResult("Pasted texture offsets " + BuilderPlug.Me.CopiedOffsets.X + ", " + BuilderPlug.Me.CopiedOffsets.Y + ".");
|
||||
|
||||
// Update sidedef geometry
|
||||
|
@ -866,7 +871,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Copy texture offsets
|
||||
public virtual void OnCopyTextureOffsets()
|
||||
{
|
||||
BuilderPlug.Me.CopiedOffsets = GetTextureOffset();
|
||||
//mxd
|
||||
BuilderPlug.Me.CopiedOffsets = General.Map.UDMF ? GetTextureOffset() : new Point(Sidedef.OffsetX, Sidedef.OffsetY);
|
||||
mode.SetActionResult("Copied texture offsets " + BuilderPlug.Me.CopiedOffsets.X + ", " + BuilderPlug.Me.CopiedOffsets.Y + ".");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue