mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-19 06:28:40 +03:00
Uses the following Cherry-Picks: https://github.com/space-wizards/space-station-14/pull/26994 https://github.com/space-wizards/space-station-14/pull/26518 https://github.com/space-wizards/space-station-14/pull/26279 https://github.com/space-wizards/space-station-14/pull/24946 https://github.com/space-wizards/space-station-14/pull/27188 Requires: https://github.com/Simple-Station/Einstein-Engines/pull/535 https://github.com/Simple-Station/Einstein-Engines/pull/534 --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Jake Huxell <JakeHuxell@pm.me> Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: 0x6273 <0x40@keemail.me> Co-authored-by: DEATHB4DEFEAT <zachcaffee@outlook.com>
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using Content.Shared.Shuttles.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Shuttles.Components;
|
|
|
|
/// <summary>
|
|
/// Handles what a grid should look like on radar.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(SharedShuttleSystem))]
|
|
public sealed partial class IFFComponent : Component
|
|
{
|
|
public static readonly Color SelfColor = Color.MediumSpringGreen;
|
|
|
|
/// <summary>
|
|
/// Default color to use for IFF if no component is found.
|
|
/// </summary>
|
|
public static readonly Color IFFColor = Color.Gold;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
|
public IFFFlags Flags = IFFFlags.None;
|
|
|
|
/// <summary>
|
|
/// Color for this to show up on IFF.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
|
public Color Color = IFFColor;
|
|
}
|
|
|
|
[Flags]
|
|
public enum IFFFlags : byte
|
|
{
|
|
None = 0,
|
|
|
|
/// <summary>
|
|
/// Should the label for this grid be hidden at all ranges.
|
|
/// </summary>
|
|
HideLabel,
|
|
|
|
/// <summary>
|
|
/// Should the grid hide entirely (AKA full stealth).
|
|
/// Will also hide the label if that is not set.
|
|
/// </summary>
|
|
Hide,
|
|
|
|
// TODO: Need one that hides its outline, just replace it with a bunch of triangles or lines or something.
|
|
}
|