mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
Hud fixes
This commit is contained in:
parent
b7fde583f2
commit
c8cbad3268
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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