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.
17 lines
557 B
17 lines
557 B
using Babushka.scripts.CSharp.Common.Inventory;
|
|
using Babushka.scripts.CSharp.GameEntity.Entities;
|
|
using Babushka.scripts.CSharp.GameEntity.Management;
|
|
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.Common.Fight.UI;
|
|
|
|
public partial class HealButtonVisual : Button
|
|
{
|
|
[Export] private ItemResource _healItemBlueprint = null!;
|
|
|
|
public void UpdateText()
|
|
{
|
|
var healItemsLeft = EntityManager.Instance.GetUniqueEntity<VesnaEntity>().inventory.TotalItemsOfBlueprint(_healItemBlueprint);
|
|
Text = $"x{healItemsLeft} - Heal";
|
|
}
|
|
} |