Skip to content

Commit

Permalink
navmap work
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth committed Aug 23, 2024
1 parent 9249980 commit 6f63fea
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 410 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public sealed partial class CrewMonitoringNavMapControl : NavMapControl

public CrewMonitoringNavMapControl() : base()
{
WallColor = new Color(192, 122, 196);
TileColor = new(71, 42, 72);
BackgroundColor = Color.FromSrgb(TileColor.WithAlpha(BackgroundOpacity));
NavData.WallColor = Color.FromSrgb(new Color(192, 122, 196));
NavData.TileColor = Color.FromSrgb(new(71, 42, 72));
BackgroundColor = NavData.TileColor.WithAlpha(BackgroundOpacity);

_trackedEntityLabel = new Label
{
Expand All @@ -41,7 +41,7 @@ public CrewMonitoringNavMapControl() : base()
};

_trackedEntityPanel.AddChild(_trackedEntityLabel);
this.AddChild(_trackedEntityPanel);
AddChild(_trackedEntityPanel);
}

protected override void FrameUpdate(FrameEventArgs args)
Expand All @@ -56,7 +56,7 @@ protected override void FrameUpdate(FrameEventArgs args)
return;
}

foreach ((var netEntity, var blip) in TrackedEntities)
foreach (var (netEntity, blip) in TrackedEntities)
{
if (netEntity != Focus)
continue;
Expand Down
Loading

0 comments on commit 6f63fea

Please sign in to comment.