mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Edit Selection Mode: added support for (counter)clockwise rotation actions (#900)
This commit is contained in:
parent
e9f66baf08
commit
0d4cecc134
2 changed files with 26 additions and 2 deletions
|
@ -2346,6 +2346,30 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
[BeginAction("rotateclockwise")]
|
||||
public void RotateCW()
|
||||
{
|
||||
rotation += Angle2D.DegToRad(5);
|
||||
|
||||
// Update
|
||||
UpdateGeometry();
|
||||
UpdateRectangleComponents();
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
[BeginAction("rotatecounterclockwise")]
|
||||
public void RotateCCW()
|
||||
{
|
||||
rotation -= Angle2D.DegToRad(5);
|
||||
|
||||
// Update
|
||||
UpdateGeometry();
|
||||
UpdateRectangleComponents();
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1317,7 +1317,7 @@ rotateclockwise
|
|||
{
|
||||
title = "Rotate Clockwise";
|
||||
category = "edit";
|
||||
description = "Rotates selected or highlighted things clockwise. Also rotates floor/ceiling textures in UDMF map format.";
|
||||
description = "Rotates selected or highlighted things clockwise. Also rotates floor/ceiling textures in UDMF map format, and rotates the selection in Edit Selection mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = false;
|
||||
allowscroll = true;
|
||||
|
@ -1330,7 +1330,7 @@ rotatecounterclockwise
|
|||
{
|
||||
title = "Rotate Counterclockwise";
|
||||
category = "edit";
|
||||
description = "Rotates selected or highlighted things counterclockwise. Also rotates floor/ceiling textures in UDMF map format.";
|
||||
description = "Rotates selected or highlighted things counterclockwise. Also rotates floor/ceiling textures in UDMF map format, and rotates the selection in Edit Selection mode.";
|
||||
allowkeys = true;
|
||||
allowmouse = false;
|
||||
allowscroll = true;
|
||||
|
|
Loading…
Reference in a new issue