chat.tscn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [gd_scene format=3 uid="uid://cyvrywci15kev"]
  2. [node name="Chat" type="Control"]
  3. layout_mode = 3
  4. anchors_preset = 15
  5. anchor_right = 1.0
  6. anchor_bottom = 1.0
  7. grow_horizontal = 2
  8. grow_vertical = 2
  9. size_flags_horizontal = 3
  10. size_flags_vertical = 3
  11. [node name="Panel" type="Panel" parent="."]
  12. layout_mode = 0
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
  18. layout_mode = 0
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. grow_horizontal = 2
  22. grow_vertical = 2
  23. [node name="Listen" type="HBoxContainer" parent="Panel/VBoxContainer"]
  24. layout_mode = 2
  25. [node name="Connect" type="HBoxContainer" parent="Panel/VBoxContainer"]
  26. layout_mode = 2
  27. [node name="Host" type="LineEdit" parent="Panel/VBoxContainer/Connect"]
  28. layout_mode = 2
  29. size_flags_horizontal = 3
  30. text = "ws://localhost:8000/test/"
  31. placeholder_text = "ws://my.server/path/"
  32. [node name="Connect" type="Button" parent="Panel/VBoxContainer/Connect"]
  33. layout_mode = 2
  34. toggle_mode = true
  35. text = "Connect"
  36. [node name="Port" type="SpinBox" parent="Panel/VBoxContainer/Connect"]
  37. layout_mode = 2
  38. min_value = 1.0
  39. max_value = 65535.0
  40. value = 8000.0
  41. [node name="Listen" type="Button" parent="Panel/VBoxContainer/Connect"]
  42. layout_mode = 2
  43. toggle_mode = true
  44. text = "Listen"
  45. [node name="Send" type="HBoxContainer" parent="Panel/VBoxContainer"]
  46. layout_mode = 2
  47. [node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/Send"]
  48. layout_mode = 2
  49. size_flags_horizontal = 3
  50. placeholder_text = "Enter some text to send..."
  51. [node name="Send" type="Button" parent="Panel/VBoxContainer/Send"]
  52. layout_mode = 2
  53. text = "Send"
  54. [node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
  55. layout_mode = 2
  56. size_flags_vertical = 3