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.

118 lines
3.5 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.0
  24. margin_top = -53.0
  25. margin_right = 218.0
  26. margin_bottom = 94.0
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. [node name="VBoxContainer" type="VBoxContainer" parent="menu"]
  30. margin_left = 12.0
  31. margin_top = 11.0
  32. margin_right = 423.0
  33. margin_bottom = 92.0
  34. [node name="HBoxContainer" type="HBoxContainer" parent="menu/VBoxContainer"]
  35. margin_right = 411.0
  36. margin_bottom = 37.0
  37. [node name="port_label" type="Label" parent="menu/VBoxContainer/HBoxContainer"]
  38. margin_top = 5.0
  39. margin_right = 65.0
  40. margin_bottom = 32.0
  41. text = "PORT"
  42. [node name="port" type="SpinBox" parent="menu/VBoxContainer/HBoxContainer"]
  43. margin_left = 69.0
  44. margin_right = 411.0
  45. margin_bottom = 37.0
  46. focus_neighbour_bottom = NodePath("../../HBoxContainer2/bots")
  47. focus_mode = 2
  48. size_flags_horizontal = 3
  49. max_value = 65535.0
  50. value = 8128.0
  51. align = 2
  52. [node name="HBoxContainer2" type="HBoxContainer" parent="menu/VBoxContainer"]
  53. margin_top = 41.0
  54. margin_right = 411.0
  55. margin_bottom = 81.0
  56. [node name="bots" type="CheckButton" parent="menu/VBoxContainer/HBoxContainer2"]
  57. margin_right = 143.0
  58. margin_bottom = 40.0
  59. focus_neighbour_top = NodePath("../../HBoxContainer/port")
  60. focus_neighbour_right = NodePath("../bot_difficulty")
  61. focus_neighbour_bottom = NodePath("../../../back")
  62. text = "BOTS"
  63. [node name="bot_difficulty" type="HSlider" parent="menu/VBoxContainer/HBoxContainer2"]
  64. margin_left = 147.0
  65. margin_right = 411.0
  66. margin_bottom = 40.0
  67. focus_neighbour_left = NodePath("../bots")
  68. focus_neighbour_top = NodePath("../../HBoxContainer/port")
  69. focus_neighbour_bottom = NodePath("../../../host")
  70. size_flags_horizontal = 3
  71. size_flags_vertical = 1
  72. max_value = 1.0
  73. step = 0.1
  74. tick_count = 11
  75. ticks_on_borders = true
  76. [node name="host" type="Button" parent="menu"]
  77. anchor_left = 1.0
  78. anchor_top = 1.0
  79. anchor_right = 1.0
  80. anchor_bottom = 1.0
  81. margin_left = -143.0
  82. margin_top = -56.0001
  83. grow_horizontal = 0
  84. grow_vertical = 0
  85. rect_pivot_offset = Vector2( 1.89856, 0.845154 )
  86. focus_neighbour_left = NodePath("../back")
  87. focus_neighbour_top = NodePath("../VBoxContainer/HBoxContainer2/bot_difficulty")
  88. custom_fonts/font = ExtResource( 3 )
  89. text = "HOST"
  90. icon = ExtResource( 4 )
  91. flat = true
  92. [node name="back" type="Button" parent="menu"]
  93. anchor_top = 1.0
  94. anchor_bottom = 1.0
  95. margin_top = -56.0
  96. margin_right = 132.0
  97. rect_pivot_offset = Vector2( 0.606262, -0.447205 )
  98. focus_neighbour_top = NodePath("../VBoxContainer/HBoxContainer2/bots")
  99. focus_neighbour_right = NodePath("../host")
  100. custom_fonts/font = ExtResource( 3 )
  101. text = "BACK"
  102. icon = ExtResource( 5 )
  103. flat = true
  104. [connection signal="toggled" from="menu/VBoxContainer/HBoxContainer2/bots" to="." method="_on_bots_toggled"]
  105. [connection signal="pressed" from="menu/host" to="." method="_on_host_pressed"]
  106. [connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]