Allow rotation actions in Edit Selection mode

This commit is contained in:
spherallic 2023-02-14 23:39:45 +01:00
parent 00144d42a9
commit 90b59fcebc

View file

@ -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
}
}