-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.tscn
96 lines (78 loc) · 3.54 KB
/
Main.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
[gd_scene load_steps=8 format=3 uid="uid://rls8rni64seq"]
[ext_resource type="PackedScene" uid="uid://df188sjgsf3uy" path="res://modules/settings/Settings.tscn" id="1_7eqy0"]
[ext_resource type="Script" path="res://Main.gd" id="1_lokdk"]
[ext_resource type="Theme" uid="uid://ckui405kgf56e" path="res://modules/settings/Settings.tres" id="2_0fw7w"]
[ext_resource type="PackedScene" uid="uid://b3pjwqev4pui5" path="res://modules/camera/free_fly/FreeFlyCamera.tscn" id="2_roeko"]
[ext_resource type="PackedScene" uid="uid://bum8rielb7exg" path="res://modules/camera/third_person/ThirdPersonCamera.tscn" id="3_tjm03"]
[ext_resource type="FontFile" uid="uid://cvdjbrr43tpah" path="res://assets/fonts/architect-s-daughter/ArchitectsDaughter.ttf" id="5_02gyn"]
[sub_resource type="Theme" id="Theme_h1sq5"]
default_font = ExtResource("5_02gyn")
default_font_size = 24
[node name="Main" type="Node3D"]
script = ExtResource("1_lokdk")
[node name="FreeFlyCamera" parent="." instance=ExtResource("2_roeko")]
current = true
[node name="ThirdPersonCamera" parent="." instance=ExtResource("3_tjm03")]
[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
grow_horizontal = 0
theme = ExtResource("2_0fw7w")
[node name="MarginContainer" type="MarginContainer" parent="Control"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -40.0
offset_bottom = 40.0
grow_horizontal = 0
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
[node name="VBoxContainer" type="VBoxContainer" parent="Control/MarginContainer"]
layout_mode = 2
[node name="DistrictSelector" type="OptionButton" parent="Control/MarginContainer/VBoxContainer"]
layout_mode = 2
flat = true
alignment = 2
fit_to_longest_item = false
[node name="MarginContainer" type="MarginContainer" parent="Control/MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_top = 10
[node name="VehicleSelector" type="OptionButton" parent="Control/MarginContainer/VBoxContainer"]
layout_mode = 2
flat = true
alignment = 2
fit_to_longest_item = false
[node name="VehicleStatus" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -20.0
offset_top = -40.0
offset_right = 20.0
grow_horizontal = 2
grow_vertical = 0
theme = SubResource("Theme_h1sq5")
[node name="HBoxContainer" type="HBoxContainer" parent="VehicleStatus"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="Armed" type="Label" parent="VehicleStatus/HBoxContainer"]
layout_mode = 2
[node name="VSeparator" type="VSeparator" parent="VehicleStatus/HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="FlightMode" type="Label" parent="VehicleStatus/HBoxContainer"]
layout_mode = 2
[node name="Settings" parent="." instance=ExtResource("1_7eqy0")]
visible = false
[connection signal="lost_follow" from="ThirdPersonCamera" to="." method="_on_third_person_camera_lost_follow"]
[connection signal="item_selected" from="Control/MarginContainer/VBoxContainer/DistrictSelector" to="." method="_on_district_selector_item_selected"]
[connection signal="item_selected" from="Control/MarginContainer/VBoxContainer/VehicleSelector" to="." method="_on_vehicle_selector_item_selected"]
[connection signal="pressed" from="Control/MarginContainer/VBoxContainer/VehicleSelector" to="." method="_on_vehicle_selector_pressed"]
[connection signal="visibility_changed" from="Settings" to="." method="_on_settings_visibility_changed"]