From 6553fd3d6ea764c502f7f6839c6cfcc148aa42c9 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 23 Aug 2024 03:05:17 +1000 Subject: [PATCH] Fix inventory GUI for non-inventory entities (#31306) Default to invisible and only set visible if itemslots gets initialised. --- .../Systems/Inventory/InventoryUIController.cs | 7 +++++++ .../Systems/Inventory/Widgets/InventoryGui.xaml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs b/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs index 5d7a775104..49a2fba898 100644 --- a/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs +++ b/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs @@ -21,6 +21,7 @@ using Robust.Client.UserInterface.Controls; using Robust.Shared.Input; using Robust.Shared.Input.Binding; using Robust.Shared.Map; +using Robust.Shared.Player; using Robust.Shared.Utility; using static Content.Client.Inventory.ClientInventorySystem; @@ -399,6 +400,9 @@ public sealed class InventoryUIController : UIController, IOnStateEntered +