From eed3c2a5090402d9bab81ec18e12da1fba8efd52 Mon Sep 17 00:00:00 2001 From: Vordenburg <114301317+Vordenburg@users.noreply.github.com> Date: Sat, 18 Mar 2023 17:26:45 -0400 Subject: [PATCH] Add Rotation attribute to GuideEntityEmbed. (#14729) --- Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs b/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs index d00e3c2dac..840ecb1323 100644 --- a/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs +++ b/Content.Client/Guidebook/Controls/GuideEntityEmbed.xaml.cs @@ -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; -- 2.52.0