-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_menu.tscn
141 lines (124 loc) · 4 KB
/
main_menu.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[gd_scene load_steps=9 format=3 uid="uid://b58fp1u4jc25s"]
[ext_resource type="Script" path="res://main_menu.gd" id="1_lkutl"]
[ext_resource type="VideoStream" path="res://main_menu_animated_bg.ogv" id="2_kyy0q"]
[ext_resource type="AudioStream" uid="uid://bkmye7l0u5ln1" path="res://chair_ogg.ogg" id="2_y1i3x"]
[ext_resource type="Texture2D" uid="uid://bljbtg2g67lm8" path="res://logo_large_color_light.svg" id="4_p656y"]
[ext_resource type="Texture2D" uid="uid://duoem4uj22wew" path="res://logo_vertical_monochrome_light.svg" id="5_qnyi7"]
[ext_resource type="Theme" uid="uid://cjrb1vgq2vhn8" path="res://main_menu.tres" id="6_a6ucw"]
[ext_resource type="Texture2D" uid="uid://b6j3kahrv0ibo" path="res://art/facebook.png" id="7_qckqc"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gqonq"]
bg_color = Color(0.929412, 0.815686, 0.713726, 1)
border_color = Color(0.929412, 0.815686, 0.713726, 1)
corner_radius_top_left = 16
corner_radius_bottom_left = 16
shadow_size = 8
shadow_offset = Vector2(-2, 5)
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_lkutl")
[node name="AnimatedBackground" type="VideoStreamPlayer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
stream = ExtResource("2_kyy0q")
autoplay = true
[node name="MainMenuMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_y1i3x")
autoplay = true
[node name="StudioLogo" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 2.0
offset_top = -206.0
offset_right = 1026.0
offset_bottom = 208.0
grow_vertical = 0
scale = Vector2(0.5, 0.5)
texture = ExtResource("4_p656y")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -501.0
offset_right = -1.0
grow_horizontal = 0
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_gqonq")
[node name="TextureRect" type="TextureRect" parent="Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -154.0
offset_top = 23.0
offset_right = 470.0
offset_bottom = 736.0
grow_horizontal = 2
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_qnyi7")
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -146.0
offset_top = -57.0
offset_right = 151.0
offset_bottom = 219.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("6_a6ucw")
[node name="Button" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
theme = ExtResource("6_a6ucw")
text = "New Game"
[node name="Button2" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
theme = ExtResource("6_a6ucw")
text = "Load Game"
[node name="Button3" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
theme = ExtResource("6_a6ucw")
text = "Options"
[node name="HFlowContainer" type="HFlowContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -117.0
offset_top = -160.0
offset_right = 137.0
offset_bottom = -96.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/h_separation = 24
[node name="TextureRect" type="TextureRect" parent="Panel/HFlowContainer"]
layout_mode = 2
texture = ExtResource("7_qckqc")
stretch_mode = 5
[node name="TextureRect2" type="TextureRect" parent="Panel/HFlowContainer"]
layout_mode = 2
texture = ExtResource("7_qckqc")
stretch_mode = 5
[node name="TextureRect3" type="TextureRect" parent="Panel/HFlowContainer"]
layout_mode = 2
texture = ExtResource("7_qckqc")
stretch_mode = 5
[connection signal="finished" from="AnimatedBackground" to="." method="_on_animated_background_finished"]
[connection signal="finished" from="MainMenuMusic" to="." method="_on_audio_stream_player_finished"]