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.

99 lines
2.9 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/server_create.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/fistPlus.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/icons/return.png" type="Texture" id=5]
  7. [node name="server_create_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 = -68.5
  25. margin_right = 217.5
  26. margin_bottom = 68.5
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. [node name="GridContainer" type="GridContainer" parent="menu"]
  30. margin_left = 12.0
  31. margin_top = 11.0
  32. margin_right = 427.0
  33. margin_bottom = 92.0
  34. columns = 2
  35. [node name="name_label" type="Label" parent="menu/GridContainer"]
  36. margin_top = 5.0
  37. margin_right = 162.0
  38. margin_bottom = 32.0
  39. text = "GAME_NAME"
  40. [node name="name" type="LineEdit" parent="menu/GridContainer"]
  41. margin_left = 166.0
  42. margin_right = 415.0
  43. margin_bottom = 37.0
  44. focus_neighbour_left = NodePath("../../back")
  45. focus_neighbour_right = NodePath("../../create")
  46. focus_neighbour_bottom = NodePath("../bots")
  47. size_flags_horizontal = 3
  48. [node name="bots" type="CheckButton" parent="menu/GridContainer"]
  49. margin_top = 41.0
  50. margin_right = 143.0
  51. margin_bottom = 81.0
  52. focus_neighbour_left = NodePath("../../back")
  53. focus_neighbour_top = NodePath("../name")
  54. focus_neighbour_right = NodePath("../../create")
  55. focus_neighbour_bottom = NodePath("../../create")
  56. size_flags_horizontal = 0
  57. text = "BOTS"
  58. [node name="create" type="Button" parent="menu"]
  59. anchor_left = 1.0
  60. anchor_top = 1.0
  61. anchor_right = 1.0
  62. anchor_bottom = 1.0
  63. margin_left = -255.0
  64. margin_top = -56.0001
  65. margin_right = -1.0
  66. grow_horizontal = 0
  67. grow_vertical = 0
  68. rect_pivot_offset = Vector2( 1.89856, 0.845154 )
  69. focus_neighbour_left = NodePath("../back")
  70. focus_neighbour_top = NodePath("../GridContainer/bots")
  71. focus_neighbour_right = NodePath("../GridContainer/name")
  72. custom_fonts/font = ExtResource( 3 )
  73. text = "CREATE_GAME"
  74. icon = ExtResource( 4 )
  75. flat = true
  76. [node name="back" type="Button" parent="menu"]
  77. anchor_top = 1.0
  78. anchor_bottom = 1.0
  79. margin_top = -56.0
  80. margin_right = 132.0
  81. rect_pivot_offset = Vector2( 0.606262, -0.447205 )
  82. focus_neighbour_top = NodePath("../GridContainer/bots")
  83. focus_neighbour_right = NodePath("../create")
  84. custom_fonts/font = ExtResource( 3 )
  85. text = "Back"
  86. icon = ExtResource( 5 )
  87. flat = true
  88. [connection signal="text_changed" from="menu/GridContainer/name" to="." method="_on_name_text_changed"]
  89. [connection signal="pressed" from="menu/create" to="." method="_on_create_pressed"]
  90. [connection signal="pressed" from="menu/back" to="." method="_on_back_pressed"]