forked from unfa/liblast
Fixed chat message editor not sending
This commit is contained in:
parent
004247e8bf
commit
a562929421
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue