2023-07-08 14:08:32 +10:00
|
|
|
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
|
|
|
|
|
{
|
2024-07-21 14:48:13 +10:00
|
|
|
public StationMapWindow()
|
2023-04-13 16:21:24 +10:00
|
|
|
{
|
|
|
|
|
RobustXamlLoader.Load(this);
|
2024-07-21 14:48:13 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Set(EntityUid? mapUid, EntityUid? trackedEntity)
|
|
|
|
|
{
|
2023-04-13 16:21:24 +10:00
|
|
|
NavMapScreen.MapUid = mapUid;
|
|
|
|
|
|
|
|
|
|
if (trackedEntity != null)
|
2024-01-19 05:31:29 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|