Crayon fix (#4848)
* removed line that broke crayon decals * Removed rotation from crayon decals.
This commit is contained in:
@@ -23,11 +23,6 @@ namespace Content.Client.Crayon
|
|||||||
{
|
{
|
||||||
sprite.LayerSetColor(0, Color.FromName(color));
|
sprite.LayerSetColor(0, Color.FromName(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (component.TryGetData(CrayonVisuals.Rotation, out Angle rotation))
|
|
||||||
{
|
|
||||||
sprite.Rotation = rotation;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ namespace Content.Server.Crayon
|
|||||||
{
|
{
|
||||||
appearance.SetData(CrayonVisuals.State, SelectedState);
|
appearance.SetData(CrayonVisuals.State, SelectedState);
|
||||||
appearance.SetData(CrayonVisuals.Color, _color);
|
appearance.SetData(CrayonVisuals.Color, _color);
|
||||||
appearance.SetData(CrayonVisuals.Rotation, eventArgs.User.Transform.LocalRotation);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_useSound != null)
|
if (_useSound != null)
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ namespace Content.Shared.Crayon
|
|||||||
public enum CrayonVisuals
|
public enum CrayonVisuals
|
||||||
{
|
{
|
||||||
State,
|
State,
|
||||||
Color,
|
Color
|
||||||
Rotation
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
|
|||||||
Reference in New Issue
Block a user