From c8cbad3268d2a7b492b379247d3b3053bd89d1ba Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 9 Apr 2025 09:30:49 +0200 Subject: [PATCH] Hud fixes --- Scenes/HUD/HUD.tscn | 2 +- Scripts/Hud.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scenes/HUD/HUD.tscn b/Scenes/HUD/HUD.tscn index d4f63074..65e1a3b4 100644 --- a/Scenes/HUD/HUD.tscn +++ b/Scenes/HUD/HUD.tscn @@ -187,7 +187,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 4.0 offset_top = 6.0 -offset_right = -235.0 +offset_right = -160.0 offset_bottom = -3.0 grow_horizontal = 2 grow_vertical = 2 diff --git a/Scripts/Hud.cs b/Scripts/Hud.cs index b759b0d8..f74c27bf 100644 --- a/Scripts/Hud.cs +++ b/Scripts/Hud.cs @@ -139,7 +139,7 @@ public partial class Hud : CanvasLayer _fairyTerminatedPanel.Hide(); } - _healthLabel.Text = $"{newHealth}/{maxHealth}"; + _healthLabel.Text = $"{newHealth:N0}/{maxHealth:N0}"; if (_healthBar != null) { _healthBar.Value = newHealth; @@ -148,7 +148,7 @@ public partial class Hud : CanvasLayer public void UpdateShield(float newValue, float maxValue) { - _shieldLabel.Text = $"{newValue}/{maxValue}"; + _shieldLabel.Text = $"{newValue:N0}/{maxValue:N0}"; if (_shieldBar != null) { _shieldBar.Value = newValue; @@ -157,7 +157,7 @@ public partial class Hud : CanvasLayer public void UpdateMotivation(float newValue, float maxValue) { - _motivationLabel.Text = $"{newValue}%"; + _motivationLabel.Text = $"{newValue:N0}%"; } public void UpdateInteractable(Interactable interactable) {