Inventory implemented

This commit is contained in:
2025-05-20 18:27:50 +02:00
parent f3ed5e0ad0
commit 60928c520c
5 changed files with 86 additions and 32 deletions
@@ -82,7 +82,6 @@ public partial class InventoryUi : Control
var slotInstance = _slots.GetChild<SlotUi>(index);
slotInstance.index = index;
slotInstance.Clicked += SlotClicked;
_slots.AddChild(slotInstance);
}
}
@@ -147,7 +146,7 @@ public partial class InventoryUi : Control
_inventoryExtended = !_inventoryExtended;
if (_inventoryExtended)
{
//GD.Print("Open inventory");
GD.Print("Open inventory");
_inventoryExtensionTween = GetTree().CreateTween();
_slotSelect.Hide();
_inventoryExtensionTween
@@ -157,7 +156,7 @@ public partial class InventoryUi : Control
}
else
{
//GD.Print("Close inventory");
GD.Print("Close inventory");
_inventoryExtensionTween = GetTree().CreateTween();
_slotSelect.Show();
_inventoryExtensionTween