Inventory implemented
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user