You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
432 B
15 lines
432 B
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";
|
|
}
|
|
} |