Files
crystall-punk-14/Content.Client/Pinpointer/UI/StationMapWindow.xaml.cs

27 lines
704 B
C#
Raw Normal View History

using System.Numerics;
2023-04-13 16:21:24 +10:00
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()
2023-04-13 16:21:24 +10:00
{
RobustXamlLoader.Load(this);
}
public void Set(EntityUid? mapUid, EntityUid? trackedEntity)
{
2023-04-13 16:21:24 +10:00
NavMapScreen.MapUid = mapUid;
if (trackedEntity != null)
NavMapScreen.TrackedCoordinates.Add(new EntityCoordinates(trackedEntity.Value, Vector2.Zero), (true, Color.Cyan));
2023-04-13 16:21:24 +10:00
2023-12-09 23:38:50 -06:00
NavMapScreen.ForceNavMapUpdate();
2023-04-13 16:21:24 +10:00
}
}