generated from krampus/template-godot4
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://dmciuk3pbjsae"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dtdqninlnu10o" path="res://assets/ui/lifebar_fill_grey.png" id="1_nhls1"]
|
|
[ext_resource type="Script" path="res://src/ui/shot_hud/life_bar/life_bar.gd" id="2_6jpmf"]
|
|
[ext_resource type="Texture2D" uid="uid://bvwh0yunmvirp" path="res://assets/ui/lifebar_patch.png" id="3_8s5ot"]
|
|
[ext_resource type="Texture2D" uid="uid://dv8757eh7bgmm" path="res://assets/ui/lifebar_fill_damage.png" id="4_ohduq"]
|
|
|
|
[node name="LifeBar" type="TextureProgressBar"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
step = 0.01
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 32
|
|
stretch_margin_top = 16
|
|
stretch_margin_right = 32
|
|
stretch_margin_bottom = 16
|
|
texture_progress = ExtResource("1_nhls1")
|
|
script = ExtResource("2_6jpmf")
|
|
damage_tween_time = 0.6
|
|
|
|
[node name="DamageBar" type="TextureProgressBar" parent="."]
|
|
unique_name_in_owner = true
|
|
show_behind_parent = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
step = 0.01
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 32
|
|
stretch_margin_top = 16
|
|
stretch_margin_right = 32
|
|
stretch_margin_bottom = 16
|
|
texture_under = ExtResource("3_8s5ot")
|
|
texture_progress = ExtResource("4_ohduq")
|
|
tint_progress = Color(0.9, 0, 0, 1)
|
|
|
|
[node name="DamageUpdateTimer" type="Timer" parent="."]
|
|
|
|
[connection signal="value_changed" from="." to="." method="_on_value_changed"]
|
|
[connection signal="timeout" from="DamageUpdateTimer" to="." method="_on_damage_update_timer_timeout"]
|