roomview.tscn 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://theme.tres" type="Theme" id=1]
  3. [ext_resource path="res://room_view.gd" type="Script" id=2]
  4. [ext_resource path="res://airplane.png" type="Texture" id=3]
  5. [sub_resource type="StyleBoxFlat" id=2]
  6. border_blend = true
  7. [node name="ROOM_VIEW" type="PanelContainer"]
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. theme = ExtResource( 1 )
  11. script = ExtResource( 2 )
  12. __meta__ = {
  13. "_edit_use_anchors_": false
  14. }
  15. [node name="vcontainer" type="VBoxContainer" parent="."]
  16. margin_left = 7.0
  17. margin_top = 7.0
  18. margin_right = 1017.0
  19. margin_bottom = 593.0
  20. [node name="room_meta_line" type="HBoxContainer" parent="vcontainer"]
  21. margin_right = 1010.0
  22. margin_bottom = 26.0
  23. [node name="ROOM_NAME" type="Label" parent="vcontainer/room_meta_line"]
  24. margin_bottom = 20.0
  25. size_flags_vertical = 0
  26. [node name="ROOM_TOPIC" type="Label" parent="vcontainer/room_meta_line"]
  27. margin_left = 4.0
  28. margin_right = 956.0
  29. margin_bottom = 26.0
  30. size_flags_horizontal = 3
  31. size_flags_vertical = 3
  32. custom_colors/font_color = Color( 0.617188, 0.617188, 0.617188, 1 )
  33. [node name="leave_button" type="Button" parent="vcontainer/room_meta_line"]
  34. margin_left = 960.0
  35. margin_right = 1010.0
  36. margin_bottom = 26.0
  37. grow_horizontal = 0
  38. text = "Leave"
  39. [node name="TYPING_INDICATOR" type="Label" parent="vcontainer"]
  40. margin_top = 30.0
  41. margin_right = 1010.0
  42. margin_bottom = 50.0
  43. size_flags_vertical = 0
  44. [node name="MESSAGES" type="ScrollContainer" parent="vcontainer"]
  45. margin_top = 54.0
  46. margin_right = 1010.0
  47. margin_bottom = 556.0
  48. size_flags_vertical = 3
  49. __meta__ = {
  50. "_edit_use_anchors_": false
  51. }
  52. [node name="MESSAGE_LIST" type="VBoxContainer" parent="vcontainer/MESSAGES"]
  53. margin_right = 1010.0
  54. margin_bottom = 502.0
  55. size_flags_horizontal = 3
  56. size_flags_vertical = 3
  57. alignment = 2
  58. [node name="message_input_container" type="PanelContainer" parent="vcontainer"]
  59. margin_top = 560.0
  60. margin_right = 1010.0
  61. margin_bottom = 586.0
  62. grow_vertical = 0
  63. size_flags_vertical = 9
  64. custom_styles/panel = SubResource( 2 )
  65. [node name="hbox" type="HBoxContainer" parent="vcontainer/message_input_container"]
  66. margin_right = 1010.0
  67. margin_bottom = 26.0
  68. size_flags_horizontal = 3
  69. size_flags_vertical = 3
  70. [node name="MESSAGE_INPUT" type="LineEdit" parent="vcontainer/message_input_container/hbox"]
  71. margin_right = 980.0
  72. margin_bottom = 26.0
  73. size_flags_horizontal = 3
  74. size_flags_vertical = 3
  75. placeholder_text = "Type a message..."
  76. caret_blink = true
  77. caret_blink_speed = 0.5
  78. __meta__ = {
  79. "_edit_use_anchors_": false
  80. }
  81. [node name="send" type="Button" parent="vcontainer/message_input_container/hbox"]
  82. margin_left = 984.0
  83. margin_right = 1010.0
  84. margin_bottom = 26.0
  85. grow_horizontal = 0
  86. rect_min_size = Vector2( 26, 0 )
  87. size_flags_horizontal = 0
  88. size_flags_vertical = 0
  89. icon = ExtResource( 3 )
  90. expand_icon = true
  91. __meta__ = {
  92. "_edit_use_anchors_": false
  93. }
  94. [connection signal="pressed" from="vcontainer/message_input_container/hbox/send" to="." method="send_message"]