server.tscn 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. }
  10. [node name="Server" type="Node" parent="."]
  11. script = ExtResource( 2 )
  12. __meta__ = {
  13. }
  14. [node name="Panel" type="Panel" parent="."]
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. __meta__ = {
  18. }
  19. [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
  20. anchor_right = 1.0
  21. anchor_bottom = 1.0
  22. __meta__ = {
  23. }
  24. [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"]
  25. margin_right = 1024.0
  26. margin_bottom = 24.0
  27. __meta__ = {
  28. }
  29. [node name="Port" type="SpinBox" parent="Panel/VBoxContainer/HBoxContainer"]
  30. margin_right = 74.0
  31. margin_bottom = 24.0
  32. min_value = 1.0
  33. max_value = 65535.0
  34. value = 8000.0
  35. __meta__ = {
  36. }
  37. [node name="Listen" type="Button" parent="Panel/VBoxContainer/HBoxContainer"]
  38. margin_left = 78.0
  39. margin_right = 129.0
  40. margin_bottom = 24.0
  41. toggle_mode = true
  42. text = "Listen"
  43. __meta__ = {
  44. }
  45. [node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"]
  46. margin_top = 28.0
  47. margin_right = 1024.0
  48. margin_bottom = 52.0
  49. __meta__ = {
  50. }
  51. [node name="WriteMode" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
  52. margin_right = 41.0
  53. margin_bottom = 24.0
  54. __meta__ = {
  55. }
  56. [node name="MPAPI" type="CheckBox" parent="Panel/VBoxContainer/HBoxContainer2"]
  57. margin_left = 45.0
  58. margin_right = 171.0
  59. margin_bottom = 24.0
  60. pressed = true
  61. text = "Multiplayer API"
  62. __meta__ = {
  63. }
  64. [node name="Destination" type="OptionButton" parent="Panel/VBoxContainer/HBoxContainer2"]
  65. margin_left = 175.0
  66. margin_right = 216.0
  67. margin_bottom = 24.0
  68. __meta__ = {
  69. }
  70. [node name="HBoxContainer3" type="HBoxContainer" parent="Panel/VBoxContainer"]
  71. margin_top = 56.0
  72. margin_right = 1024.0
  73. margin_bottom = 80.0
  74. __meta__ = {
  75. }
  76. [node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer3"]
  77. margin_right = 977.0
  78. margin_bottom = 24.0
  79. size_flags_horizontal = 3
  80. __meta__ = {
  81. }
  82. [node name="Send" type="Button" parent="Panel/VBoxContainer/HBoxContainer3"]
  83. margin_left = 981.0
  84. margin_right = 1024.0
  85. margin_bottom = 24.0
  86. text = "Send"
  87. __meta__ = {
  88. }
  89. [node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
  90. margin_top = 84.0
  91. margin_right = 1024.0
  92. margin_bottom = 600.0
  93. size_flags_vertical = 3
  94. __meta__ = {
  95. }
  96. [connection signal="toggled" from="Panel/VBoxContainer/HBoxContainer/Listen" to="." method="_on_Listen_toggled"]
  97. [connection signal="item_selected" from="Panel/VBoxContainer/HBoxContainer2/WriteMode" to="." method="_on_WriteMode_item_selected"]
  98. [connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer3/Send" to="." method="_on_Send_pressed"]