Change the station map tracking dot color to cyan Co-authored-by: iacore <noreply+gpg-stub@1a-insec.net>
28 lines
842 B
C#
28 lines
842 B
C#
using System.Numerics;
|
|
using Content.Client.UserInterface.Controls;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Client.Pinpointer.UI;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class StationMapWindow : FancyWindow
|
|
{
|
|
public StationMapWindow(EntityUid? mapUid, EntityUid? trackedEntity)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
NavMapScreen.MapUid = mapUid;
|
|
|
|
if (trackedEntity != null)
|
|
NavMapScreen.TrackedCoordinates.Add(new EntityCoordinates(trackedEntity.Value, Vector2.Zero), (true, Color.Cyan));
|
|
|
|
if (IoCManager.Resolve<IEntityManager>().TryGetComponent<MetaDataComponent>(mapUid, out var metadata))
|
|
{
|
|
Title = metadata.EntityName;
|
|
}
|
|
|
|
NavMapScreen.ForceNavMapUpdate();
|
|
}
|
|
}
|