mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
Allow rotation actions in Edit Selection mode
This commit is contained in:
parent
00144d42a9
commit
90b59fcebc
1 changed files with 26 additions and 0 deletions
|
@ -2179,6 +2179,32 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
//mxd. Rotate clockwise
|
||||
[BeginAction("rotateclockwise")]
|
||||
public void RotateCW()
|
||||
{
|
||||
rotation += Angle2D.DegToRad(5);
|
||||
|
||||
// Update
|
||||
UpdateGeometry();
|
||||
UpdateRectangleComponents();
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
//mxd. Rotate counterclockwise
|
||||
[BeginAction("rotatecounterclockwise")]
|
||||
public void RotateCCW()
|
||||
{
|
||||
rotation -= Angle2D.DegToRad(5);
|
||||
|
||||
// Update
|
||||
UpdateGeometry();
|
||||
UpdateRectangleComponents();
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue