Hi everyone,
I have two templates set up in a RichTextLabel
:
var templateAlwaysAllRight = "[right]{alwaysAllRight}[/right]"
var templateGap = "[right][offset x=-10 y=0]{firstDigit}[/offset]{remainingDigits}[/right]"
In a function then accordingly:
bbcode_text = templateAlwaysAllRight.format({ "alwaysAllRight" : text })
bbcode_text = templateGap.format({ "firstDigit": text[0]}, {"remainingDigits": text.substr(1)})
The first one works wonderfully. But the second one (supposed to separate the first digit a bit from the rest) doesn't, instead it actually displays "[offset x=-10 y=0]{firstDigit}[/offset]{remainingDigits}
" directly in the label. It does right-align though!
Any idea what I am missing here?