Add directional icons to crew monitors (#7404)

This commit is contained in:
Leon Friedrich
2022-04-09 13:50:59 +12:00
committed by GitHub
parent 1c9062e881
commit 91a70bdaac
12 changed files with 226 additions and 40 deletions

View File

@@ -1,8 +1,4 @@
using System.Collections.Generic;
using Content.Shared.Medical.SuitSensor;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Medical.CrewMonitoring
{
@@ -18,7 +14,20 @@ namespace Content.Server.Medical.CrewMonitoring
/// <summary>
/// After what time sensor consider to be lost.
/// </summary>
[DataField("sensorTimeout")]
[DataField("sensorTimeout"), ViewVariables(VVAccess.ReadWrite)]
public float SensorTimeout = 10f;
/// <summary>
/// Whether the direction arrows in the monitor UI should snap the nearest diagonal or cardinal direction, or whether they should point exactly towards the target.
/// </summary>
[DataField("snap"), ViewVariables(VVAccess.ReadWrite)]
public bool Snap = true;
/// <summary>
/// Minimum distance before the monitor direction indicator stops pointing towards the target and instead
/// shows an icon indicating that the target is "here". Does not affect the displayed coordinates.
/// </summary>
[DataField("precision"), ViewVariables(VVAccess.ReadWrite)]
public float Precision = 10f;
}
}