diff --git a/Content.Client/UserInterface/Systems/Hands/HandsUIController.cs b/Content.Client/UserInterface/Systems/Hands/HandsUIController.cs index e49688d2d2..7633c28a17 100644 --- a/Content.Client/UserInterface/Systems/Hands/HandsUIController.cs +++ b/Content.Client/UserInterface/Systems/Hands/HandsUIController.cs @@ -1,4 +1,4 @@ -using Content.Client.Gameplay; +using Content.Client.Gameplay; using Content.Client.Hands; using Content.Client.Hands.Systems; using Content.Client.UserInterface.Controls; @@ -146,7 +146,6 @@ public sealed class HandsUIController : UIController, IOnStateEntered, IOnStateExited, - IOnSystemChanged + IOnSystemChanged, IOnSystemChanged { [Dependency] private readonly IEntityManager _entities = default!; [UISystemDependency] private readonly ClientInventorySystem _inventorySystem = default!; + [UISystemDependency] private readonly HandsSystem _handsSystem = default!; private ClientInventoryComponent? _playerInventory; private readonly Dictionary _slotGroups = new(); @@ -33,6 +35,8 @@ public sealed class InventoryUIController : UIController, IOnStateEntered UIManager.ActiveScreen?.GetWidget()?.InventoryButton; + private SlotControl? _lastHovered = null; + public void OnStateEntered(GameplayState state) { DebugTools.Assert(_strippingWindow == null); @@ -247,6 +251,12 @@ public sealed class InventoryUIController : UIController, IOnStateEntered