mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 05:25:54 +00:00
Hud fixes
This commit is contained in:
parent
b7fde583f2
commit
c8cbad3268
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue