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.

102 lines
3.2 KiB

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