summaryrefslogtreecommitdiff
path: root/UI/HPBar.tscn
blob: fdd05427412fd49fe81a7359973649c3f38bf514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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"]