[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"]