Publisher
xynanlee
Advanced Rich Text Label
Rich Text Label that supports custom text parsing using custom BBcodes.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Advanced-Rich-Text-Label
Godot's RichTextLabel with custom BBcode and custom parsing.
Usage
AdvancedRichTextLabelParser
Parses text using this RegEx pattern [tag]something[/tag], where tag can be any BBcode you want.
[!NOTE] Remember to overwrite
get_parse_tag()to return the desired tag.
AdvancedRichTextLabel
Contains a list of AdvancedRichTextLabelParser that do the parsing. This class uses a weird trick to self trigger _set(property, value) using set("text", text).
[!NOTE]
reparse()should be called whenAdvancedRichTextLabelParserreceived updates to manually reevaluate the text. It is not needed when other classes callAdvancedRichTextLabel.text = 'some text'.