TwitchPlaysReverseJenga/example/ChatMessage.gd

6 lines
262 B
GDScript3
Raw Normal View History

2024-05-18 12:40:43 +10:00
extends HBoxContainer
func set_msg(stamp : String, data : SenderData, msg : String, badges : String) -> void:
$RichTextLabel.text = stamp + " " + badges + "[b][color="+ data.tags["color"] + "]" + data.tags["display-name"] +"[/color][/b]: " + msg
queue_sort()