diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-09-08 22:35:06 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-09-08 22:35:06 +0200 |
commit | 4597189f157834c80f56b12b701fd2b2a15c2798 (patch) | |
tree | f522e9a58ec756dc27306781da99e828b195c549 /UI/HPBar.tscn | |
parent | 7d7d845e76f78a87cf87c9464d700e52cd88ce6f (diff) |
next commit
Diffstat (limited to 'UI/HPBar.tscn')
-rw-r--r-- | UI/HPBar.tscn | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/UI/HPBar.tscn b/UI/HPBar.tscn new file mode 100644 index 0000000..fdd0542 --- /dev/null +++ b/UI/HPBar.tscn @@ -0,0 +1,78 @@ +[gd_scene load_steps=8 format=3 uid="uid://bjcrf4o4a80iv"] + +[ext_resource type="Script" path="res://UI/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"] |