]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix storage ui hovering over the hotbar (#36770)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Thu, 24 Apr 2025 22:10:43 +0000 (18:10 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Apr 2025 22:10:43 +0000 (00:10 +0200)
Content.Client/UserInterface/Systems/Storage/StorageUIController.cs

index 69cf6909e5f66941332afd48a200659f0698dc9b..5e6779193b131bb4262f9e2d2de68f6634ec5b7f 100644 (file)
@@ -126,6 +126,12 @@ public sealed class StorageUIController : UIController, IOnSystemChanged<Storage
                 child.SetPositionInParent(invisibleIndex);
             };
 
+            if (hotbar != null)
+            {
+                hotbar.DoubleStorageContainer.Visible = _openStorageLimit == 2;
+                hotbar.SingleStorageContainer.Visible = _openStorageLimit != 2;
+            }
+
             if (_openStorageLimit == 2)
             {
                 if (hotbar?.LeftStorageContainer.Children.Any(c => c.Visible) == false) // we're comparing booleans because it's bool? and not bool from the optional chaining