Make click-dragging consider dragged's direction (#2231)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-10-12 01:30:24 +11:00
committed by GitHub
parent 48e3717da3
commit 413ca9812d

View File

@@ -241,6 +241,10 @@ namespace Content.Client.GameObjects.EntitySystems
dragSprite.Color = dragSprite.Color.WithAlpha(0.7f);
// keep it on top of everything
dragSprite.DrawDepth = (int) DrawDepth.Overlays;
if (dragSprite.Directional)
{
_dragShadow.Transform.WorldRotation = _draggedEntity.Transform.WorldRotation;
}
HighlightTargets();
}