fix sky
This commit is contained in:
@@ -1,126 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://csm5ihvpyw5m7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cfjaa6hq1wpvd" path="res://scripts/main.gd" id="1_main"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sgp6g"]
|
||||
bg_color = Color(0.97496897, 0.9929336, 1, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
shadow_size = 3
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o5qli"]
|
||||
bg_color = Color(0.97496897, 0.9929336, 1, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
shadow_size = 3
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0wfyh"]
|
||||
bg_color = Color(0.97496897, 0.9929336, 1, 1)
|
||||
corner_radius_top_left = 16
|
||||
corner_radius_top_right = 16
|
||||
corner_radius_bottom_right = 16
|
||||
corner_radius_bottom_left = 16
|
||||
shadow_size = 3
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_o5qli"]
|
||||
|
||||
[node name="Main" type="Control" unique_id=1436180697]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_main")
|
||||
|
||||
[node name="Panel" type="Panel" parent="." unique_id=1434712397]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=616480461]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -150.5
|
||||
offset_top = -126.0
|
||||
offset_right = 150.5
|
||||
offset_bottom = 126.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="TrainJourney" type="Button" parent="VBoxContainer" unique_id=748071748]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_sgp6g")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_o5qli")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_0wfyh")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_o5qli")
|
||||
text = "Train Journey"
|
||||
|
||||
[node name="TrainControl" type="Button" parent="VBoxContainer" unique_id=516792886]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_sgp6g")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_o5qli")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_0wfyh")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_o5qli")
|
||||
text = "Train Control"
|
||||
|
||||
[node name="Exit" type="Button" parent="VBoxContainer" unique_id=1837330634]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_color = Color(0, 0, 0, 1)
|
||||
theme_override_colors/font_hover_pressed_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_sgp6g")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_o5qli")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_0wfyh")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_o5qli")
|
||||
text = "Exit"
|
||||
|
||||
[node name="Label" type="Label" parent="." unique_id=1191738199]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -104.5
|
||||
offset_top = -224.0
|
||||
offset_right = 104.5
|
||||
offset_bottom = -157.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0)
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "TRINITTU"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/TrainJourney" to="." method="_on_train_journey_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/TrainControl" to="." method="_on_train_control_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Exit" to="." method="_on_exit_pressed"]
|
||||
10
scenes/test.tscn
Normal file
10
scenes/test.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[gd_scene format=3 uid="uid://leuf8p24te7a"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://doiojb8xxlp2s" path="res://dynamic-sky/dynamic_sky.tscn" id="1_errlg"]
|
||||
|
||||
[node name="Node3D" type="Node3D" unique_id=973524329]
|
||||
|
||||
[node name="DynamicSky" parent="." unique_id=516593260 instance=ExtResource("1_errlg")]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="." unique_id=2106785413]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 74.42207, 0)
|
||||
@@ -3,11 +3,10 @@
|
||||
[ext_resource type="Script" uid="uid://ckndmko4orxx" path="res://scripts/traincontrol.gd" id="1_amtmp"]
|
||||
[ext_resource type="Texture2D" uid="uid://bg24v3kb5e73l" path="res://resources/rail2.png" id="1_ihlg3"]
|
||||
[ext_resource type="PackedScene" uid="uid://csm5ihvpyw5m7" path="res://scenes/main.tscn" id="2_0b1nv"]
|
||||
[ext_resource type="Script" uid="uid://ck4j0pekoofm1" path="res://scripts/engine.gd" id="2_jgp6u"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://cm8un80nubjbi" path="res://resources/train kit/train-diesel-a.obj" id="3_jy5c4"]
|
||||
[ext_resource type="Script" uid="uid://b65vwus8xxmun" path="res://scripts/traincontrol_camera.gd" id="4_jy5c4"]
|
||||
[ext_resource type="Script" uid="uid://df2oi5vyeak81" path="res://scripts/train_movement.gd" id="6_1lqs8"]
|
||||
[ext_resource type="Script" uid="uid://b5x80gpkn1swt" path="res://scripts/rail_swtich.gd" id="7_cenvf"]
|
||||
[ext_resource type="Script" uid="uid://b5x80gpkn1swt" path="res://scripts/rail_switch.gd" id="7_cenvf"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_23vqf"]
|
||||
size = Vector2(100, 100)
|
||||
@@ -123,9 +122,8 @@ path_joined = true
|
||||
material = SubResource("StandardMaterial3D_ihlg3")
|
||||
|
||||
[node name="TrainEngine" type="PathFollow3D" parent="Ground/Rails1" unique_id=973990755]
|
||||
transform = Transform3D(0.6867339, -0.014397825, -0.8973005, 0, 1.130071, -0.018126711, 0.8974141, 0.01101774, 0.68664694, -41.962486, 0.03566742, -44.78871)
|
||||
transform = Transform3D(0.6867339, -0.014397825, -0.8973007, 0, 1.130071, -0.018126717, 0.8974141, 0.01101774, 0.6866472, -41.962486, 0.03566742, -44.78871)
|
||||
rotation_mode = 4
|
||||
script = ExtResource("2_jgp6u")
|
||||
|
||||
[node name="Rails2" type="Path3D" parent="Ground" unique_id=1426938039]
|
||||
curve = SubResource("Curve3D_1lqs8")
|
||||
@@ -180,7 +178,6 @@ material = SubResource("StandardMaterial3D_ihlg3")
|
||||
[node name="TrainEngine" type="PathFollow3D" parent="Ground/Rails2" unique_id=1618605131]
|
||||
transform = Transform3D(-0.39616987, 0.010450672, -1.0582525, 0, 1.1301593, 0.01115706, 1.0583019, 0.003912155, -0.3961513, 24, 0, -36)
|
||||
rotation_mode = 4
|
||||
script = ExtResource("2_jgp6u")
|
||||
|
||||
[node name="Train" type="MeshInstance3D" parent="Ground" unique_id=65189673]
|
||||
transform = Transform3D(0.6867333, -0.014397784, -0.89729905, 0, 1.1300678, -0.018126683, 0.8974134, 0.011017708, 0.68664587, -41.962486, 0.03566742, -44.78871)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
[ext_resource type="Script" uid="uid://dfyo0h5yj3us8" path="res://scripts/trainjourney.gd" id="1_0nial"]
|
||||
[ext_resource type="PackedScene" uid="uid://csm5ihvpyw5m7" path="res://scenes/main.tscn" id="2_7fone"]
|
||||
[ext_resource type="Script" uid="uid://bymoo78gun6a4" path="res://scripts/track_generator.gd" id="2_j07ug"]
|
||||
[ext_resource type="PackedScene" uid="uid://doiojb8xxlp2s" path="res://dynamic-sky/dynamic_sky.tscn" id="3_7brvr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cer3o7xlhju7v" path="res://scenes/train.tscn" id="3_7fone"]
|
||||
[ext_resource type="Script" uid="uid://cvn333pymsowx" path="res://scripts/train.gd" id="4_7brvr"]
|
||||
[ext_resource type="Script" uid="uid://cgy51h6a5syer" path="res://scripts/trainjourney_camera.gd" id="5_4toc1"]
|
||||
@@ -40,6 +41,9 @@ fog_density = 0.0015
|
||||
script = ExtResource("1_0nial")
|
||||
main_scene = ExtResource("2_7fone")
|
||||
|
||||
[node name="DynamicSky" parent="." unique_id=516593260 instance=ExtResource("3_7brvr")]
|
||||
show_debug_panel = true
|
||||
|
||||
[node name="TrackGenerator" type="Node3D" parent="." unique_id=1804102656]
|
||||
script = ExtResource("2_j07ug")
|
||||
track_width = 1.0
|
||||
|
||||
Reference in New Issue
Block a user