summaryrefslogtreecommitdiff
path: root/HPBar.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-08-25 23:47:22 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-08-25 23:47:22 +0200
commitcf4f54f8e43d1deb03e1b644f6a374530efa11e3 (patch)
tree7003af7af09775f09dda2164c4b16faa05a1290f /HPBar.tscn
parent8d4e709f7e2390e06c3e412c20662e8bc21f0d0c (diff)
next commit
Diffstat (limited to 'HPBar.tscn')
-rw-r--r--HPBar.tscn78
1 files changed, 78 insertions, 0 deletions
diff --git a/HPBar.tscn b/HPBar.tscn
new file mode 100644
index 0000000..a24b23b
--- /dev/null
+++ b/HPBar.tscn
@@ -0,0 +1,78 @@
+[gd_scene load_steps=8 format=3 uid="uid://bjcrf4o4a80iv"]
+
+[ext_resource type="Script" path="res://hp_bar.gd" id="1_63fia"]
+
+[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_c6ayl"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vcf16"]
+bg_color = Color(0, 0.477847, 0.151762, 1)
+
+[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_e46p5"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pys7d"]
+bg_color = Color(0.94075, 0.401118, 0.409345, 1)
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3xpcd"]
+bg_color = Color(0, 0, 0, 0.666667)
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c7wcx"]
+bg_color = Color(0.500551, 0.0341227, 0.119353, 1)
+
+[node name="HPBar" type="Control"]
+layout_mode = 3
+anchors_preset = 0
+offset_right = 128.0
+offset_bottom = 4.0
+script = ExtResource("1_63fia")
+
+[node name="HealthBar" type="ProgressBar" parent="."]
+z_index = 3
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+theme_override_styles/background = SubResource("StyleBoxEmpty_c6ayl")
+theme_override_styles/fill = SubResource("StyleBoxFlat_vcf16")
+value = 30.0
+show_percentage = false
+
+[node name="ImmediateDamageBar" type="ProgressBar" parent="."]
+z_index = 2
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+theme_override_styles/background = SubResource("StyleBoxEmpty_e46p5")
+theme_override_styles/fill = SubResource("StyleBoxFlat_pys7d")
+value = 50.0
+show_percentage = false
+
+[node name="TotalDamageBar" type="ProgressBar" parent="."]
+z_index = 1
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+theme_override_styles/background = SubResource("StyleBoxFlat_3xpcd")
+theme_override_styles/fill = SubResource("StyleBoxFlat_c7wcx")
+value = 60.0
+show_percentage = false
+
+[node name="ImmediateDamageTimer" type="Timer" parent="."]
+wait_time = 0.5
+one_shot = true
+
+[node name="TotalDamageTimer" type="Timer" parent="."]
+wait_time = 0.2
+one_shot = true
+
+[connection signal="changed" from="HealthBar" to="." method="_on_health_bar_changed"]
+[connection signal="value_changed" from="HealthBar" to="." method="_on_health_bar_value_changed"]
+[connection signal="timeout" from="ImmediateDamageTimer" to="." method="_on_immediate_damage_timer_timeout"]
+[connection signal="timeout" from="TotalDamageTimer" to="." method="_on_total_damage_timer_timeout"]