Repository navigation
Expand file tree
/
Copy pathtimer.tscn
More file actions
112 lines (99 loc) · 3.05 KB
/
Copy pathtimer.tscn
File metadata and controls
112 lines (99 loc) · 3.05 KB
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
[gd_scene load_steps=4 format=3 uid="uid://d3ns1l6itunkm"]
[ext_resource type="Script" path="res://timer.gd" id="1_1yi5r"]
[ext_resource type="Theme" uid="uid://cq3bgtj642rw6" path="res://theme.tres" id="1_2mpgd"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w6oe2"]
bg_color = Color(0.6, 0.6, 0.6, 0)
border_width_left = 8
border_width_top = 8
border_width_right = 8
border_width_bottom = 8
border_color = Color(0.12549, 0.12549, 0.12549, 1)
border_blend = true
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_2mpgd")
script = ExtResource("1_1yi5r")
[node name="highScore" type="Label" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 20.0
offset_top = 202.0
offset_right = -20.0
offset_bottom = 353.0
grow_horizontal = 2
theme = ExtResource("1_2mpgd")
theme_override_colors/font_color = Color(0.890196, 0.803922, 0.239216, 1)
theme_override_styles/normal = SubResource("StyleBoxFlat_w6oe2")
text = "00:00.00"
horizontal_alignment = 1
[node name="Label" type="Label" parent="."]
layout_mode = 2
offset_left = 20.0
offset_top = 418.0
offset_right = 460.0
offset_bottom = 569.0
theme = ExtResource("1_2mpgd")
theme_override_styles/normal = SubResource("StyleBoxFlat_w6oe2")
text = "00:00.00"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="."]
layout_mode = 2
offset_top = 638.0
offset_right = 480.0
offset_bottom = 737.0
ratio = 3.0
[node name="Start" type="Button" parent="AspectRatioContainer"]
layout_mode = 2
theme = ExtResource("1_2mpgd")
text = "Start"
[node name="Stop" type="Button" parent="AspectRatioContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("1_2mpgd")
text = "Stop
"
[node name="Clock" type="Timer" parent="."]
wait_time = 0.05
[node name="Clear" type="Button" parent="."]
visible = false
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -73.0
offset_bottom = 55.0
grow_horizontal = 0
theme = ExtResource("1_2mpgd")
text = "Clear"
[node name="back" type="Button" parent="."]
layout_mode = 0
offset_right = 175.0
offset_bottom = 70.0
theme = ExtResource("1_2mpgd")
text = "Back"
[node name="name" type="LineEdit" parent="."]
layout_mode = 0
offset_top = 74.0
offset_right = 477.0
offset_bottom = 229.0
theme = ExtResource("1_2mpgd")
text = "Timer"
alignment = 1
[connection signal="pressed" from="AspectRatioContainer/Start" to="." method="_on_start_pressed"]
[connection signal="pressed" from="AspectRatioContainer/Stop" to="." method="_on_stop_pressed"]
[connection signal="timeout" from="Clock" to="." method="_on_clock_timeout"]
[connection signal="pressed" from="Clear" to="." method="_on_clear_pressed"]
[connection signal="pressed" from="back" to="." method="_on_back_pressed"]
[connection signal="text_changed" from="name" to="." method="_on_name_text_changed"]