Added basic health bar

This commit is contained in:
jonathan
2025-09-30 19:00:52 +02:00
parent 52f1560c48
commit f0db6372e5
6 changed files with 52 additions and 23 deletions
@@ -0,0 +1,14 @@
using Godot;
namespace Babushka.scripts.CSharp.Common.Fight.UI;
[GlobalClass]
public partial class FighterHealthBarVisual : Node2D
{
[Export] private Label _tmpHealthLabel = null!;
public void UpdateHealth(int currentHealth, int maxHealth)
{
_tmpHealthLabel.Text = $"{currentHealth} / {maxHealth}";
}
}
@@ -0,0 +1 @@
uid://b2dx06p6i7pu0