Updated Chat BB code to new Godot version
parent
d1d723806e
commit
c50ae045ec
|
@ -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
|
||||
|
|
Reference in New Issue