Add Rotation attribute to GuideEntityEmbed. (#14729)

This commit is contained in:
Vordenburg
2023-03-18 17:26:45 -04:00
committed by GitHub
parent 360a507688
commit eed3c2a509

View File

@@ -164,6 +164,11 @@ public sealed partial class GuideEntityEmbed : BoxContainer, IDocumentTag
if (args.TryGetValue("Interactive", out var interactive))
Interactive = bool.Parse(interactive);
if (args.TryGetValue("Rotation", out var rotation))
{
Sprite.Rotation = Angle.FromDegrees(double.Parse(rotation));
}
Margin = new Thickness(4, 8);
control = this;