Allow Shift to invert the Rotate button's direction

This commit is contained in:
Luke Taylor committed 2021-04-28 13:08:37 -04:00
1 parent f1dfb4aad8
commit e8bcff542a
1 file changed
+6 -1
@@ -104,7 +104,12 @@ namespace Artemis.UI.Shared.Screens.GradientEditor
public void RotateColorStops()
{
List<ColorStopViewModel> stops = ColorStopViewModels.OrderByDescending(x => x.OffsetFloat).ToList();
List<ColorStopViewModel> stops;
if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift))
stops = ColorStopViewModels.OrderBy(x => x.OffsetFloat).ToList();
else
stops = ColorStopViewModels.OrderByDescending(x => x.OffsetFloat).ToList();
float lastStopPosition = stops.Last().OffsetFloat;
foreach (ColorStopViewModel stop in stops)
{