using Content.Shared.Wires; using Robust.Client.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.IoC; namespace Content.Client.Wires.Visualizers { public sealed class WiresVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { base.OnChangeData(component); var sprite = IoCManager.Resolve().GetComponent(component.Owner); if (component.TryGetData(WiresVisuals.MaintenancePanelState, out var state)) { sprite.LayerSetVisible(WiresVisualLayers.MaintenancePanel, state); } // Mainly for spawn window else { sprite.LayerSetVisible(WiresVisualLayers.MaintenancePanel, false); } } public enum WiresVisualLayers : byte { MaintenancePanel, } } }