Fixed inventory button not updating when window was closed (#304)
* Fixed inventory button not updating when window was closed * Only add the event handler once * uhhhh * UHHHHHH
This commit is contained in:
committed by
Pieter-Jan Briers
parent
73dc55d8ef
commit
534af65f7c
@@ -43,7 +43,7 @@ namespace Content.Client.GameObjects
|
||||
base.Initialize();
|
||||
|
||||
_window = new HumanInventoryWindow(_loc, _resourceCache);
|
||||
|
||||
_window.OnClose += () => GameHud.InventoryButtonDown = false;
|
||||
foreach (var (slot, button) in _window.Buttons)
|
||||
{
|
||||
button.OnPressed = AddToInventory;
|
||||
|
||||
Reference in New Issue
Block a user