💄 Made heal button show how many beats are left

This commit is contained in:
jonathan
2025-12-16 19:24:20 +01:00
parent 7310bfbf6e
commit 5f75bde317
3 changed files with 26 additions and 2 deletions
@@ -0,0 +1,15 @@
using Babushka.scripts.CSharp.Common.Inventory;
using Godot;
namespace Babushka.scripts.CSharp.Common.Fight.UI;
public partial class HealButtonVisual : Button
{
[Export] private ItemResource _healItemBlueprint = null!;
public void UpdateText()
{
var healItemsLeft = InventoryManager.Instance.playerInventory!.TotalItemsOfBlueprint(_healItemBlueprint);
Text = $"x{healItemsLeft} - Heal";
}
}
@@ -0,0 +1 @@
uid://71mdwp2m4rta