-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainMenu.tscn
86 lines (77 loc) · 2.53 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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://assets/title-screen/title_screen_no_buttons.png" type="Texture" id=1]
[ext_resource path="res://assets/fonts/LuckiestGuy-Regular.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://assets/audio/fx/plop_1.tres" type="AudioStream" id=3]
[ext_resource path="res://MainMenu.gd" type="Script" id=4]
[sub_resource type="Theme" id=1]
[sub_resource type="DynamicFont" id=2]
size = 64
font_data = ExtResource( 2 )
[node name="MainMenuCanvas" type="CanvasLayer"]
script = ExtResource( 4 )
[node name="Background" type="TextureRect" parent="."]
margin_right = 1280.0
margin_bottom = 720.0
texture = ExtResource( 1 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NewGame" type="Button" parent="."]
anchor_left = 0.066
anchor_top = 0.231
anchor_right = 0.066
anchor_bottom = 0.231
margin_left = -0.479996
margin_top = -0.320007
margin_right = 441.52
margin_bottom = 133.68
theme = SubResource( 1 )
custom_fonts/font = SubResource( 2 )
text = "NEW GAME"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HighScore" type="Button" parent="."]
anchor_left = 0.066
anchor_top = 0.419
anchor_right = 0.066
anchor_bottom = 0.419
margin_left = -0.112015
margin_top = 0.0461121
margin_right = 441.888
margin_bottom = 101.046
theme = SubResource( 1 )
custom_fonts/font = SubResource( 2 )
text = "HIGH SCORE"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Exit" type="Button" parent="."]
anchor_left = 0.066
anchor_top = 0.596
anchor_right = 0.066
anchor_bottom = 0.712
margin_left = -0.479996
margin_top = -0.120026
margin_right = 441.52
margin_bottom = 0.359985
theme = SubResource( 1 )
custom_fonts/font = SubResource( 2 )
text = "EXIT"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Plop" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
[connection signal="mouse_entered" from="NewGame" to="." method="_on_Button_mouse_entered"]
[connection signal="mouse_exited" from="NewGame" to="." method="_on_Button_mouse_exited"]
[connection signal="pressed" from="NewGame" to="." method="_on_NewGame_pressed"]
[connection signal="mouse_entered" from="HighScore" to="." method="_on_Button_mouse_entered"]
[connection signal="mouse_exited" from="HighScore" to="." method="_on_Button_mouse_exited"]
[connection signal="mouse_entered" from="Exit" to="." method="_on_Button_mouse_entered"]
[connection signal="mouse_exited" from="Exit" to="." method="_on_Button_mouse_exited"]
[connection signal="pressed" from="Exit" to="." method="_on_Exit_pressed"]