-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainmenu.tscn
124 lines (111 loc) · 3.03 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[gd_scene load_steps=6 format=3 uid="uid://rfeym72tqyum"]
[ext_resource type="Script" path="res://mainmenu.gd" id="1_6shyx"]
[sub_resource type="LabelSettings" id="LabelSettings_ig88r"]
font_size = 48
[sub_resource type="Animation" id="Animation_fldst"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 40)]
}
[sub_resource type="Animation" id="Animation_kka4m"]
resource_name = "idle"
length = 2.5
loop_mode = 1
step = 0.01
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(-0.05, 0.24, 0.96, 1.23, 2.2, 2.48),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0, 40), Vector2(0, 48), Vector2(0, 58), Vector2(0, 42), Vector2(0, 26), Vector2(0, 40)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wt63i"]
_data = {
"RESET": SubResource("Animation_fldst"),
"idle": SubResource("Animation_kka4m")
}
[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_6shyx")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.121569, 0.121569, 0.121569, 1)
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_top = 40.0
offset_right = 720.0
offset_bottom = 110.0
text = "MINESWEEPER"
label_settings = SubResource("LabelSettings_ig88r")
horizontal_alignment = 1
vertical_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
libraries = {
"": SubResource("AnimationLibrary_wt63i")
}
[node name="Button" type="Button" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -95.0
offset_top = 95.0
offset_right = 95.5
offset_bottom = 172.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 50
text = "PLAY"
[node name="Button2" type="Button" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -282.0
offset_top = 294.0
offset_right = -231.0
offset_bottom = 324.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 15
text = "QUIT"
[node name="Label2" type="Label" parent="."]
layout_mode = 0
offset_left = 412.0
offset_top = 618.0
offset_right = 678.0
offset_bottom = 696.0
text = "Uses music from MegaPixel Music!
Suggested by 3ddelano
Special thanks to INdIE DeV"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"]