mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Boss HUD
This commit is contained in:
parent
b4fdb9c9e3
commit
4be64cf7ec
12 changed files with 220 additions and 33 deletions
54
Scripts/UI/BossHud.cs
Normal file
54
Scripts/UI/BossHud.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.UI;
|
||||
|
||||
public partial class BossHud : CanvasLayer
|
||||
{
|
||||
[Export] public Label BossNameLabel { get; set; }
|
||||
[Export] public Label SpellCardNameLabel { get; set; }
|
||||
[Export] public Label SpellCardsCountLabel { get; set; }
|
||||
[Export] public Label SpellCardTimerLabel { get; set; }
|
||||
[Export] public ProgressBar BossHealthBar { get; set; }
|
||||
|
||||
public string BossName
|
||||
{
|
||||
get => BossNameLabel.Text;
|
||||
set => BossNameLabel.Text = value;
|
||||
}
|
||||
|
||||
public string SpellCardName
|
||||
{
|
||||
get => SpellCardNameLabel.Text;
|
||||
set => SpellCardNameLabel.Text = value;
|
||||
}
|
||||
|
||||
public string SpellCardsCount
|
||||
{
|
||||
get => SpellCardsCountLabel.Text;
|
||||
set => SpellCardsCountLabel.Text = value;
|
||||
}
|
||||
|
||||
public string SpellCardTimer
|
||||
{
|
||||
get => SpellCardTimerLabel.Text;
|
||||
set => SpellCardTimerLabel.Text = value;
|
||||
}
|
||||
|
||||
public double BossHealth
|
||||
{
|
||||
get => BossHealthBar.Value;
|
||||
set => BossHealthBar.Value = value;
|
||||
}
|
||||
|
||||
public double BossMaxHealth
|
||||
{
|
||||
get => BossHealthBar.MaxValue;
|
||||
set => BossHealthBar.MaxValue = value;
|
||||
}
|
||||
|
||||
public void Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue