@@ -1,4 +1,4 @@
|
|||||||
using Content.Shared.Crayon;
|
using Content.Shared.Crayon;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Robust.Client.GameObjects;
|
using Robust.Client.GameObjects;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
@@ -19,9 +19,9 @@ namespace Content.Client.Crayon
|
|||||||
sprite.LayerSetState(0, state);
|
sprite.LayerSetState(0, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (component.TryGetData(CrayonVisuals.Color, out Color color))
|
if (component.TryGetData(CrayonVisuals.Color, out string color))
|
||||||
{
|
{
|
||||||
sprite.LayerSetColor(0, color);
|
sprite.LayerSetColor(0, Color.FromName(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (component.TryGetData(CrayonVisuals.Rotation, out Angle rotation))
|
if (component.TryGetData(CrayonVisuals.Rotation, out Angle rotation))
|
||||||
|
|||||||
Reference in New Issue
Block a user