add ability to edit ghost colors (#17662)
This commit is contained in:
@@ -148,6 +148,9 @@ namespace Content.Client.Ghost
|
||||
|
||||
private void OnGhostState(EntityUid uid, GhostComponent component, ref ComponentHandleState args)
|
||||
{
|
||||
if (TryComp<SpriteComponent>(uid, out var sprite))
|
||||
sprite.LayerSetColor(0, component.color);
|
||||
|
||||
if (uid != _playerManager.LocalPlayer?.ControlledEntity)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user