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.

161 lines
5.2 KiB

  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
  3. [ext_resource path="res://scripts/menus/server_menu.gd" type="Script" id=2]
  4. [ext_resource path="res://scenes/menus/BaseMenu.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://assets/icons/cpu.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=5]
  7. [ext_resource path="res://assets/icons/car.png" type="Texture" id=6]
  8. [ext_resource path="res://assets/icons/trophy.png" type="Texture" id=7]
  9. [ext_resource path="res://assets/icons/locked.png" type="Texture" id=8]
  10. [ext_resource path="res://assets/icons/massiveMultiplayer.png" type="Texture" id=9]
  11. [ext_resource path="res://assets/icons/fistPlus.png" type="Texture" id=10]
  12. [node name="multiplayer_menu" type="Control"]
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. margin_left = -0.142624
  16. margin_top = 2.85742
  17. margin_right = -0.142578
  18. margin_bottom = 2.85742
  19. theme = ExtResource( 1 )
  20. script = ExtResource( 2 )
  21. [node name="menu" parent="." instance=ExtResource( 3 )]
  22. [node name="back" parent="menu" index="0"]
  23. focus_neighbour_top = NodePath("../games")
  24. focus_neighbour_right = NodePath("../bottom_bar/refresh")
  25. [node name="HBoxContainer" type="HBoxContainer" parent="menu"]
  26. anchor_right = 1.0
  27. margin_bottom = 56.0
  28. [node name="direct_host" type="Button" parent="menu/HBoxContainer"]
  29. margin_right = 239.0
  30. margin_bottom = 56.0
  31. focus_neighbour_right = NodePath("../direct_join")
  32. focus_neighbour_bottom = NodePath("../../games")
  33. text = "DIRECT_HOST"
  34. icon = ExtResource( 4 )
  35. flat = true
  36. [node name="direct_join" type="Button" parent="menu/HBoxContainer"]
  37. margin_left = 243.0
  38. margin_right = 473.0
  39. margin_bottom = 56.0
  40. focus_neighbour_left = NodePath("../direct_host")
  41. focus_neighbour_right = NodePath("../open")
  42. focus_neighbour_bottom = NodePath("../../games")
  43. text = "DIRECT_JOIN"
  44. icon = ExtResource( 5 )
  45. flat = true
  46. [node name="open" type="CheckButton" parent="menu/HBoxContainer"]
  47. margin_left = 477.0
  48. margin_right = 945.0
  49. margin_bottom = 56.0
  50. focus_neighbour_left = NodePath("../direct_join")
  51. focus_neighbour_bottom = NodePath("../../games")
  52. size_flags_horizontal = 3
  53. disabled = true
  54. pressed = true
  55. text = "OPEN_GAMES_ONLY"
  56. align = 2
  57. [node name="games" type="ItemList" parent="menu"]
  58. margin_left = 13.0
  59. margin_top = 60.0
  60. margin_right = 931.0
  61. margin_bottom = 414.0
  62. focus_neighbour_top = NodePath("../top_bar/open")
  63. focus_neighbour_bottom = NodePath("../bottom_bar/join")
  64. [node name="open_icon" type="Button" parent="menu/games"]
  65. visible = false
  66. margin_right = 12.0
  67. margin_bottom = 33.0
  68. icon = ExtResource( 6 )
  69. [node name="running_icon" type="Button" parent="menu/games"]
  70. visible = false
  71. margin_right = 12.0
  72. margin_bottom = 33.0
  73. icon = ExtResource( 7 )
  74. [node name="private_icon" type="Button" parent="menu/games"]
  75. visible = false
  76. margin_right = 12.0
  77. margin_bottom = 33.0
  78. icon = ExtResource( 8 )
  79. [node name="bottom_bar" type="HBoxContainer" parent="menu"]
  80. anchor_top = 1.0
  81. anchor_right = 1.0
  82. anchor_bottom = 1.0
  83. margin_left = 380.0
  84. margin_top = -56.0
  85. grow_horizontal = 0
  86. size_flags_horizontal = 6
  87. size_flags_vertical = 6
  88. alignment = 2
  89. [node name="refresh" type="Button" parent="menu/bottom_bar"]
  90. margin_right = 183.0
  91. margin_bottom = 56.0
  92. grow_horizontal = 0
  93. focus_neighbour_left = NodePath("../../back")
  94. focus_neighbour_top = NodePath("../../games")
  95. focus_neighbour_right = NodePath("../create")
  96. text = "REFRESH"
  97. icon = ExtResource( 9 )
  98. flat = true
  99. align = 0
  100. [node name="create" type="Button" parent="menu/bottom_bar"]
  101. margin_left = 187.0
  102. margin_right = 441.0
  103. margin_bottom = 56.0
  104. focus_neighbour_left = NodePath("../refresh")
  105. focus_neighbour_top = NodePath("../../games")
  106. focus_neighbour_right = NodePath("../join")
  107. disabled = true
  108. text = "CREATE_GAME"
  109. icon = ExtResource( 10 )
  110. flat = true
  111. align = 2
  112. [node name="join" type="Button" parent="menu/bottom_bar"]
  113. margin_left = 445.0
  114. margin_right = 565.0
  115. margin_bottom = 56.0
  116. focus_neighbour_left = NodePath("../create")
  117. focus_neighbour_top = NodePath("../../games")
  118. disabled = true
  119. text = "JOIN"
  120. icon = ExtResource( 5 )
  121. flat = true
  122. align = 2
  123. [node name="error_dialog" type="AcceptDialog" parent="."]
  124. margin_right = 138.0
  125. margin_bottom = 84.0
  126. window_title = "ALERT"
  127. [node name="refresh_timer" type="Timer" parent="."]
  128. wait_time = 5.0
  129. autostart = true
  130. [connection signal="draw" from="." to="." method="_on_multiplayer_menu_draw"]
  131. [connection signal="hide" from="." to="." method="_on_multiplayer_menu_hide"]
  132. [connection signal="pressed" from="menu/HBoxContainer/direct_host" to="." method="_on_direct_host_pressed"]
  133. [connection signal="pressed" from="menu/HBoxContainer/direct_join" to="." method="_on_direct_join_pressed"]
  134. [connection signal="toggled" from="menu/HBoxContainer/open" to="." method="_on_open_toggled"]
  135. [connection signal="item_selected" from="menu/games" to="." method="_on_games_item_selected"]
  136. [connection signal="nothing_selected" from="menu/games" to="." method="_on_games_nothing_selected"]
  137. [connection signal="pressed" from="menu/bottom_bar/refresh" to="." method="_on_refresh_pressed"]
  138. [connection signal="pressed" from="menu/bottom_bar/create" to="." method="_on_create_pressed"]
  139. [connection signal="pressed" from="menu/bottom_bar/join" to="." method="_on_join_pressed"]
  140. [connection signal="timeout" from="refresh_timer" to="." method="_on_refresh_timer_timeout"]
  141. [editable path="menu"]