Hi Andrea and astrale,
thanks for your suggestions, I'm sure this is exactly what I'm looking for. The visible
mentioned in the docs will be what I'm aiming at.
I already have several bbcode working in my RichTextLabel, including var templateAlwaysAllRight = "[right][color=blue]{alwaysAllRight}[/color][/right]"
for some alignment. Now, when I'm adding e. g. text.replace(",","[color=green],[/color]")
, entering 1,2 and then tapping the disabled ,
again, it leads to [right][color=blue]1,2[/color][/right]
being displayd as text in my RichTextLabel...
This is about as far as my beginner-understanding goes at this point, so I wonder (and guess): two "separate" bbcodes can't apply to the same object? So would I need to have them both combined in one? Or am I missing something else?
EDIT:
The docs describe in Custom BBCode tags (e. g.)
var bbcode = "ghost"
func _process_custom_fx(char_fx):
...
that can then be used as [ghost] ... [/ghost]
, but I don't see how ghost is connected to the function (so how ghost would "know" its own variables). So I wonder how I can make [ghost],[/ghost]
work (as [custom_bbcode_tag]
in your example)?