client.tscn 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://client/client_ui.gd" type="Script" id=1]
  3. [ext_resource path="res://client/client.gd" type="Script" id=2]
  4. [node name="Client" 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="Panel" type="Panel" parent="."]
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. [node name="Connect" type="HBoxContainer" parent="Panel/VBoxContainer"]
  18. margin_right = 1024.0
  19. margin_bottom = 24.0
  20. [node name="Host" type="LineEdit" parent="Panel/VBoxContainer/Connect"]
  21. margin_right = 956.0
  22. margin_bottom = 24.0
  23. size_flags_horizontal = 3
  24. text = "ws://localhost:8000/test/"
  25. placeholder_text = "ws://my.server/path/"
  26. [node name="Connect" type="Button" parent="Panel/VBoxContainer/Connect"]
  27. margin_left = 960.0
  28. margin_right = 1024.0
  29. margin_bottom = 24.0
  30. toggle_mode = true
  31. text = "Connect"
  32. [node name="Settings" type="HBoxContainer" parent="Panel/VBoxContainer"]
  33. margin_top = 28.0
  34. margin_right = 1024.0
  35. margin_bottom = 52.0
  36. [node name="Mode" type="OptionButton" parent="Panel/VBoxContainer/Settings"]
  37. margin_right = 29.0
  38. margin_bottom = 24.0
  39. [node name="Multiplayer" type="CheckBox" parent="Panel/VBoxContainer/Settings"]
  40. margin_left = 33.0
  41. margin_right = 159.0
  42. margin_bottom = 24.0
  43. pressed = true
  44. text = "Multiplayer API"
  45. [node name="Destination" type="OptionButton" parent="Panel/VBoxContainer/Settings"]
  46. margin_left = 163.0
  47. margin_right = 192.0
  48. margin_bottom = 24.0
  49. [node name="Send" type="HBoxContainer" parent="Panel/VBoxContainer"]
  50. margin_top = 56.0
  51. margin_right = 1024.0
  52. margin_bottom = 80.0
  53. [node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/Send"]
  54. margin_right = 977.0
  55. margin_bottom = 24.0
  56. size_flags_horizontal = 3
  57. placeholder_text = "Enter some text to send..."
  58. [node name="Send" type="Button" parent="Panel/VBoxContainer/Send"]
  59. margin_left = 981.0
  60. margin_right = 1024.0
  61. margin_bottom = 24.0
  62. text = "Send"
  63. [node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
  64. margin_top = 84.0
  65. margin_right = 1024.0
  66. margin_bottom = 600.0
  67. size_flags_vertical = 3
  68. [node name="Client" type="Node" parent="."]
  69. script = ExtResource( 2 )
  70. [connection signal="toggled" from="Panel/VBoxContainer/Connect/Connect" to="." method="_on_Connect_toggled"]
  71. [connection signal="item_selected" from="Panel/VBoxContainer/Settings/Mode" to="." method="_on_Mode_item_selected"]
  72. [connection signal="pressed" from="Panel/VBoxContainer/Send/Send" to="." method="_on_Send_pressed"]