Skip to content

Commit

Permalink
Add begin end block comment
Browse files Browse the repository at this point in the history
  • Loading branch information
GreaseMonk committed Feb 26, 2024
1 parent 23148ed commit 849476f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Content.Client/Shuttles/UI/RadarControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ protected override void Draw(DrawingHandleScreen handle)
_grids.Clear();
_mapManager.FindGridsIntersecting(xform.MapID, new Box2(pos - MaxRadarRangeVector, pos + MaxRadarRangeVector), ref _grids);

// Frontier - collect blip location data outside foreach - more changes ahead
var blipDataList = new List<BlipData>();

// Draw other grids... differently
Expand Down Expand Up @@ -258,6 +259,11 @@ protected override void Draw(DrawingHandleScreen handle)
// Color.FromHex("#FFC000FF")
// Hostile default: Color.Firebrick

/****************************************************************************
* FRONTIER - BEGIN radar improvements
* Everything below until end block belong to frontier improvements to radar
*****************************************************************************/

if (ShowIFF && (iff == null && IFFComponent.ShowIFFDefault || (iff.Flags & IFFFlags.HideLabel) == 0x0))
{
var gridBounds = grid.Comp.LocalAABB;
Expand Down Expand Up @@ -378,6 +384,10 @@ protected override void Draw(DrawingHandleScreen handle)
}
}

/**
* Frontier - Adds blip style triangles that are on ships or pointing towards ships on the edges of the radar.
* Draws blips at the BlipData's uiPosition and uses VectorToPosition to rotate to point towards ships.
*/
private void DrawBlips(
DrawingHandleBase handle,
List<BlipData> blipDataList
Expand Down Expand Up @@ -448,6 +458,9 @@ List<BlipData> blipDataList
handle.DrawPrimitives(DrawPrimitiveTopology.TriangleList, color.Value.Span, color.Key);
}
}
/****************************************************************************
* FRONTIER - END radar improvements
*****************************************************************************/

private void Clear()
{
Expand Down

0 comments on commit 849476f

Please sign in to comment.