Godot ui rich text

From nix-community/nur-combined · View interactive version

Godot ui rich text is an AI agent skill from the GitHub repository nix-community/nur-combined. 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],

How to use this skill

Skill file

Rich Text & BBCode

BBCode tags, meta clickable links, and RichTextEffect shaders define formatted text systems.

[rich_text_rainbow_effect.gd](scripts/rich_text_rainbow_effect.gd)

Expert custom RichTextEffect that rotates colors over time.

[rich_text_glitch_effect.gd](scripts/rich_text_glitch_effect.gd)

Professional horror-style glitch effects with spatial jitter and alpha flickering.

[rich_text_typewriter_controller.gd](scripts/rich_text_typewriter_controller.gd)

Dialogue manager that parses sequential event tags ([pause], [speed]) during animations.

[rich_text_meta_dispatch.gd](scripts/rich_text_meta_dispatch.gd)

Advanced handling for multi-prefix URLs in meta-clicks (items, quests, NPCs).

[rich_text_image_scaler.gd](scripts/rich_text_image_scaler.gd)

Utility to dynamically scale [img] tags to match runtime font sizes.

[rich_text_hover_reactive.gd](scripts/rich_text_hover_reactive.gd)

Signals and logic for making text spans reactive to mouse hover (SFX/Cursors).

[rich_text_bbcode_sanitizer.gd](scripts/rich_text_bbcode_sanitizer.gd)

Security utility to prevent BBCode injection in public chat interfaces.

[rich_text_gradient_generator.gd](scripts/rich_text_gradient_generator.gd)

Generator for multi-stop linear gradients using granular character-level tagging.

[rich_text_auto_scroller.gd](scripts/rich_text_auto_scroller.gd)

Smooth vertical auto-scrolling logic for credits, news feeds, and logs.

[rich_text_syntax_highlighter.gd](scripts/rich_text_syntax_highlighter.gd)

Simple regex-based syntax highlighting pattern for code blocks in UI.

NEVER Do (Expert UI Rules)

Formatting & Rendering

Click & Hover UX

Dialogue & Narrative


$RichTextLabel.bbcode_enabled = true
$RichTextLabel.text = "[b]Bold[/b] and [i]italic[/i] text"

Common Tags

[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]

Handle Link Clicks

func _ready() -> void:
    $RichTextLabel.meta_clicked.connect(_on_meta_clicked)

func _on_meta_clicked(meta: Variant) -> void:
    print("Clicked: ", meta)

Reference

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.