chat.tscn 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. anchors_preset = 15
  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. anchors_preset = 15
  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. offset_right = 1152.0
  25. [node name="Connect" type="HBoxContainer" parent="Panel/VBoxContainer"]
  26. offset_top = 4.0
  27. offset_right = 1152.0
  28. offset_bottom = 35.0
  29. [node name="Host" type="LineEdit" parent="Panel/VBoxContainer/Connect"]
  30. offset_right = 930.0
  31. offset_bottom = 31.0
  32. size_flags_horizontal = 3
  33. text = "ws://localhost:8000/test/"
  34. placeholder_text = "ws://my.server/path/"
  35. [node name="Connect" type="Button" parent="Panel/VBoxContainer/Connect"]
  36. offset_left = 934.0
  37. offset_right = 1006.0
  38. offset_bottom = 31.0
  39. toggle_mode = true
  40. text = "Connect"
  41. [node name="Port" type="SpinBox" parent="Panel/VBoxContainer/Connect"]
  42. offset_left = 1010.0
  43. offset_right = 1093.0
  44. offset_bottom = 31.0
  45. min_value = 1.0
  46. max_value = 65535.0
  47. value = 8000.0
  48. [node name="Listen" type="Button" parent="Panel/VBoxContainer/Connect"]
  49. offset_left = 1097.0
  50. offset_right = 1152.0
  51. offset_bottom = 31.0
  52. toggle_mode = true
  53. text = "Listen"
  54. [node name="Send" type="HBoxContainer" parent="Panel/VBoxContainer"]
  55. offset_top = 39.0
  56. offset_right = 1152.0
  57. offset_bottom = 70.0
  58. [node name="LineEdit" type="LineEdit" parent="Panel/VBoxContainer/Send"]
  59. offset_right = 1101.0
  60. offset_bottom = 31.0
  61. size_flags_horizontal = 3
  62. placeholder_text = "Enter some text to send..."
  63. [node name="Send" type="Button" parent="Panel/VBoxContainer/Send"]
  64. offset_left = 1105.0
  65. offset_right = 1152.0
  66. offset_bottom = 31.0
  67. text = "Send"
  68. [node name="RichTextLabel" type="RichTextLabel" parent="Panel/VBoxContainer"]
  69. offset_top = 74.0
  70. offset_right = 1152.0
  71. offset_bottom = 648.0
  72. size_flags_vertical = 3