Remove 2D suffix from visualizers (#1453)

This commit is contained in:
DrSmugleaf
2020-07-23 00:56:53 +02:00
committed by GitHub
parent 46f13da26d
commit c9057d01ae
85 changed files with 269 additions and 269 deletions

View File

@@ -0,0 +1,25 @@
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
using static Content.Shared.GameObjects.Components.SharedWiresComponent;
namespace Content.Client.GameObjects.Components.Wires
{
public class WiresVisualizer : AppearanceVisualizer
{
public override void OnChangeData(AppearanceComponent component)
{
base.OnChangeData(component);
var sprite = component.Owner.GetComponent<ISpriteComponent>();
if (component.TryGetData<bool>(WiresVisuals.MaintenancePanelState, out var state))
{
sprite.LayerSetVisible(WiresVisualLayers.MaintenancePanel, state);
}
}
public enum WiresVisualLayers
{
MaintenancePanel,
}
}
}