From bd876685551256a12ce2522bde5b12e2003f7cea Mon Sep 17 00:00:00 2001 From: spherallic Date: Mon, 8 May 2023 15:45:49 +0200 Subject: [PATCH] Actually add move selection by 8 mp actions --- .../ClassicModes/EditSelectionMode.cs | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/Source/Plugins/BuilderModes/ClassicModes/EditSelectionMode.cs b/Source/Plugins/BuilderModes/ClassicModes/EditSelectionMode.cs index 6d63a1d..b0a9f96 100644 --- a/Source/Plugins/BuilderModes/ClassicModes/EditSelectionMode.cs +++ b/Source/Plugins/BuilderModes/ClassicModes/EditSelectionMode.cs @@ -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()