Fixed chat message editor not sending

remotes/1705377932733043820/tmp_refs/heads/unbroken
unfa 2021-07-16 03:42:22 +02:00
parent 004247e8bf
commit a562929421
2 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func _unhandled_input(_event) -> void:
chat_history.append_bbcode('\n' + '[b][color=' + sender_info.color.to_html() +']' + str(sender_info.name) + '[/color][/b] : [i]' + message + '[/i]')
func _on_LineEdit_text_entered(new_text):
func _on_Editor_text_submitted(new_text):
# RPC is currently not implemented in the engine
var sender_id = get_tree().get_network_unique_id()
var new_message = [sender_id, 0, new_text]

View File

@ -219,3 +219,5 @@ script = null
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="text_submitted" from="Chat/VBoxContainer/Typing/Editor" to="Chat" method="_on_Editor_text_submitted"]