server.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://server/server_ui.gd" type="Script" id=1]
  3. [ext_resource path="res://server/server.gd" type="Script" id=2]
  4. [node name="ServerControl" type="Control"]
  5. anchor_right = 1.0
  6. anchor_bottom = 1.0
  7. script = ExtResource( 1 )
  8. __meta__ = {
  9. "_edit_use_anchors_": false
  10. }
  11. [node name="Server" type="Node" parent="."]
  12. script = ExtResource( 2 )
  13. [node name="Panel" type="Panel" parent="."]
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"]
  20. margin_right = 1024.0
  21. margin_bottom = 24.0
  22. [node name="Port" type="SpinBox" parent="Panel/VBoxContainer/HBoxContainer"]
  23. margin_right = 74.0
  24. margin_bottom = 24.0
  25. min_value = 1.0
  26. max_value = 65535.0
  27. value = 8000.0
  28. [node name="Listen" type="Button" parent="Panel/VBoxContainer/HBoxContainer"]
  29. margin_left = 78.0
  30. margin_right = 129.0
  31. margin_bottom = 24.0
  32. toggle_mode = true
  33. text = "Listen"
  34. [node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"]
  35. margin_top = 28.0
  36. margin_right = 1024.0
  37. margin_bottom = 52.0
  38. [node name="WriteMode" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
  39. margin_right = 29.0
  40. margin_bottom = 24.0
  41. [node name="MPAPI" type="CheckBox" parent="Panel/VBoxContainer/HBoxContainer2"]
  42. margin_left = 33.0
  43. margin_right = 159.0
  44. margin_bottom = 24.0
  45. pressed = true
  46. text = "Multiplayer API"
  47. [node name="Destination" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
  48. margin_left = 163.0
  49. margin_right = 192.0
  50. margin_bottom = 24.0
  51. [node name="HBoxContainer3" type="HBoxContainer" parent="Panel/VBoxContainer"]
  52. margin_top = 56.0
  53. margin_right = 1024.0
  54. margin_bottom = 80.0
  55. [node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer3"]
  56. margin_right = 977.0
  57. margin_bottom = 24.0
  58. size_flags_horizontal = 3
  59. [node name="Send" type="Button" parent="Panel/VBoxContainer/HBoxContainer3"]
  60. margin_left = 981.0
  61. margin_right = 1024.0
  62. margin_bottom = 24.0
  63. text = "Send"
  64. [node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
  65. margin_top = 84.0
  66. margin_right = 1024.0
  67. margin_bottom = 600.0
  68. size_flags_vertical = 3
  69. [connection signal="toggled" from="Panel/VBoxContainer/HBoxContainer/Listen" to="." method="_on_Listen_toggled"]
  70. [connection signal="item_selected" from="Panel/VBoxContainer/HBoxContainer2/WriteMode" to="." method="_on_WriteMode_item_selected"]
  71. [connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer3/Send" to="." method="_on_Send_pressed"]