]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add Rotation attribute to GuideEntityEmbed. (#14729)
authorVordenburg <114301317+Vordenburg@users.noreply.github.com>
Sat, 18 Mar 2023 21:26:45 +0000 (17:26 -0400)
committerGitHub <noreply@github.com>
Sat, 18 Mar 2023 21:26:45 +0000 (14:26 -0700)
Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs

index d00e3c2dac5b2332893d585d1aefe78361edb4de..840ecb132319caeecfba1cbb39346c1ed616a12d 100644 (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;