Improve autolathe & protolathe visuals.

Used correct Eris autolathe sprite.
Gave them an unlit layer.
This commit is contained in:
Pieter-Jan Briers
2019-10-14 09:57:57 +02:00
parent f3f05b0396
commit 9a38577a18
23 changed files with 612 additions and 12 deletions

View File

@@ -0,0 +1,25 @@
using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components;
namespace Content.Client.GameObjects.Components.Power
{
[UsedImplicitly]
public class PowerDeviceVisualizer2D : AppearanceVisualizer
{
public override void OnChangeData(AppearanceComponent component)
{
base.OnChangeData(component);
var sprite = component.Owner.GetComponent<ISpriteComponent>();
var powered = component.TryGetData(PowerDeviceVisuals.Powered, out bool poweredVar) && poweredVar;
sprite.LayerSetVisible(PowerDeviceVisualLayers.Powered, powered);
}
}
public enum PowerDeviceVisualLayers
{
Powered
}
}