From 3f9cb1716138f674eecb29fc5482829676587f57 Mon Sep 17 00:00:00 2001 From: Flux Date: Fri, 3 Feb 2023 15:02:59 +0100 Subject: [PATCH] Add the ability to move a skin element by 10 pixels when holding shift --- osu.Game/Overlays/SkinEditor/SkinBlueprintContainer.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/osu.Game/Overlays/SkinEditor/SkinBlueprintContainer.cs b/osu.Game/Overlays/SkinEditor/SkinBlueprintContainer.cs index a448b3d0c1..c7b34fc199 100644 --- a/osu.Game/Overlays/SkinEditor/SkinBlueprintContainer.cs +++ b/osu.Game/Overlays/SkinEditor/SkinBlueprintContainer.cs @@ -104,22 +104,24 @@ namespace osu.Game.Overlays.SkinEditor protected override bool OnKeyDown(KeyDownEvent e) { + int delta = e.ShiftPressed ? 10 : 1; + switch (e.Key) { case Key.Left: - moveSelection(new Vector2(-1, 0)); + moveSelection(new Vector2(-delta, 0)); return true; case Key.Right: - moveSelection(new Vector2(1, 0)); + moveSelection(new Vector2(delta, 0)); return true; case Key.Up: - moveSelection(new Vector2(0, -1)); + moveSelection(new Vector2(0, -delta)); return true; case Key.Down: - moveSelection(new Vector2(0, 1)); + moveSelection(new Vector2(0, delta)); return true; }