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.

107 lines
2.8 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_join_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_join_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 = -73.5
  25. margin_right = 217.5
  26. margin_bottom = 73.5
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. [node name="GridContainer" type="GridContainer" parent="menu"]
  30. margin_left = 18.0
  31. margin_top = 11.0
  32. margin_right = 425.0
  33. margin_bottom = 89.0
  34. columns = 2
  35. [node name="ip_label" type="Label" parent="menu/GridContainer"]
  36. margin_right = 65.0
  37. margin_bottom = 37.0
  38. size_flags_vertical = 1
  39. text = "IP"
  40. valign = 1
  41. [node name="ip" type="LineEdit" parent="menu/GridContainer"]
  42. margin_left = 69.0
  43. margin_right = 407.0
  44. margin_bottom = 37.0
  45. focus_neighbour_bottom = NodePath("../port")
  46. size_flags_horizontal = 3
  47. text = "127.0.0.1"
  48. caret_blink = true
  49. caret_blink_speed = 0.5
  50. [node name="port_label" type="Label" parent="menu/GridContainer"]
  51. margin_top = 41.0
  52. margin_right = 65.0
  53. margin_bottom = 78.0
  54. size_flags_vertical = 1
  55. text = "PORT"
  56. valign = 1
  57. [node name="port" type="SpinBox" parent="menu/GridContainer"]
  58. margin_left = 69.0
  59. margin_top = 41.0
  60. margin_right = 407.0
  61. margin_bottom = 78.0
  62. focus_neighbour_top = NodePath("../ip")
  63. focus_neighbour_bottom = NodePath("../../join")
  64. focus_mode = 2
  65. max_value = 65535.0
  66. value = 8128.0
  67. align = 2
  68. [node name="join" type="Button" parent="menu"]
  69. anchor_left = 1.0
  70. anchor_top = 1.0
  71. anchor_right = 1.0
  72. anchor_bottom = 1.0
  73. margin_left = -143.0
  74. margin_top = -56.0
  75. grow_horizontal = 0
  76. grow_vertical = 0
  77. rect_pivot_offset = Vector2( 1.89856, 0.845154 )
  78. focus_neighbour_left = NodePath("../back")
  79. focus_neighbour_top = NodePath("../GridContainer/port")
  80. custom_fonts/font = ExtResource( 3 )
  81. text = "JOIN"
  82. icon = ExtResource( 4 )
  83. flat = true
  84. [node name="back" type="Button" parent="menu"]
  85. anchor_top = 1.0
  86. anchor_bottom = 1.0
  87. margin_top = -56.0
  88. margin_right = 132.001
  89. rect_pivot_offset = Vector2( 0.606262, -0.447205 )
  90. focus_neighbour_top = NodePath("../GridContainer/port")
  91. focus_neighbour_right = NodePath("../join")
  92. custom_fonts/font = ExtResource( 3 )
  93. text = "BACK"
  94. icon = ExtResource( 5 )
  95. flat = true
  96. [connection signal="pressed" from="menu/join" to="." method="_on_join_pressed"]
  97. [connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]