item on ground and pickup

This commit is contained in:
cblech
2025-04-14 16:49:29 +02:00
parent 9190b2a16a
commit 1062193785
10 changed files with 147 additions and 3 deletions
@@ -25,6 +25,7 @@ public partial class InventoryUi : Control
PopulateSlots();
SetSlotContent();
SetSlotSelectPosition();
InventoryManager.Instance.playerInventory.InventoryContentsChanged += SetSlotContent;
}
public override void _ExitTree()
@@ -88,7 +89,7 @@ public partial class InventoryUi : Control
var destinationSlot = index;
InventoryManager.Instance.MoveItem(_playerInventory, sourceSlot, _playerInventory, destinationSlot);
_slotOnMouse = null;
SetSlotContent();
//SetSlotContent();
}
}