Public repository for MUR pre alpha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.9 KiB

  1. [gd_scene load_steps=7 format=2]
  2. [ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
  3. [ext_resource path="res://scripts/menus/main.gd" type="Script" id=2]
  4. [ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=3]
  5. [ext_resource path="res://assets/icons/singleplayer.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/icons/wrench.png" type="Texture" id=5]
  7. [ext_resource path="res://assets/icons/power.png" type="Texture" id=6]
  8. [node name="main_menu" type="Control"]
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. margin_left = -0.857361
  12. margin_right = -0.857361
  13. theme = ExtResource( 1 )
  14. script = ExtResource( 2 )
  15. [node name="menu" type="Panel" parent="."]
  16. anchor_left = 0.5
  17. anchor_top = 0.5
  18. anchor_right = 0.5
  19. anchor_bottom = 0.5
  20. margin_left = -155.0
  21. margin_top = -132.5
  22. margin_right = 155.0
  23. margin_bottom = 132.5
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26. [node name="GridContainer" type="GridContainer" parent="menu"]
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. [node name="multiplayer" type="Button" parent="menu/GridContainer"]
  30. margin_right = 310.0
  31. margin_bottom = 63.0
  32. focus_neighbour_top = NodePath("../quit")
  33. focus_neighbour_bottom = NodePath("../practice")
  34. size_flags_horizontal = 3
  35. size_flags_vertical = 3
  36. text = "MULTIPLAYER"
  37. icon = ExtResource( 3 )
  38. flat = true
  39. [node name="practice" type="Button" parent="menu/GridContainer"]
  40. margin_top = 67.0
  41. margin_right = 310.0
  42. margin_bottom = 130.0
  43. focus_neighbour_top = NodePath("../multiplayer")
  44. focus_neighbour_bottom = NodePath("../settings")
  45. size_flags_horizontal = 3
  46. size_flags_vertical = 3
  47. text = "PRACTISE"
  48. icon = ExtResource( 4 )
  49. flat = true
  50. [node name="settings" type="Button" parent="menu/GridContainer"]
  51. margin_top = 134.0
  52. margin_right = 310.0
  53. margin_bottom = 197.0
  54. focus_neighbour_top = NodePath("../practice")
  55. focus_neighbour_bottom = NodePath("../quit")
  56. size_flags_horizontal = 3
  57. size_flags_vertical = 3
  58. text = "SETTINGS"
  59. icon = ExtResource( 5 )
  60. flat = true
  61. [node name="quit" type="Button" parent="menu/GridContainer"]
  62. margin_top = 201.0
  63. margin_right = 310.0
  64. margin_bottom = 264.0
  65. focus_neighbour_top = NodePath("../settings")
  66. focus_neighbour_bottom = NodePath("../multiplayer")
  67. size_flags_horizontal = 3
  68. size_flags_vertical = 3
  69. text = "QUIT"
  70. icon = ExtResource( 6 )
  71. flat = true
  72. [node name="error_dialog" type="AcceptDialog" parent="."]
  73. margin_right = 138.0
  74. margin_bottom = 84.0
  75. window_title = "ALERT"
  76. dialog_text = "Server disconnected!"
  77. [connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_multiplayer_pressed"]
  78. [connection signal="pressed" from="menu/GridContainer/multiplayer" to="." method="_on_online_pressed"]
  79. [connection signal="pressed" from="menu/GridContainer/practice" to="." method="_on_practice_pressed"]
  80. [connection signal="pressed" from="menu/GridContainer/settings" to="." method="_on_settings_pressed"]
  81. [connection signal="pressed" from="menu/GridContainer/quit" to="." method="_on_quit_pressed"]