mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-14 16:04:50 +00:00
🐛 fix health display
This commit is contained in:
parent
6a0e28e2e6
commit
223aab2527
5 changed files with 13 additions and 12 deletions
|
|
@ -25,8 +25,8 @@ class_name HUD extends CanvasLayer
|
|||
@export var _energy_bar : ProgressBar
|
||||
|
||||
func _ready() -> void:
|
||||
_update_health_bar(100.)
|
||||
_update_energy_bar(100.)
|
||||
_update_health_bar(1.)
|
||||
_update_energy_bar(1.)
|
||||
|
||||
func _update_energy_bar(energy : float) -> void:
|
||||
_energy_bar.value = energy
|
||||
|
|
@ -146,7 +146,8 @@ layout_mode = 2
|
|||
mouse_filter = 2
|
||||
theme_override_styles/background = ExtResource("1_gmv44")
|
||||
theme_override_styles/fill = ExtResource("2_6ejsl")
|
||||
value = 60.0
|
||||
max_value = 1.0
|
||||
value = 1.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="EnergyBar" type="ProgressBar" parent="MarginContainer/HBoxContainer/VBoxContainer"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue