diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-09 19:09:34 -0300 |
| commit | c6bbb834f7758027c0df338f1520f34fad3befea (patch) | |
| tree | 1818cd23c24be16fbe19b16dd0a510874d440d83 /scripts/GUI/Hud.cs | |
| parent | f1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (diff) | |
Organização
Diffstat (limited to 'scripts/GUI/Hud.cs')
| -rw-r--r-- | scripts/GUI/Hud.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/GUI/Hud.cs b/scripts/GUI/Hud.cs index 614fa5e..1149728 100644 --- a/scripts/GUI/Hud.cs +++ b/scripts/GUI/Hud.cs @@ -1,17 +1,20 @@ using Godot; -using System; + +namespace TheLegendOfGustav.GUI; public partial class Hud : Node { - private TextureProgressBar hpBar; + private TextureProgressBar HpBar { get; set; } - public override void _Ready() { + public override void _Ready() + { base._Ready(); - hpBar = GetNode<TextureProgressBar>("VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer/AspectRatioContainer/HPbar"); + HpBar = GetNode<TextureProgressBar>("VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer/AspectRatioContainer/HPbar"); } - public void OnHealthChanged(int hp, int maxHp) { - hpBar.Value = hp; - hpBar.MaxValue = maxHp; + public void OnHealthChanged(int hp, int maxHp) + { + HpBar.Value = hp; + HpBar.MaxValue = maxHp; } } |
