1
1
[gd_scene load_steps =10 format =3 uid ="uid://yyc1l3e78qgl" ]
2
2
3
3
[ext_resource type ="Script" path ="res://scripts/menu.gd" id ="1_f4qtc" ]
4
+ [ext_resource type ="Theme" uid ="uid://bbjcf4njtb4tm" path ="res://assets/theme_small.tres" id ="2_7ph5j" ]
4
5
5
6
[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_r2tkh" ]
6
7
bg_color = Color (0.239216 , 0.239216 , 0.239216 , 1 )
@@ -49,9 +50,6 @@ border_color = Color(0, 0, 0, 1)
49
50
[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_eb82c" ]
50
51
bg_color = Color (0.137255 , 0.137255 , 0.137255 , 1 )
51
52
52
- [sub_resource type ="Theme" id ="Theme_31w7n" ]
53
- default_font_size = 70
54
-
55
53
[node name ="Menu" type ="CanvasLayer" ]
56
54
script = ExtResource ("1_f4qtc" )
57
55
@@ -126,7 +124,6 @@ theme_override_styles/focus = SubResource("StyleBoxFlat_sdl70")
126
124
text = "Quit Game"
127
125
128
126
[node name ="RoundCreation" type ="CanvasLayer" parent ="." ]
129
- visible = false
130
127
131
128
[node name ="ColorRect" type ="ColorRect" parent ="RoundCreation" ]
132
129
anchors_preset = 15
@@ -137,80 +134,118 @@ grow_vertical = 2
137
134
color = Color (0.137255 , 0.137255 , 0.137255 , 0.431373 )
138
135
139
136
[node name ="CreationMenu" type ="Panel" parent ="RoundCreation" ]
140
- anchors_preset = 8
141
- anchor_left = 0.5
142
- anchor_top = 0.5
143
- anchor_right = 0.5
144
- anchor_bottom = 0.5
145
- offset_left = -258.0
146
- offset_top = -454.5
147
- offset_right = 258.0
148
- offset_bottom = 454.5
137
+ anchors_preset = 15
138
+ anchor_right = 1.0
139
+ anchor_bottom = 1.0
140
+ offset_left = 660.0
141
+ offset_top = 80.0
142
+ offset_right = -660.0
143
+ offset_bottom = -80.0
149
144
grow_horizontal = 2
150
145
grow_vertical = 2
151
146
theme_override_styles/panel = SubResource ("StyleBoxFlat_yhbp7" )
152
147
148
+ [node name ="ModeSelect" type ="OptionButton" parent ="RoundCreation/CreationMenu" ]
149
+ layout_mode = 1
150
+ offset_left = 40.0
151
+ offset_top = 100.0
152
+ offset_right = 180.0
153
+ offset_bottom = 140.0
154
+ theme = ExtResource ("2_7ph5j" )
155
+ theme_override_font_sizes/font_size = 40
156
+
157
+ [node name ="Label" type ="Label" parent ="RoundCreation/CreationMenu/ModeSelect" ]
158
+ layout_mode = 1
159
+ offset_top = -40.0
160
+ offset_right = 120.0
161
+ theme = ExtResource ("2_7ph5j" )
162
+ text = "Game Mode"
163
+ vertical_alignment = 1
164
+
165
+ [node name ="RoundDuration" type ="SpinBox" parent ="RoundCreation/CreationMenu" ]
166
+ layout_mode = 1
167
+ offset_left = 40.0
168
+ offset_top = 200.0
169
+ offset_right = 135.0
170
+ offset_bottom = 240.0
171
+ theme = ExtResource ("2_7ph5j" )
172
+ min_value = 5.0
173
+ max_value = 90.0
174
+ value = 30.0
175
+ suffix = "s"
176
+ custom_arrow_step = 5.0
177
+
178
+ [node name ="Label" type ="Label" parent ="RoundCreation/CreationMenu/RoundDuration" ]
179
+ layout_mode = 1
180
+ offset_top = -40.0
181
+ offset_right = 160.0
182
+ theme = ExtResource ("2_7ph5j" )
183
+ text = "Round Duration"
184
+ vertical_alignment = 1
185
+
186
+ [node name ="CategoryBox" type ="Tree" parent ="RoundCreation/CreationMenu" ]
187
+ layout_mode = 1
188
+ anchors_preset = 15
189
+ anchor_right = 1.0
190
+ anchor_bottom = 1.0
191
+ offset_left = 38.0
192
+ offset_top = 260.0
193
+ offset_right = -38.0
194
+ offset_bottom = -114.0
195
+ grow_horizontal = 2
196
+ grow_vertical = 2
197
+ theme_override_colors/font_color = Color (0.6 , 0.6 , 0.6 , 1 )
198
+ theme_override_colors/relationship_line_color = Color (0.301961 , 0.301961 , 0.301961 , 1 )
199
+ theme_override_colors/parent_hl_line_color = Color (1 , 1 , 1 , 1 )
200
+ theme_override_colors/children_hl_line_color = Color (0.6 , 0.6 , 0.6 , 1 )
201
+ theme_override_constants/inner_item_margin_left = 5
202
+ theme_override_constants/draw_relationship_lines = 1
203
+ theme_override_constants/relationship_line_width = 2
204
+ theme_override_constants/parent_hl_line_width = 3
205
+ theme_override_constants/children_hl_line_width = 3
206
+ theme_override_constants/draw_guides = 0
207
+ columns = 2
208
+ column_titles_visible = true
209
+ hide_root = true
210
+
153
211
[node name ="Cancel" type ="Button" parent ="RoundCreation/CreationMenu" ]
154
- layout_mode = 0
155
- offset_left = 45.0
156
- offset_top = 821.0
157
- offset_right = 233.0
158
- offset_bottom = 896.0
212
+ layout_mode = 1
213
+ anchors_preset = 7
214
+ anchor_left = 0.5
215
+ anchor_top = 1.0
216
+ anchor_right = 0.5
217
+ anchor_bottom = 1.0
218
+ offset_left = -220.0
219
+ offset_top = -100.0
220
+ offset_right = -32.0
221
+ offset_bottom = -25.0
222
+ grow_horizontal = 2
223
+ grow_vertical = 0
159
224
theme_override_font_sizes/font_size = 30
160
225
theme_override_styles/normal = SubResource ("StyleBoxFlat_r78im" )
161
226
theme_override_styles/hover = SubResource ("StyleBoxFlat_v1l70" )
162
227
theme_override_styles/pressed = SubResource ("StyleBoxFlat_eb82c" )
163
228
text = "Cancel"
164
229
165
230
[node name ="Start" type ="Button" parent ="RoundCreation/CreationMenu" ]
166
- layout_mode = 0
167
- offset_left = 286.0
168
- offset_top = 821.0
169
- offset_right = 474.0
170
- offset_bottom = 896.0
231
+ layout_mode = 1
232
+ anchors_preset = 7
233
+ anchor_left = 0.5
234
+ anchor_top = 1.0
235
+ anchor_right = 0.5
236
+ anchor_bottom = 1.0
237
+ offset_left = 40.0
238
+ offset_top = -100.0
239
+ offset_right = 228.0
240
+ offset_bottom = -25.0
241
+ grow_horizontal = 2
242
+ grow_vertical = 0
171
243
theme_override_font_sizes/font_size = 30
172
244
theme_override_styles/normal = SubResource ("StyleBoxFlat_r78im" )
173
245
theme_override_styles/hover = SubResource ("StyleBoxFlat_v1l70" )
174
246
theme_override_styles/pressed = SubResource ("StyleBoxFlat_eb82c" )
175
247
text = "Start Game"
176
248
177
- [node name ="ModeSelect" type ="OptionButton" parent ="RoundCreation/CreationMenu" ]
178
- layout_mode = 1
179
- offset_left = 43.0
180
- offset_top = 44.0
181
- offset_right = 299.0
182
- offset_bottom = 114.0
183
- theme_override_font_sizes/font_size = 40
184
-
185
- [node name ="CategoryBox" type ="Tree" parent ="RoundCreation/CreationMenu" ]
186
- layout_mode = 0
187
- offset_left = 58.0
188
- offset_top = 295.0
189
- offset_right = 478.0
190
- offset_bottom = 775.0
191
- columns = 2
192
- column_titles_visible = true
193
- hide_root = true
194
-
195
- [node name ="RoundDuration" type ="SpinBox" parent ="RoundCreation/CreationMenu" ]
196
- layout_mode = 1
197
- anchors_preset = 6
198
- anchor_left = 1.0
199
- anchor_top = 0.5
200
- anchor_right = 1.0
201
- anchor_bottom = 0.5
202
- offset_left = -472.0
203
- offset_top = -304.5
204
- offset_right = -199.775
205
- offset_bottom = -216.5
206
- grow_horizontal = 0
207
- grow_vertical = 2
208
- theme = SubResource ("Theme_31w7n" )
209
- min_value = 5.0
210
- max_value = 90.0
211
- value = 30.0
212
- suffix = "s"
213
-
214
249
[connection signal ="pressed" from ="Buttons/Play" to ="." method ="on_play_pressed" ]
215
250
[connection signal ="pressed" from ="Buttons/Quit" to ="." method ="on_quit_pressed" ]
216
251
[connection signal ="pressed" from ="RoundCreation/CreationMenu/Cancel" to ="." method ="on_cancel_pressed" ]
0 commit comments