diff --git a/Game/Assets/HUD/Chat.gd b/Game/Assets/HUD/Chat.gd index f4e7ef1..2661f92 100644 --- a/Game/Assets/HUD/Chat.gd +++ b/Game/Assets/HUD/Chat.gd @@ -54,10 +54,10 @@ func _unhandled_input(_event) -> void: # doesn't work over network due to missing RPC implementation in Godot 4 @rpc func chat_message(sender_pid: int, recipient_team, message: String) -> void: var sender_info = main.player_list.get(sender_pid) - chat_history.append_bbcode('\n' + '[b][color=' + sender_info.color.to_html() +']' + str(sender_info.name) + '[/color][/b] : [i]' + message + '[/i]') + chat_history.append_text('\n' + '[b][color=' + sender_info.color.to_html() +']' + str(sender_info.name) + '[/color][/b] : [i]' + message + '[/i]') @rpc func chat_notification(message: String) -> void: - chat_history.append_bbcode('\n · ' + '[i]' + message + '[/i]') + chat_history.append_text('\n · ' + '[i]' + message + '[/i]') func _on_Editor_text_submitted(new_text): # RPC is currently not implemented in the engine