|
@@ -1,52 +1,40 @@
|
|
-[gd_scene load_steps=8 format=3 uid="uid://cowqwuqos6m0q"]
|
|
|
|
|
|
+[gd_scene load_steps=6 format=3 uid="uid://b0036qgpepmwc"]
|
|
|
|
|
|
-[ext_resource type="PackedScene" uid="uid://dom2qigc1hn32" path="res://town_mesh.tscn" id="1"]
|
|
|
|
|
|
+[ext_resource type="PackedScene" uid="uid://2lbu3a1dk0a5" path="res://truck_town.glb" id="1_x0dmm"]
|
|
[ext_resource type="Script" path="res://spedometer.gd" id="2"]
|
|
[ext_resource type="Script" path="res://spedometer.gd" id="2"]
|
|
|
|
+[ext_resource type="Environment" uid="uid://cuvs67826w51u" path="res://default_env.tres" id="3_t0mbp"]
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="1"]
|
|
[sub_resource type="StyleBoxEmpty" id="1"]
|
|
|
|
|
|
[sub_resource type="Theme" id="2"]
|
|
[sub_resource type="Theme" id="2"]
|
|
-Button/styles/focus = SubResource( "1" )
|
|
|
|
-
|
|
|
|
-[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_2k12y"]
|
|
|
|
-sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
|
|
-ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
|
|
-
|
|
|
|
-[sub_resource type="Sky" id="Sky_1gf0c"]
|
|
|
|
-sky_material = SubResource( "ProceduralSkyMaterial_2k12y" )
|
|
|
|
-
|
|
|
|
-[sub_resource type="Environment" id="Environment_f4cvs"]
|
|
|
|
-background_mode = 2
|
|
|
|
-sky = SubResource( "Sky_1gf0c" )
|
|
|
|
-tonemap_mode = 2
|
|
|
|
-glow_enabled = true
|
|
|
|
|
|
+Button/styles/focus = SubResource("1")
|
|
|
|
|
|
[node name="TownScene" type="Node3D"]
|
|
[node name="TownScene" type="Node3D"]
|
|
|
|
|
|
-[node name="TownMesh" parent="." instance=ExtResource( "1" )]
|
|
|
|
|
|
+[node name="TruckTown" parent="." instance=ExtResource("1_x0dmm")]
|
|
|
|
|
|
-[node name="InstancePos" type="Position3D" parent="."]
|
|
|
|
|
|
+[node name="InstancePos" type="Marker3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.2039, 6.67095, -37.6042)
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.2039, 6.67095, -37.6042)
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="InstancePos"]
|
|
[node name="Panel" type="Panel" parent="InstancePos"]
|
|
|
|
+anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -130.0
|
|
offset_left = -130.0
|
|
offset_bottom = 40.0
|
|
offset_bottom = 40.0
|
|
-__meta__ = {
|
|
|
|
-"_edit_use_anchors_": false
|
|
|
|
-}
|
|
|
|
|
|
+grow_horizontal = 0
|
|
|
|
|
|
[node name="Spedometer" type="Button" parent="InstancePos/Panel"]
|
|
[node name="Spedometer" type="Button" parent="InstancePos/Panel"]
|
|
|
|
+layout_mode = 1
|
|
|
|
+anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
anchor_bottom = 1.0
|
|
-theme = SubResource( "2" )
|
|
|
|
|
|
+grow_horizontal = 2
|
|
|
|
+grow_vertical = 2
|
|
|
|
+theme = SubResource("2")
|
|
text = "Speed: ???"
|
|
text = "Speed: ???"
|
|
flat = true
|
|
flat = true
|
|
-script = ExtResource( "2" )
|
|
|
|
-__meta__ = {
|
|
|
|
-"_edit_use_anchors_": false
|
|
|
|
-}
|
|
|
|
|
|
+script = ExtResource("2")
|
|
|
|
|
|
[node name="Back" type="Button" parent="."]
|
|
[node name="Back" type="Button" parent="."]
|
|
offset_left = 17.0
|
|
offset_left = 17.0
|
|
@@ -56,10 +44,10 @@ offset_bottom = 41.0
|
|
text = "<- Back!"
|
|
text = "<- Back!"
|
|
|
|
|
|
[node name="Environment" type="WorldEnvironment" parent="."]
|
|
[node name="Environment" type="WorldEnvironment" parent="."]
|
|
-environment = SubResource( "Environment_f4cvs" )
|
|
|
|
|
|
+environment = ExtResource("3_t0mbp")
|
|
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
[node name="Sun" type="DirectionalLight3D" parent="."]
|
|
-transform = Transform3D(1, 0, 0, 0, -0.629475, 0.777021, 0, -0.777021, -0.629475, 0, 24.4076, 0)
|
|
|
|
|
|
+transform = Transform3D(0.939693, -0.280167, -0.196175, -5.01437e-08, -0.573577, 0.819152, -0.34202, -0.769751, -0.538986, 0, 24.4076, 0)
|
|
shadow_enabled = true
|
|
shadow_enabled = true
|
|
|
|
|
|
-[connection signal="pressed" from="InstancePos/Panel/Spedometer" to="InstancePos/Panel/Spedometer" method="_on_Spedometer_pressed"]
|
|
|
|
|
|
+[connection signal="pressed" from="InstancePos/Panel/Spedometer" to="InstancePos/Panel/Spedometer" method="_on_spedometer_pressed"]
|