godot-ui-rich-text
Expert blueprint for RichTextLabel with BBCode formatting (bold, italic, colors, images, clickable links) and custom effects. Covers meta tags, RichTextEffect…
от thedivergentai★ 1 019 звёзд на GitHub
Установить godot-ui-rich-text в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rich Text & BBCode
BBCode tags, meta clickable links, and RichTextEffect shaders define formatted text systems.
Available Scripts
rich_text_rainbow_effect.gd
Expert custom RichTextEffect that rotates colors over time.
rich_text_glitch_effect.gd
Professional horror-style glitch effects with spatial jitter and alpha flickering.
rich_text_typewriter_controller.gd
Dialogue manager that parses sequential event tags ([pause], [speed]) during animations.
rich_text_meta_dispatch.gd
Advanced handling for multi-prefix URLs in meta-clicks (items, quests, NPCs).
rich_text_image_scaler.gd
Utility to dynamically scale [img] tags to match runtime font sizes.
rich_text_hover_reactive.gd
Signals and logic for making text spans reactive to mouse hover (SFX/Cursors).
rich_text_bbcode_sanitizer.gd
Security utility to prevent BBCode injection in public chat interfaces.
rich_text_gradient_generator.gd
Generator for multi-stop linear gradients using granular character-level tagging.
rich_text_auto_scroller.gd
Smooth vertical auto-scrolling logic for credits, news feeds, and logs.
rich_text_syntax_highlighter.gd
Simple regex-based syntax highlighting pattern for code blocks in UI.
NEVER Do (Expert UI Rules)
Formatting & Rendering
- NEVER use complex BBCode in tight loops — Parsing a 10,000 character string with 500 tags every frame will tank performance. Cache your formatted strings.
- NEVER forget to register Custom Effects — Writing the script isn't enough. You MUST add the instance to
RichTextLabel.custom_effectslist via Inspector orinstall_effect(). - NEVER use absolute pixel sizes in [img] —
[img width=128]fails on higher resolutions. Userich_text_image_scaler.gdto sync with line height.
Click & Hover UX
- NEVER use [url] without visual feedback — If the text doesn't change color on hover or the cursor doesn't change, players won't know it's clickable. Use
rich_text_hover_reactive.gd. - NEVER hardcode layout logic into strings; strictly use BBCode Tables and Alignment Tags to ensure text structures remain flexible.
- NEVER animate text typewriter effects by modifying the
textorbbcodestring frame-by-frame; strictly usevisible_ratioorvisible_charactersto avoid expensive parsing overhead and flickering. - NEVER use standard bitmap fonts for large titles or dynamic UI; strictly use MSDF (Multichannel Signed Distance Field) fonts to ensure perfectly crisp outlines and scaling at any resolution.
- NEVER perform heavy logic inside
meta_clicked— This signal is on the Main Thread. Use it to emit a command and handle processing asynchronously if needed.
Dialogue & Narrative
- NEVER use
visible_ratiofor pausing typewriter —visible_ratiois unreliable for per-character logic. Usevisible_charactersand explicit character indexing (rich_text_typewriter_controller.gd). - NEVER allow unfiltered user input in Chat Labels — A user could type
[img]huge_image_path[/img]or[color=transparent]to break your UI. MANDATORY: pipe every user-generated string through rich_text_bbcode_sanitizer.gd before assigningtext.
$RichTextLabel.bbcode_enabled = true
$RichTextLabel.text = "[b]Bold[/b] and [i]italic[/i] text"
Reveal API Decision
| Need | API | MANDATORY |
|---|---|---|
| Simple fade / whole-line reveal | visible_ratio + Tween |
Inline ok (see pattern below) |
Pause / speed / event tags ([pause], [speed]) |
visible_characters + indexer |
rich_text_typewriter_controller.gd |
NEVER use
visible_ratiowhen you need per-character pause/speed tags.
Non-Obvious Tags & Effects
Skip cataloging [b] / [i] / [u] / [color] — see docs. Prefer these when non-obvious:
[url=payload]…[/url]+meta_clicked— prefer rich_text_meta_dispatch.gd[img]sizing — usewidth_unit/height_unit+RichTextLabel.ImageUnit(see migration-notes.md); scale with rich_text_image_scaler.gd- Custom effects — register via
custom_effects/install_effect(); examples: rich_text_rainbow_effect.gd, rich_text_glitch_effect.gd
User-Generated Rich Text
MANDATORY: rich_text_bbcode_sanitizer.gd on any c
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/bbcode-tag-catalog.md
- references/migration-notes.md
- scripts/custom_bbcode_effect.gd
- scripts/rich_text_animator.gd
- scripts/rich_text_auto_scroller.gd
- scripts/rich_text_bbcode_sanitizer.gd
- scripts/rich_text_glitch_effect.gd
- scripts/rich_text_gradient_generator.gd
- scripts/rich_text_hover_reactive.gd
- scripts/rich_text_image_scaler.gd
- scripts/rich_text_meta_dispatch.gd
- scripts/rich_text_rainbow_effect.gd
- scripts/rich_text_syntax_highlighter.gd
- scripts/rich_text_typewriter_controller.gd
FAQ
Что делает скилл godot-ui-rich-text?
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.
Как установить скилл godot-ui-rich-text?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл godot-ui-rich-text запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…