-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHUD.tscn
127 lines (112 loc) · 2.95 KB
/
HUD.tscn
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[gd_scene load_steps=8 format=2]
[ext_resource path="res://HUD.gd" type="Script" id=1]
[ext_resource path="res://dodge_assets/fonts/Xolonium-Regular.ttf" type="DynamicFontData" id=2]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=2]
size = 64
font_data = ExtResource( 2 )
[sub_resource type="InputEventAction" id=3]
action = "ui_select"
[sub_resource type="ShortCut" id=4]
shortcut = SubResource( 3 )
[sub_resource type="DynamicFont" id=5]
size = 30
font_data = ExtResource( 2 )
[node name="HUD" type="CanvasLayer"]
script = ExtResource( 1 )
[node name="Operation" type="Label" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -177.5
margin_right = 177.5
margin_bottom = 78.0
rect_pivot_offset = Vector2( 196.574, 78 )
custom_fonts/font = SubResource( 1 )
text = "0 + ? ="
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Message" type="Label" parent="."]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_left = 25.4561
margin_top = -215.265
margin_right = 25.4561
margin_bottom = -56.2647
custom_fonts/font = SubResource( 2 )
text = "Numbers Attack!"
align = 1
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ResumeButton" type="Button" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -141.0
margin_top = -42.0
margin_right = 141.0
margin_bottom = 42.0
custom_fonts/font = SubResource( 2 )
text = "Resume"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MessageTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="Goal" type="Label" parent="."]
anchor_left = 1.0
anchor_right = 1.0
margin_left = -167.0
margin_bottom = 78.0
custom_fonts/font = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="StartButton" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -186.167
margin_top = -52.8285
margin_right = -6.16663
margin_bottom = 47.1715
custom_fonts/font = SubResource( 2 )
shortcut = SubResource( 4 )
text = "Start"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ExitButton" type="Button" parent="."]
margin_left = 384.667
margin_top = 554.372
margin_right = 524.667
margin_bottom = 638.372
custom_fonts/font = SubResource( 2 )
text = "Exit"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Score" type="Label" parent="."]
margin_left = 271.529
margin_top = 87.6813
margin_right = 401.529
margin_bottom = 124.681
custom_fonts/font = SubResource( 5 )
text = "Score: 0"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="ResumeButton" to="." method="_on_ResumeButton_pressed"]
[connection signal="timeout" from="MessageTimer" to="." method="_on_MessageTimer_timeout"]
[connection signal="pressed" from="StartButton" to="." method="_on_StartButton_pressed"]
[connection signal="pressed" from="ExitButton" to="." method="_on_ExitButton_pressed"]