-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.tscn
111 lines (102 loc) · 3.33 KB
/
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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Menu/PlayButton.gd" type="Script" id=1]
[ext_resource path="res://Menu/ExitButton.gd" type="Script" id=2]
[ext_resource path="res://Menu/menu.png" type="Texture" id=3]
[ext_resource path="res://Menu/MainMenuTitleFont.tres" type="DynamicFont" id=4]
[ext_resource path="res://Fonts/ButtonFont.tres" type="DynamicFont" id=5]
[ext_resource path="res://Menu/ButtonHoverPressed.tres" type="StyleBox" id=6]
[ext_resource path="res://Menu/ButtonNormal.tres" type="StyleBox" id=7]
[ext_resource path="res://Menu/CreditsButton.gd" type="Script" id=8]
[node name="MainMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sprite" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -960.0
margin_top = -540.0
margin_right = 960.0
margin_bottom = 540.0
texture = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RichTextLabel" type="Label" parent="."]
anchor_left = 0.501
anchor_right = 0.501
margin_left = -959.091
margin_top = 124.426
margin_right = 960.91
margin_bottom = 289.426
custom_fonts/font = ExtResource( 4 )
text = "The Scholar
"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -960.0
margin_top = 254.0
margin_right = 962.0
margin_bottom = 1080.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 761.0
margin_top = 259.0
margin_right = 1161.0
margin_bottom = 567.0
[node name="PlayButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_right = 400.0
margin_bottom = 100.0
rect_min_size = Vector2( 400, 100 )
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 6 )
custom_styles/normal = ExtResource( 7 )
custom_fonts/font = ExtResource( 5 )
text = "Play"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CreditsButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 104.0
margin_right = 400.0
margin_bottom = 204.0
rect_min_size = Vector2( 400, 100 )
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 6 )
custom_styles/normal = ExtResource( 7 )
custom_fonts/font = ExtResource( 5 )
text = "Credits"
script = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ExitButton" type="Button" parent="CenterContainer/VBoxContainer"]
margin_top = 208.0
margin_right = 400.0
margin_bottom = 308.0
rect_min_size = Vector2( 400, 100 )
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 6 )
custom_styles/normal = ExtResource( 7 )
custom_fonts/font = ExtResource( 5 )
text = "Exit"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="CenterContainer/VBoxContainer/PlayButton" to="CenterContainer/VBoxContainer/PlayButton" method="_on_PlayButton_pressed"]
[connection signal="pressed" from="CenterContainer/VBoxContainer/CreditsButton" to="CenterContainer/VBoxContainer/CreditsButton" method="_on_CreditsButton_pressed"]
[connection signal="pressed" from="CenterContainer/VBoxContainer/ExitButton" to="CenterContainer/VBoxContainer/ExitButton" method="_on_ExitButton_pressed"]