-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainMenu.tscn
108 lines (98 loc) · 3.14 KB
/
MainMenu.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
[gd_scene load_steps=8 format=3 uid="uid://d2ihuwyk3jaiq"]
[ext_resource type="Texture2D" uid="uid://c5r4h2lnahvdv" path="res://resources/images/ui/splash-bg.jpg" id="1_2cr5s"]
[ext_resource type="Script" path="res://MainMenu.gd" id="1_p2nm4"]
[ext_resource type="Texture2D" uid="uid://d0j477cin18u6" path="res://resources/images/ui/button-home-bg.png" id="2_bcbq7"]
[ext_resource type="FontFile" uid="uid://dtd3tst48g77p" path="res://resources/fonts/mrsmonster.ttf" id="3_yeu5x"]
[ext_resource type="Texture2D" uid="uid://clkvnv7i666l4" path="res://resources/images/ui/button-home-bg-hover.png" id="4_lvtrt"]
[ext_resource type="AudioStream" uid="uid://cecaumk78dt8d" path="res://resources/sound/Adventures in Adventureland.mp3" id="6_r08i0"]
[sub_resource type="LabelSettings" id="LabelSettings_kolod"]
font = ExtResource("3_yeu5x")
font_size = 50
shadow_size = 12
shadow_color = Color(0, 0, 0, 1)
shadow_offset = Vector2(1, 3)
[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_p2nm4")
[node name="TextureRect" type="TextureRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_2cr5s")
ignore_texture_size = true
stretch_mode = 6
[node name="StartGameButton" type="TextureButton" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -205.5
offset_top = -30.5
offset_right = 205.5
offset_bottom = 82.5
grow_horizontal = 2
grow_vertical = 2
texture_normal = ExtResource("2_bcbq7")
texture_hover = ExtResource("4_lvtrt")
ignore_texture_size = true
stretch_mode = 0
[node name="Label" type="Label" parent="StartGameButton"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -144.0
offset_top = -32.5
offset_right = 144.0
offset_bottom = 24.5
grow_horizontal = 2
grow_vertical = 2
text = "START A GAME"
label_settings = SubResource("LabelSettings_kolod")
horizontal_alignment = 1
vertical_alignment = 1
[node name="ProfileButton" type="TextureButton" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -205.5
offset_top = 100.5
offset_right = 205.5
offset_bottom = 213.5
grow_horizontal = 2
grow_vertical = 2
texture_normal = ExtResource("2_bcbq7")
texture_hover = ExtResource("4_lvtrt")
ignore_texture_size = true
stretch_mode = 0
[node name="Label" type="Label" parent="ProfileButton"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -144.0
offset_top = -32.5
offset_right = 144.0
offset_bottom = 24.5
grow_horizontal = 2
grow_vertical = 2
text = "PROFILE"
label_settings = SubResource("LabelSettings_kolod")
horizontal_alignment = 1
vertical_alignment = 1
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_r08i0")
[connection signal="pressed" from="StartGameButton" to="." method="_on_start_game_button_pressed"]
[connection signal="pressed" from="ProfileButton" to="." method="_on_profile_button_pressed"]