-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenu.tscn
More file actions
161 lines (146 loc) · 4.09 KB
/
MainMenu.tscn
File metadata and controls
161 lines (146 loc) · 4.09 KB
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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Scripts/MainMenu.gd" type="Script" id=1]
[ext_resource path="res://Sprites/lobby_button_2.png" type="Texture" id=2]
[ext_resource path="res://Sprites/civil_war_news.jpg" type="Texture" id=3]
[ext_resource path="res://OperaLyricsSmooth-OOJo.ttf" type="DynamicFontData" id=4]
[ext_resource path="res://Sprites/vignette.png" type="Texture" id=5]
[sub_resource type="DynamicFont" id=1]
size = 24
outline_color = Color( 0.8, 0.8, 0.8, 1 )
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=2]
font_data = ExtResource( 4 )
[sub_resource type="DynamicFont" id=3]
font_data = ExtResource( 4 )
[node name="MainMenu" type="CanvasLayer"]
script = ExtResource( 1 )
[node name="Vignette" type="Sprite" parent="."]
modulate = Color( 1, 1, 1, 0.631373 )
position = Vector2( 512.202, 331.711 )
scale = Vector2( 1.00894, 1.00915 )
texture = ExtResource( 5 )
flip_v = true
[node name="TextureRect2" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -207.0
margin_top = -144.0
margin_right = 211.0
margin_bottom = 153.0
texture = ExtResource( 3 )
expand = true
stretch_mode = 1
flip_v = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -204.0
margin_top = -145.5
margin_right = 210.0
margin_bottom = 145.5
texture = ExtResource( 3 )
expand = true
stretch_mode = 6
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MainMenuButtons" type="VBoxContainer" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -148.5
margin_top = -72.5
margin_right = 148.5
margin_bottom = 72.5
size_flags_horizontal = 0
size_flags_vertical = 0
custom_constants/separation = 13
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="MainMenuButtons"]
margin_right = 297.0
margin_bottom = 30.0
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0.27451, 0.215686, 0.215686, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_constants/shadow_offset_x = 13
text = "Master Volume"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VSlider" type="HSlider" parent="MainMenuButtons"]
modulate = Color( 0.780392, 0.729412, 0.172549, 1 )
margin_top = 43.0
margin_right = 297.0
margin_bottom = 59.0
size_flags_horizontal = 3
size_flags_vertical = 1
max_value = 1.0
step = 0.05
value = 1.0
tick_count = 11
ticks_on_borders = true
[node name="ResumeButton" type="TextureButton" parent="MainMenuButtons"]
margin_top = 72.0
margin_right = 297.0
margin_bottom = 104.0
rect_min_size = Vector2( 0, 32 )
texture_normal = ExtResource( 2 )
expand = true
stretch_mode = 3
[node name="Label" type="Label" parent="MainMenuButtons/ResumeButton"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -47.0
margin_top = -7.00002
margin_right = 47.0
margin_bottom = 7.00002
custom_fonts/font = SubResource( 2 )
custom_colors/font_color = Color( 0.27451, 0.215686, 0.215686, 1 )
text = "Resume Game"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="QuitButton" type="TextureButton" parent="MainMenuButtons"]
margin_top = 117.0
margin_right = 297.0
margin_bottom = 149.0
rect_min_size = Vector2( 0, 32 )
texture_normal = ExtResource( 2 )
expand = true
stretch_mode = 3
[node name="Label2" type="Label" parent="MainMenuButtons/QuitButton"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -47.0
margin_top = -15.5
margin_right = 47.0
margin_bottom = 15.5
custom_fonts/font = SubResource( 3 )
custom_colors/font_color = Color( 0.27451, 0.215686, 0.215686, 1 )
text = "Exit"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="value_changed" from="MainMenuButtons/VSlider" to="." method="set_volume"]
[connection signal="pressed" from="MainMenuButtons/ResumeButton" to="." method="close_menu"]
[connection signal="pressed" from="MainMenuButtons/QuitButton" to="." method="exit_game"]