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.

95 lines
2.6 KiB

  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://resources/ui/theme.tres" type="Theme" id=1]
  3. [ext_resource path="res://scripts/menus/direct_host_menu.gd" type="Script" id=2]
  4. [ext_resource path="res://resources/ui/font.tres" type="DynamicFont" id=3]
  5. [ext_resource path="res://assets/icons/exitRight.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
  7. [node name="direct_host_menu" type="Control"]
  8. anchor_left = 0.5
  9. anchor_top = 0.5
  10. anchor_right = 0.5
  11. anchor_bottom = 0.5
  12. margin_left = -512.0
  13. margin_top = -300.0
  14. margin_right = 512.0
  15. margin_bottom = 300.0
  16. theme = ExtResource( 1 )
  17. script = ExtResource( 2 )
  18. [node name="menu" type="Panel" parent="."]
  19. anchor_left = 0.5
  20. anchor_top = 0.5
  21. anchor_right = 0.5
  22. anchor_bottom = 0.5
  23. margin_left = -217.5
  24. margin_top = -53.5
  25. margin_right = 217.5
  26. margin_bottom = 53.5
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. [node name="HBoxContainer" type="HBoxContainer" parent="menu"]
  30. margin_left = 16.0
  31. margin_top = 12.0
  32. margin_right = 429.0
  33. margin_bottom = 52.0
  34. [node name="port_label" type="Label" parent="menu/HBoxContainer"]
  35. margin_top = 6.0
  36. margin_right = 65.0
  37. margin_bottom = 33.0
  38. text = "PORT"
  39. [node name="port" type="SpinBox" parent="menu/HBoxContainer"]
  40. margin_left = 69.0
  41. margin_right = 266.0
  42. margin_bottom = 40.0
  43. focus_neighbour_right = NodePath("../bots")
  44. focus_neighbour_bottom = NodePath("../../back")
  45. size_flags_horizontal = 3
  46. max_value = 65535.0
  47. value = 8128.0
  48. align = 2
  49. [node name="bots" type="CheckButton" parent="menu/HBoxContainer"]
  50. margin_left = 270.0
  51. margin_right = 413.0
  52. margin_bottom = 40.0
  53. focus_neighbour_left = NodePath("../port")
  54. focus_neighbour_bottom = NodePath("../../host")
  55. text = "BOTS"
  56. [node name="host" type="Button" parent="menu"]
  57. anchor_left = 1.0
  58. anchor_top = 1.0
  59. anchor_right = 1.0
  60. anchor_bottom = 1.0
  61. margin_left = -143.0
  62. margin_top = -56.0001
  63. grow_horizontal = 0
  64. grow_vertical = 0
  65. rect_pivot_offset = Vector2( 1.89856, 0.845154 )
  66. focus_neighbour_left = NodePath("../back")
  67. focus_neighbour_top = NodePath("../GridContainer/bots")
  68. custom_fonts/font = ExtResource( 3 )
  69. text = "HOST"
  70. icon = ExtResource( 4 )
  71. flat = true
  72. [node name="back" type="Button" parent="menu"]
  73. anchor_top = 1.0
  74. anchor_bottom = 1.0
  75. margin_top = -56.0
  76. margin_right = 132.0
  77. rect_pivot_offset = Vector2( 0.606262, -0.447205 )
  78. focus_neighbour_top = NodePath("../GridContainer/port")
  79. focus_neighbour_right = NodePath("../host")
  80. custom_fonts/font = ExtResource( 3 )
  81. text = "BACK"
  82. icon = ExtResource( 5 )
  83. flat = true
  84. [connection signal="pressed" from="menu/host" to="." method="_on_host_pressed"]
  85. [connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]