small racing game im working on
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
[gd_scene load_steps=4 format=3 uid="uid://c4h850namjrn2"]

[ext_resource type="Script" path="res://ui/editor/propertys.gd" id="1_0vjdc"]
[ext_resource type="Script" path="res://addons/@bendn/timecontrol/timebutton.gd" id="2_bn54u"]

[sub_resource type="GDScript" id="GDScript_ly6xd"]
resource_name = "laps"
script/source = "extends SpinBox

func _on_value_changed(val: float) -> void:
	suffix = \"laps\" if val > 1 else \"lap\"
"

[node name="propertys" type="VBoxContainer"]
size_flags_vertical = 3
script = ExtResource("1_0vjdc")

[node name="name" type="HBoxContainer" parent="."]
layout_mode = 2

[node name="label" type="Label" parent="name"]
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
text = "name"

[node name="name" type="LineEdit" parent="name"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "fluffy gizmo"
max_length = 50
caret_blink = true

[node name="laps" type="HBoxContainer" parent="."]
layout_mode = 2

[node name="label" type="Label" parent="laps"]
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
text = "laps"

[node name="laps" type="SpinBox" parent="laps"]
unique_name_in_owner = true
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
size_flags_horizontal = 3
min_value = 1.0
max_value = 50.0
value = 1.0
rounded = true
suffix = "lap"
script = SubResource("GDScript_ly6xd")

[node name="time" type="HBoxContainer" parent="."]
layout_mode = 2

[node name="label" type="Label" parent="time"]
custom_minimum_size = Vector2(150, 0)
layout_mode = 2
text = "time"

[node name="time" type="Button" parent="time"]
unique_name_in_owner = true
layout_mode = 2
text = "12:00 PM"
script = ExtResource("2_bn54u")

[connection signal="value_changed" from="laps/laps" to="laps/laps" method="_on_value_changed"]