Loading...
Loading...
Expert blueprint for RichTextLabel with BBCode formatting (bold, italic, colors, images, clickable links) and custom effects. Covers meta tags, RichTextEffect shaders, and dynamic content. Use when implementing dialogue systems OR formatted text. Keywords RichTextLabel, BBCode, [b], [color], [url], meta_clicked, RichTextEffect, dialogue.
npx skill4agent add thedivergentai/gd-agentic-skills godot-ui-rich-texttext = "[b]bold[/b]"bbcode_enabled = true[img]icon.png[/img][img]res://assets/icon.png[/img]text = "Line1\nLine2"[br]\n[url=shop]Buy[/url]meta_clicked[b][b]text[/b][/b][b][i]text[/i][/b][color=redd]text[/color][color=#FF0000]$RichTextLabel.bbcode_enabled = true
$RichTextLabel.text = "[b]Bold[/b] and [i]italic[/i] text"[b]Bold[/b]
[i]Italic[/i]
[u]Underline[/u]
[color=red]Red text[/color]
[color=#00FF00]Green hex[/color]
[center]Centered[/center]
[img]res://icon.png[/img]
[url=data]Clickable link[/url]func _ready() -> void:
$RichTextLabel.meta_clicked.connect(_on_meta_clicked)
func _on_meta_clicked(meta: Variant) -> void:
print("Clicked: ", meta)