From: Vordenburg <114301317+Vordenburg@users.noreply.github.com> Date: Sat, 18 Mar 2023 21:26:45 +0000 (-0400) Subject: Add Rotation attribute to GuideEntityEmbed. (#14729) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=eed3c2a5090402d9bab81ec18e12da1fba8efd52;p=space-station-14.git Add Rotation attribute to GuideEntityEmbed. (#14729) --- 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;