From c6bbb834f7758027c0df338f1520f34fad3befea Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 9 Sep 2025 19:09:34 -0300 Subject: Organização MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/GUI/Hud.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'scripts/GUI/Hud.cs') 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("VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer/AspectRatioContainer/HPbar"); + HpBar = GetNode("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; } } -- cgit v1.2.3