From c50ae045ec6bb9764ecb90d14ab6ec6880d0c547 Mon Sep 17 00:00:00 2001 From: unfa Date: Sun, 19 Sep 2021 22:30:58 +0200 Subject: [PATCH] Updated Chat BB code to new Godot version --- Game/Assets/HUD/Chat.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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