From 46f707a719441d7c9237f4142eba5f95c3af14aa Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 20 Oct 2022 00:49:07 +1300 Subject: [PATCH] Misc hand ui fixes (#12048) --- .../Systems/Hands/HandsUIController.cs | 17 +++---- .../Inventory/InventoryUIController.cs | 48 ++++++++++++++++++- 2 files changed, 56 insertions(+), 9 deletions(-) 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