Specifiable dock colours + stripeback displays (#9566)
This commit is contained in:
@@ -15,5 +15,17 @@ namespace Content.Server.Shuttles.Components
|
||||
|
||||
[ViewVariables]
|
||||
public override bool Docked => DockedWith != null;
|
||||
|
||||
/// <summary>
|
||||
/// Color that gets shown on the radar screen.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("radarColor")]
|
||||
public Color RadarColor = Color.DarkViolet;
|
||||
|
||||
/// <summary>
|
||||
/// Color that gets shown on the radar screen when the dock is highlighted.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("highlightedRadarColor")]
|
||||
public Color HighlightedRadarColor = Color.Magenta;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ namespace Content.Server.Shuttles.Systems
|
||||
{
|
||||
public sealed class ShuttleConsoleSystem : SharedShuttleConsoleSystem
|
||||
{
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly ActionBlockerSystem _blocker = default!;
|
||||
[Dependency] private readonly AlertsSystem _alertsSystem = default!;
|
||||
[Dependency] private readonly TagSystem _tags = default!;
|
||||
@@ -211,6 +210,8 @@ namespace Content.Server.Shuttles.Systems
|
||||
Angle = xform.LocalRotation,
|
||||
Entity = comp.Owner,
|
||||
Connected = comp.Docked,
|
||||
Color = comp.RadarColor,
|
||||
HighlightedColor = comp.HighlightedRadarColor,
|
||||
};
|
||||
result.Add(state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user