From abb20c0256b933f787069fbc30c82cf8ee9bc8eb Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 21 Feb 2025 03:51:01 +1100 Subject: [PATCH] Remove storage hotbar GUI bandaid (#35054) * Remove storage hotbar GUI bandaid With BUI deferred opens it also happened to fix this issue which is nice. * Update Content.Client/Storage/StorageBoundUserInterface.cs --- .../Storage/StorageBoundUserInterface.cs | 7 ----- .../Systems/Storage/StorageUIController.cs | 28 ------------------- 2 files changed, 35 deletions(-) diff --git a/Content.Client/Storage/StorageBoundUserInterface.cs b/Content.Client/Storage/StorageBoundUserInterface.cs index 16545c3578..8cb415dead 100644 --- a/Content.Client/Storage/StorageBoundUserInterface.cs +++ b/Content.Client/Storage/StorageBoundUserInterface.cs @@ -92,12 +92,5 @@ public sealed class StorageBoundUserInterface : BoundUserInterface Show(); LayoutContainer.SetPosition(_window, position); } - - public void ReOpen() - { - _window?.Orphan(); - _window = null; - Open(); - } } diff --git a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs index dbb16ab24a..768a434d83 100644 --- a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs +++ b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs @@ -61,39 +61,11 @@ public sealed class StorageUIController : UIController, IOnSystemChanged(); - - foreach (var bui in uiSystem.GetActorUis((_player.LocalEntity.Value, userComp))) - { - if (!uiSystem.TryGetOpenUi(bui.Entity, StorageComponent.StorageUiKey.Key, out var storageBui)) - continue; - - storageBui.ReOpen(); - } - } - private void OnStorageWindowTitle(bool obj) { WindowTitle = obj; -- 2.51.2