diff --git a/Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs b/Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs index 8774c1dfb5c..f67762acc51 100644 --- a/Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs +++ b/Content.Client/Shuttles/UI/BaseShuttleControl.xaml.cs @@ -115,6 +115,15 @@ protected void DrawCircles(DrawingHandleScreen handle) } } + // Frontier Corvax: north line drawing + protected void DrawNorthLine(DrawingHandleScreen handle, Angle angle) + { + var origin = ScalePosition(-new Vector2(Offset.X, -Offset.Y)); + var aExtent = (angle - Math.Tau / 4).ToVec() * ScaledMinimapRadius * 1.42f; + var lineColor = Color.Red.WithAlpha(0.1f); + handle.DrawLine(origin, origin + aExtent, lineColor); + } + protected void DrawGrid(DrawingHandleScreen handle, Matrix3 matrix, Entity grid, Color color, float alpha = 0.01f) { var rator = Maps.GetAllTilesEnumerator(grid.Owner, grid.Comp); diff --git a/Content.Client/Shuttles/UI/ShuttleDockControl.xaml.cs b/Content.Client/Shuttles/UI/ShuttleDockControl.xaml.cs index f03c4402952..bf04b596a14 100644 --- a/Content.Client/Shuttles/UI/ShuttleDockControl.xaml.cs +++ b/Content.Client/Shuttles/UI/ShuttleDockControl.xaml.cs @@ -105,6 +105,7 @@ protected override void Draw(DrawingHandleScreen handle) } DrawCircles(handle); + DrawNorthLine(handle, _angle.Value); // Frontier Corvax: north line drawing var gridNent = EntManager.GetNetEntity(GridEntity); var mapPos = _xformSystem.ToMapCoordinates(_coordinates.Value); var ourGridMatrix = _xformSystem.GetWorldMatrix(gridXform.Owner); diff --git a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs index 3bab926dcf2..01374dc0820 100644 --- a/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs +++ b/Content.Client/Shuttles/UI/ShuttleNavControl.xaml.cs @@ -147,6 +147,10 @@ protected override void Draw(DrawingHandleScreen handle) Matrix3.Multiply(posMatrix, ourEntMatrix, out var ourWorldMatrix); var ourWorldMatrixInvert = ourWorldMatrix.Invert(); + // Frontier Corvax: north line drawing + var rot = ourEntRot + _rotation.Value; + DrawNorthLine(handle, rot); + // Draw our grid in detail var ourGridId = xform.GridUid; if (EntManager.TryGetComponent(ourGridId, out var ourGrid) && @@ -178,7 +182,6 @@ protected override void Draw(DrawingHandleScreen handle) handle.DrawPrimitives(DrawPrimitiveTopology.TriangleFan, radarPosVerts, Color.Lime); - var rot = ourEntRot + _rotation.Value; var viewBounds = new Box2Rotated(new Box2(-WorldRange, -WorldRange, WorldRange, WorldRange).Translated(mapPos.Position), rot, mapPos.Position); var viewAABB = viewBounds.CalcBoundingBox();