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.

159 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.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="top_bar" type="GridContainer" parent="menu"]
  26. anchor_right = 1.0
  27. margin_bottom = 56.0
  28. columns = 3
  29. [node name="direct_host" type="Button" parent="menu/top_bar"]
  30. margin_right = 239.0
  31. margin_bottom = 56.0
  32. focus_neighbour_right = NodePath("../direct_join")
  33. focus_neighbour_bottom = NodePath("../../games")
  34. text = "DIRECT_HOST"
  35. icon = ExtResource( 4 )
  36. flat = true
  37. [node name="direct_join" type="Button" parent="menu/top_bar"]
  38. margin_left = 243.0
  39. margin_right = 473.0
  40. margin_bottom = 56.0
  41. focus_neighbour_left = NodePath("../direct_host")
  42. focus_neighbour_right = NodePath("../open")
  43. focus_neighbour_bottom = NodePath("../../games")
  44. text = "DIRECT_JOIN"
  45. icon = ExtResource( 5 )
  46. flat = true
  47. [node name="open" type="CheckButton" parent="menu/top_bar"]
  48. margin_left = 477.0
  49. margin_right = 945.0
  50. margin_bottom = 56.0
  51. focus_neighbour_left = NodePath("../direct_join")
  52. focus_neighbour_bottom = NodePath("../../games")
  53. size_flags_horizontal = 3
  54. disabled = true
  55. pressed = true
  56. text = "OPEN_GAMES_ONLY"
  57. align = 2
  58. [node name="games" type="ItemList" parent="menu"]
  59. margin_left = 13.0
  60. margin_top = 60.0
  61. margin_right = 931.0
  62. margin_bottom = 414.0
  63. focus_neighbour_top = NodePath("../top_bar/open")
  64. focus_neighbour_bottom = NodePath("../bottom_bar/join")
  65. [node name="open_icon" type="Button" parent="menu/games"]
  66. visible = false
  67. margin_right = 12.0
  68. margin_bottom = 33.0
  69. icon = ExtResource( 6 )
  70. [node name="running_icon" type="Button" parent="menu/games"]
  71. visible = false
  72. margin_right = 12.0
  73. margin_bottom = 33.0
  74. icon = ExtResource( 7 )
  75. [node name="private_icon" type="Button" parent="menu/games"]
  76. visible = false
  77. margin_right = 12.0
  78. margin_bottom = 33.0
  79. icon = ExtResource( 8 )
  80. [node name="bottom_bar" type="GridContainer" parent="menu"]
  81. anchor_top = 1.0
  82. anchor_right = 1.0
  83. anchor_bottom = 1.0
  84. margin_left = 380.0
  85. margin_top = -56.0
  86. grow_horizontal = 0
  87. columns = 3
  88. [node name="refresh" type="Button" parent="menu/bottom_bar"]
  89. margin_right = 183.0
  90. margin_bottom = 56.0
  91. grow_horizontal = 0
  92. focus_neighbour_left = NodePath("../../back")
  93. focus_neighbour_top = NodePath("../../games")
  94. focus_neighbour_right = NodePath("../create")
  95. text = "REFRESH"
  96. icon = ExtResource( 9 )
  97. flat = true
  98. align = 0
  99. [node name="create" type="Button" parent="menu/bottom_bar"]
  100. margin_left = 187.0
  101. margin_right = 441.0
  102. margin_bottom = 56.0
  103. focus_neighbour_left = NodePath("../refresh")
  104. focus_neighbour_top = NodePath("../../games")
  105. focus_neighbour_right = NodePath("../join")
  106. disabled = true
  107. text = "CREATE_GAME"
  108. icon = ExtResource( 10 )
  109. flat = true
  110. align = 2
  111. [node name="join" type="Button" parent="menu/bottom_bar"]
  112. margin_left = 445.0
  113. margin_right = 565.0
  114. margin_bottom = 56.0
  115. focus_neighbour_left = NodePath("../create")
  116. focus_neighbour_top = NodePath("../../games")
  117. disabled = true
  118. text = "JOIN"
  119. icon = ExtResource( 5 )
  120. flat = true
  121. align = 2
  122. [node name="error_dialog" type="AcceptDialog" parent="."]
  123. margin_right = 138.0
  124. margin_bottom = 84.0
  125. window_title = "ALERT"
  126. [node name="refresh_timer" type="Timer" parent="."]
  127. wait_time = 5.0
  128. autostart = true
  129. [connection signal="draw" from="." to="." method="_on_multiplayer_menu_draw"]
  130. [connection signal="hide" from="." to="." method="_on_multiplayer_menu_hide"]
  131. [connection signal="pressed" from="menu/top_bar/direct_host" to="." method="_on_direct_host_pressed"]
  132. [connection signal="pressed" from="menu/top_bar/direct_join" to="." method="_on_direct_join_pressed"]
  133. [connection signal="toggled" from="menu/top_bar/open" to="." method="_on_open_toggled"]
  134. [connection signal="item_selected" from="menu/games" to="." method="_on_games_item_selected"]
  135. [connection signal="nothing_selected" from="menu/games" to="." method="_on_games_nothing_selected"]
  136. [connection signal="pressed" from="menu/bottom_bar/refresh" to="." method="_on_refresh_pressed"]
  137. [connection signal="pressed" from="menu/bottom_bar/create" to="." method="_on_create_pressed"]
  138. [connection signal="pressed" from="menu/bottom_bar/join" to="." method="_on_join_pressed"]
  139. [connection signal="timeout" from="refresh_timer" to="." method="_on_refresh_timer_timeout"]
  140. [editable path="menu"]