2020-07-24 14:51:18 +02:00
|
|
|
|
using Content.Shared.GameObjects.Components.Pointing;
|
|
|
|
|
|
using Robust.Client.GameObjects;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using DrawDepth = Content.Shared.GameObjects.DrawDepth;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.Components.Pointing
|
|
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
public class PointingArrowComponent : SharedPointingArrowComponent
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void Startup()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Startup();
|
|
|
|
|
|
|
2021-03-10 14:48:29 +01:00
|
|
|
|
if (Owner.TryGetComponent(out SpriteComponent? sprite))
|
2020-07-24 14:51:18 +02:00
|
|
|
|
{
|
|
|
|
|
|
sprite.DrawDepth = (int) DrawDepth.Overlays;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|