-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main_Menu.tscn
343 lines (305 loc) · 10.1 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
[gd_scene load_steps=20 format=2]
[ext_resource path="res://Scenes/Main_menu/Logos/Open-Crops/Open-Crops_Logo.png" type="Texture" id=1]
[ext_resource path="res://Scenes/Main_menu/Fonts/Open_Crops.otf" type="DynamicFontData" id=2]
[ext_resource path="res://Scenes/Main_menu/Soundtrack/Viilofarmi_Soundtrack.wav" type="AudioStream" id=3]
[ext_resource path="res://Main_Menu.gd" type="Script" id=4]
[ext_resource path="res://Scenes/Main_menu/Icons/Hox.png" type="Texture" id=5]
[ext_resource path="res://Scenes/Main_menu/Icons/Configuration/Maps.png" type="Texture" id=6]
[ext_resource path="res://Scenes/Main_menu/Icons/Select_Button_Texture.png" type="Texture" id=7]
[ext_resource path="res://Config.gd" type="Script" id=9]
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.301961, 0.298039, 0.321569, 1 )
border_color = Color( 0.498039, 0.478431, 0.478431, 1 )
corner_detail = 10
[sub_resource type="DynamicFont" id=2]
size = 130
outline_size = 5
outline_color = Color( 0.329412, 0.321569, 0.321569, 1 )
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=3]
size = 60
outline_size = 5
outline_color = Color( 0.196078, 0.188235, 0.188235, 1 )
font_data = ExtResource( 2 )
[sub_resource type="Animation" id=4]
tracks/0/type = "value"
tracks/0/path = NodePath("Top_Panel/Open_Crops_Header:visible_characters")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
}
[sub_resource type="Animation" id=5]
resource_name = "Hox_Symbol_Blink"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Visibility_Control_Hox_Symbol:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 1,
"values": [ false, true, false ]
}
[sub_resource type="DynamicFont" id=6]
size = 30
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=7]
size = 20
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=12]
size = 30
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=9]
size = 100
outline_size = 5
outline_color = Color( 0.568627, 0.0313726, 0.0313726, 1 )
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=10]
size = 100
outline_size = 5
outline_color = Color( 0.580392, 0.596078, 0.0627451, 1 )
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=11]
size = 100
outline_size = 5
outline_color = Color( 0.0313726, 0.501961, 0.0313726, 1 )
font_data = ExtResource( 2 )
[node name="Visibility_Control_Main_Menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Open_Crops_Logo" type="TextureRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0
rect_scale = Vector2( 0.1, 0.1 )
texture = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Top_Panel" type="Panel" parent="."]
anchor_left = 0.106717
anchor_top = 0.000823508
anchor_right = 0.997342
anchor_bottom = 0.189712
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="Open_Crops_Header" type="RichTextLabel" parent="Top_Panel"]
margin_right = 865.0
margin_bottom = 200.0
custom_fonts/normal_font = SubResource( 2 )
visible_characters = 0
text = "Open-Crops"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Visibility_Control_Version_Info" type="Control" parent="Top_Panel"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
[node name="Version_Label" type="RichTextLabel" parent="Top_Panel/Visibility_Control_Version_Info"]
margin_left = 695.728
margin_top = 148.007
margin_right = 945.728
margin_bottom = 298.007
rect_rotation = -22.5
custom_fonts/normal_font = SubResource( 3 )
custom_colors/default_color = Color( 0.972549, 0.498039, 0.294118, 1 )
text = " .Alpha"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Music_Intro_Delay_Timer" type="Timer" parent="."]
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
[node name="Header_Slide_In_AnimationPlayer" type="AnimationPlayer" parent="."]
method_call_mode = 1
anims/Header_Slide_In = SubResource( 4 )
[node name="Prompt_User_WindowDialog" type="WindowDialog" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -200.0
margin_top = -200.0
margin_right = 200.0
margin_bottom = 200.0
__meta__ = {
"_edit_use_anchors_": false,
"_editor_description_": "Make this a separate scene in the future, as adviced."
}
[node name="Hox_Symbol_Blink_Animation" type="AnimationPlayer" parent="Prompt_User_WindowDialog"]
anims/Hox_Symbol_Blink = SubResource( 5 )
[node name="Visibility_Control_Hox_Symbol" type="Control" parent="Prompt_User_WindowDialog"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hox_Symbol" type="TextureRect" parent="Prompt_User_WindowDialog/Visibility_Control_Hox_Symbol"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = 234.365
margin_top = -16.2062
margin_right = 1194.37
margin_bottom = 523.794
rect_rotation = 90.0
rect_scale = Vector2( 0.2, 0.2 )
texture = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Prompt_User_Window_Header_Label" type="RichTextLabel" parent="Prompt_User_WindowDialog"]
anchor_left = 0.09375
anchor_top = 0.4875
anchor_right = 0.90625
anchor_bottom = 0.6125
margin_bottom = 1.52588e-05
custom_fonts/normal_font = SubResource( 6 )
bbcode_enabled = true
__meta__ = {
"_edit_use_anchors_": true
}
[node name="Prompt_User_Window_Footer_Label" type="RichTextLabel" parent="Prompt_User_WindowDialog"]
anchor_left = 0.05
anchor_top = 0.625
anchor_right = 0.95
anchor_bottom = 0.775
margin_top = -1.52588e-05
custom_fonts/normal_font = SubResource( 7 )
bbcode_enabled = true
__meta__ = {
"_edit_use_anchors_": true
}
[node name="Visibility_Control_Selection_Buttons" type="Control" parent="Prompt_User_WindowDialog"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
[node name="Prompt_User_Window_Agree_Button" type="TextureButton" parent="Prompt_User_WindowDialog/Visibility_Control_Selection_Buttons"]
anchor_left = 4.01787
anchor_top = 7.80297
anchor_right = 6.52828
anchor_bottom = 9.18678
margin_right = 401.664
margin_bottom = 221.408
rect_scale = Vector2( 0.2, 0.2 )
texture_normal = ExtResource( 7 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Configuration_WindowDialog" type="WindowDialog" parent="."]
visible = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -300.0
margin_top = -320.0
margin_right = 300.0
margin_bottom = 380.0
window_title = "Configuration"
script = ExtResource( 9 )
[node name="VBoxContainer" type="VBoxContainer" parent="Configuration_WindowDialog"]
margin_left = 10.0
margin_top = 40.0
margin_right = 590.0
margin_bottom = 660.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HBoxContainer" type="HBoxContainer" parent="Configuration_WindowDialog/VBoxContainer"]
margin_right = 580.0
margin_bottom = 625.0
rect_min_size = Vector2( 580, 625 )
[node name="Maps_Button" type="TextureButton" parent="Configuration_WindowDialog/VBoxContainer/HBoxContainer"]
margin_right = 256.0
margin_bottom = 256.0
size_flags_horizontal = 0
size_flags_vertical = 0
texture_normal = ExtResource( 6 )
[node name="Maps_Button_RichTextLabel" type="RichTextLabel" parent="Configuration_WindowDialog/VBoxContainer/HBoxContainer/Maps_Button"]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = -62.5
margin_top = -5.99998
margin_right = 62.5
margin_bottom = 44.0
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/normal_font = SubResource( 12 )
bbcode_enabled = true
bbcode_text = "[center]Maps[/center]"
text = "Maps"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Visibility_Control_Main_Menu_Buttons" type="HBoxContainer" parent="."]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -142.0
custom_constants/separation = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Exit_Button" type="Button" parent="Visibility_Control_Main_Menu_Buttons"]
margin_right = 640.0
margin_bottom = 142.0
focus_mode = 0
size_flags_horizontal = 3
custom_fonts/font = SubResource( 9 )
enabled_focus_mode = 0
text = "Exit"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Configure_Button" type="Button" parent="Visibility_Control_Main_Menu_Buttons"]
margin_left = 640.0
margin_right = 1280.0
margin_bottom = 142.0
focus_mode = 0
size_flags_horizontal = 3
custom_fonts/font = SubResource( 10 )
enabled_focus_mode = 0
text = "Configure"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Start_Game_Button" type="Button" parent="Visibility_Control_Main_Menu_Buttons"]
margin_left = 1280.0
margin_right = 1920.0
margin_bottom = 142.0
focus_mode = 0
size_flags_horizontal = 3
custom_fonts/font = SubResource( 11 )
enabled_focus_mode = 0
text = "Start"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="timeout" from="Music_Intro_Delay_Timer" to="." method="_On_Music_Intro_Delay_Timer_Timeout"]
[connection signal="finished" from="AudioStreamPlayer" to="." method="_On_AudioStreamPlayer_Finished"]
[connection signal="animation_finished" from="Header_Slide_In_AnimationPlayer" to="." method="_On_Header_Slide_In_AnimationPlayer_Animation_Finished"]
[connection signal="hide" from="Prompt_User_WindowDialog" to="." method="_On_Prompt_User_WindowDialog_Hide"]
[connection signal="hide" from="Configuration_WindowDialog" to="." method="_on_Configuration_WindowDialog_hide"]
[connection signal="pressed" from="Visibility_Control_Main_Menu_Buttons/Exit_Button" to="." method="_On_Exit_Button_Pressed"]
[connection signal="pressed" from="Visibility_Control_Main_Menu_Buttons/Configure_Button" to="." method="_on_Configure_Button_Pressed"]
[connection signal="pressed" from="Visibility_Control_Main_Menu_Buttons/Start_Game_Button" to="." method="_On_Start_Game_Button_Pressed"]