Actually add move selection by 8 mp actions

This commit is contained in:
spherallic 2023-05-08 15:45:49 +02:00
parent 0514086933
commit bd87668555

View file

@ -2184,6 +2184,54 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Interface.RedrawDisplay();
}
[BeginAction("moveselectionup8")]
public void MoveSelectionUp8()
{
offset.y += 8;
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}
[BeginAction("moveselectiondown8")]
public void MoveSelectionDown8()
{
offset.y -= 8;
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}
[BeginAction("moveselectionleft8")]
public void MoveSelectionLeft8()
{
offset.x -= 8;
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}
[BeginAction("moveselectionright8")]
public void MoveSelectionRight8()
{
offset.x += 8;
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}
//mxd. Rotate clockwise
[BeginAction("rotateclockwise")]
public void RotateCW()