|
|
@ -1,4 +1,4 @@ |
|
|
|
[gd_scene load_steps=7 format=2] |
|
|
|
[gd_scene load_steps=8 format=2] |
|
|
|
|
|
|
|
[ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1] |
|
|
|
[ext_resource path="res://scripts/menus/main.gd" type="Script" id=2] |
|
|
@ -6,6 +6,7 @@ |
|
|
|
[ext_resource path="res://assets/icons/singleplayer.png" type="Texture" id=4] |
|
|
|
[ext_resource path="res://assets/icons/wrench.png" type="Texture" id=5] |
|
|
|
[ext_resource path="res://assets/icons/power.png" type="Texture" id=6] |
|
|
|
[ext_resource path="res://assets/icons/question.png" type="Texture" id=7] |
|
|
|
|
|
|
|
[node name="main_menu" type="Control"] |
|
|
|
anchor_right = 1.0 |
|
|
@ -27,11 +28,11 @@ margin_bottom = 132.5 |
|
|
|
grow_horizontal = 2 |
|
|
|
grow_vertical = 2 |
|
|
|
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="menu"] |
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="menu"] |
|
|
|
anchor_right = 1.0 |
|
|
|
anchor_bottom = 1.0 |
|
|
|
|
|
|
|
[node name="multiplayer" type="Button" parent="menu/GridContainer"] |
|
|
|
[node name="multiplayer" type="Button" parent="menu/VBoxContainer"] |
|
|
|
margin_right = 310.0 |
|
|
|
margin_bottom = 63.0 |
|
|
|
focus_neighbour_top = NodePath("../quit") |
|
|
@ -42,7 +43,7 @@ text = "MULTIPLAYER" |
|
|
|
icon = ExtResource( 3 ) |
|
|
|
flat = true |
|
|
|
|
|
|
|
[node name="practice" type="Button" parent="menu/GridContainer"] |
|
|
|
[node name="practice" type="Button" parent="menu/VBoxContainer"] |
|
|
|
margin_top = 67.0 |
|
|
|
margin_right = 310.0 |
|
|
|
margin_bottom = 130.0 |
|
|
@ -54,7 +55,7 @@ text = "PRACTISE" |
|
|
|
icon = ExtResource( 4 ) |
|
|
|
flat = true |
|
|
|
|
|
|
|
[node name="settings" type="Button" parent="menu/GridContainer"] |
|
|
|
[node name="settings" type="Button" parent="menu/VBoxContainer"] |
|
|
|
margin_top = 134.0 |
|
|
|
margin_right = 310.0 |
|
|
|
margin_bottom = 197.0 |
|
|
@ -66,10 +67,10 @@ text = "SETTINGS" |
|
|
|
icon = ExtResource( 5 ) |
|
|
|
flat = true |
|
|
|
|
|
|
|
[node name="quit" type="Button" parent="menu/GridContainer"] |
|
|
|
[node name="quit" type="Button" parent="menu/VBoxContainer"] |
|
|
|
margin_top = 201.0 |
|
|
|
margin_right = 310.0 |
|
|
|
margin_bottom = 264.0 |
|
|
|
margin_bottom = 265.0 |
|
|
|
focus_neighbour_top = NodePath("../settings") |
|
|
|
focus_neighbour_bottom = NodePath("../multiplayer") |
|
|
|
size_flags_horizontal = 3 |
|
|
@ -83,8 +84,18 @@ margin_right = 138.0 |
|
|
|
margin_bottom = 84.0 |
|
|
|
window_title = "ALERT" |
|
|
|
dialog_text = "Server disconnected!" |
|
|
|
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_multiplayer_pressed"] |
|
|
|
[connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_online_pressed"] |
|
|
|
[connection signal="pressed" from="menu/GridContainer/practice" to="." method="_on_practice_pressed"] |
|
|
|
[connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"] |
|
|
|
[connection signal="pressed" from="menu/GridContainer/quit" to="." method="_on_quit_pressed"] |
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="."] |
|
|
|
anchor_left = 1.0 |
|
|
|
anchor_top = 1.0 |
|
|
|
anchor_right = 1.0 |
|
|
|
anchor_bottom = 1.0 |
|
|
|
margin_left = -62.0 |
|
|
|
margin_top = -56.0 |
|
|
|
icon = ExtResource( 7 ) |
|
|
|
flat = true |
|
|
|
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_multiplayer_pressed"] |
|
|
|
[connection signal="pressed" from="menu/VBoxContainer/multiplayer" to="." method="_on_online_pressed"] |
|
|
|
[connection signal="pressed" from="menu/VBoxContainer/practice" to="." method="_on_practice_pressed"] |
|
|
|
[connection signal="pressed" from="menu/VBoxContainer/settings" to="." method="_on_settings_pressed"] |
|
|
|
[connection signal="pressed" from="menu/VBoxContainer/quit" to="." method="_on_quit_pressed"] |