1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[gd_scene load_steps=4 format=2]

[ext_resource path="res://WS.gd" type="Script" id=1]
[ext_resource path="res://Chat.gd" type="Script" id=2]
[ext_resource path="res://theme.tres" type="Theme" id=3]

[node name="Main" type="Node"]
script = ExtResource( 1 )

[node name="Chat" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 3 )
script = ExtResource( 2 )

[node name="v" type="VBoxContainer" parent="Chat"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 32.0
margin_top = 64.0
margin_right = -32.0
margin_bottom = -60.0
custom_constants/separation = 0

[node name="h" type="HBoxContainer" parent="Chat/v"]
margin_right = 960.0
margin_bottom = 38.0

[node name="whoami" type="LineEdit" parent="Chat/v/h"]
margin_right = 200.0
margin_bottom = 38.0
rect_min_size = Vector2( 200, 0 )
text = "whoami"
max_length = 30
expand_to_text_length = true
placeholder_text = "whoami"
caret_blink = true
caret_blink_speed = 0.5

[node name="Label" type="Label" parent="Chat/v/h"]
margin_left = 204.0
margin_right = 324.0
margin_bottom = 38.0
text = "room 2"

[node name="p" type="Panel" parent="Chat/v"]
margin_top = 38.0
margin_right = 960.0
margin_bottom = 438.0
rect_min_size = Vector2( 896, 400 )

[node name="scroller" type="ScrollContainer" parent="Chat/v/p"]
margin_right = 896.0
margin_bottom = 400.0
rect_min_size = Vector2( 0, 400 )

[node name="labels" type="VBoxContainer" parent="Chat/v/p/scroller"]

[node name="h2" type="HBoxContainer" parent="Chat/v"]
margin_top = 438.0
margin_right = 960.0
margin_bottom = 476.0
custom_constants/separation = 0

[node name="text" type="LineEdit" parent="Chat/v/h2"]
margin_right = 800.0
margin_bottom = 38.0
rect_min_size = Vector2( 800, 0 )
max_length = 27
placeholder_text = "send message"
caret_blink = true
caret_blink_speed = 0.5

[node name="send" type="Button" parent="Chat/v/h2"]
margin_left = 800.0
margin_right = 960.0
margin_bottom = 38.0
focus_mode = 0
size_flags_horizontal = 3
enabled_focus_mode = 0
text = "send"

[node name="Tween" type="Tween" parent="Chat"]

[connection signal="recieved" from="." to="Chat" method="_on_Main_recieved"]
[connection signal="text_entered" from="Chat/v/h2/text" to="Chat" method="_on_text_entered"]
[connection signal="pressed" from="Chat/v/h2/send" to="Chat" method="_on_send_pressed"]