From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Tue, 20 Jan 2026 11:59:58 +0000 (+1000) Subject: Fix MagicMirror UI (#42544) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7f7f3b6ef105cfff28265c0e51e651d618dcb006;p=space-station-14.git Fix MagicMirror UI (#42544) --- diff --git a/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs b/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs index ec247da1ac..4344926e85 100644 --- a/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs +++ b/Content.Client/MagicMirror/MagicMirrorBoundUserInterface.cs @@ -20,6 +20,9 @@ public sealed class MagicMirrorBoundUserInterface : BoundUserInterface base.Open(); _window = this.CreateWindow(); + + _window.Title = EntMan.GetComponent(Owner).EntityName; + _window.MarkingsPicker.SetModel(_markingsModel); _markingsModel.MarkingsChanged += (_, _) => diff --git a/Content.Client/MagicMirror/MagicMirrorWindow.xaml b/Content.Client/MagicMirror/MagicMirrorWindow.xaml index a09b674508..3de0aecef3 100644 --- a/Content.Client/MagicMirror/MagicMirrorWindow.xaml +++ b/Content.Client/MagicMirror/MagicMirrorWindow.xaml @@ -1,6 +1,5 @@ diff --git a/Content.Shared/MagicMirror/MagicMirrorSystem.cs b/Content.Shared/MagicMirror/MagicMirrorSystem.cs index 65a4d11079..ca7609c97d 100644 --- a/Content.Shared/MagicMirror/MagicMirrorSystem.cs +++ b/Content.Shared/MagicMirror/MagicMirrorSystem.cs @@ -142,6 +142,9 @@ public sealed class MagicMirrorSystem : EntitySystem if (!args.CanReach || args.Target == null) return; + if (!HasComp(args.Target.Value)) + return; + UpdateInterface(mirror, args.Target.Value); _userInterface.TryOpenUi(mirror.Owner, MagicMirrorUiKey.Key, args.User); } diff --git a/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl b/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl index 1b22fbf828..ec2289cb90 100644 --- a/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl +++ b/Resources/Locale/en-US/character-appearance/components/magic-mirror-component.ftl @@ -1,6 +1,5 @@ magic-mirror-component-activate-user-has-no-hair = You can't have any hair! -magic-mirror-window-title = Magic Mirror magic-mirror-add-slot-self = You're giving yourself some hair. magic-mirror-remove-slot-self = You're removing some of your hair. magic-mirror-change-slot-self = You're changing your hairstyle.