security HUD now shows a job icon on entities with a body (#18054)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Array;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -24,6 +24,12 @@ public class StatusIconData : IComparable<StatusIconData>
|
||||
[DataField("priority")]
|
||||
public int Priority = 10;
|
||||
|
||||
/// <summary>
|
||||
/// A preference for where the icon will be displayed. None | Left | Right
|
||||
/// </summary>
|
||||
[DataField("locationPreference")]
|
||||
public StatusIconLocationPreference LocationPreference = StatusIconLocationPreference.None;
|
||||
|
||||
public int CompareTo(StatusIconData? other)
|
||||
{
|
||||
return Priority.CompareTo(other?.Priority ?? int.MaxValue);
|
||||
@@ -49,3 +55,11 @@ public sealed class StatusIconPrototype : StatusIconData, IPrototype, IInheritin
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum StatusIconLocationPreference : byte
|
||||
{
|
||||
None,
|
||||
Left,
|
||||
Right,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user