-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_menu.tscn
163 lines (145 loc) · 3.76 KB
/
main_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
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
162
163
[gd_scene load_steps=10 format=2]
[ext_resource path="res://gui_theme.tres" type="Theme" id=1]
[ext_resource path="res://credits.gd" type="Script" id=2]
[ext_resource path="res://assets/stellarkombat.ttf" type="DynamicFontData" id=3]
[ext_resource path="res://main_menu.gd" type="Script" id=4]
[sub_resource type="CanvasItemMaterial" id=1]
[sub_resource type="CanvasItemMaterial" id=2]
[sub_resource type="DynamicFont" id=3]
outline_size = 1
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 3 )
[sub_resource type="Animation" id=4]
resource_name = "fade_in"
length = 0.25
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("controls:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.25 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
[sub_resource type="Animation" id=5]
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("controls:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
[node name="main_menu" type="CanvasLayer"]
script = ExtResource( 4 )
[node name="controls" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="buttons" type="VBoxContainer" parent="controls"]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 70.0
margin_top = -256.0
margin_right = 344.0
margin_bottom = -50.0
custom_constants/separation = 16
__meta__ = {
"_edit_use_anchors_": false
}
[node name="play" type="Button" parent="controls/buttons"]
margin_right = 274.0
margin_bottom = 39.0
size_flags_vertical = 3
text = "Play"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="highscores" type="Button" parent="controls/buttons"]
margin_top = 55.0
margin_right = 274.0
margin_bottom = 95.0
size_flags_vertical = 3
text = "Highscores"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="settings" type="Button" parent="controls/buttons"]
margin_top = 111.0
margin_right = 274.0
margin_bottom = 150.0
size_flags_vertical = 3
text = "Settings"
[node name="quit" type="Button" parent="controls/buttons"]
margin_top = 166.0
margin_right = 274.0
margin_bottom = 206.0
size_flags_vertical = 3
text = "Quit"
[node name="title" type="Label" parent="controls"]
margin_left = 70.0
margin_top = 50.0
margin_right = 278.0
margin_bottom = 75.0
rect_scale = Vector2( 3, 3 )
text = "Asteroids"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="version" type="Label" parent="controls"]
margin_left = 704.0
margin_top = 48.0
margin_right = 773.0
margin_bottom = 73.0
text = "V1.0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="credits" type="Container" parent="controls"]
material = SubResource( 1 )
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -450.0
margin_top = 200.0
margin_right = -70.0
margin_bottom = -50.0
rect_min_size = Vector2( 380, 350 )
rect_clip_content = true
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="text" type="RichTextLabel" parent="controls/credits"]
material = SubResource( 2 )
margin_top = 1.52588e-05
margin_right = 380.0
margin_bottom = 100.0
rect_clip_content = false
size_flags_horizontal = 3
custom_fonts/normal_font = SubResource( 3 )
bbcode_enabled = true
bbcode_text = "[center]Credits go here
"
text = "Credits go here
"
fit_content_height = true
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="animations" type="AnimationPlayer" parent="."]
anims/fade_in = SubResource( 4 )
anims/fade_out = SubResource( 5 )