im start using the BBCodeText feature from rexUI plugin and get some problems with the “isOverflow” calculation.
It seems the the “linebreak” calculation is something “wired” in bb code.
For Phaser.Text is used the option for advancewordwrap.
For BBCodeText is try “char” and “word”, but each time same behavior.
The text itself is “normal” text without any linebreaks, bbcode or stylings… Its using the same global font settings.
see this:
(the red square was added via paint to show the boundings from the text-area)
Your assumption about wrapping of BBCodeText is correct. BBCodeText does not support useAdvancedWrap yet, i.e. the wrapping result won’t be equal to useAdvancedWrap enable.
Will add this feature suggestion into TODO.
Thx. Sounds great.
But its Not only the advancedwordwrap, but the wrong height calculation in current function it seems.
U See the additional line break after the “looongg” Word?
Seems like some double break Problem…
Dono where this happens in Code.
Thats no option / solution in this case, because so it will also break “short” words on end of line and dont break whole word to new line That dosnt looks good.
That looks so good. 1000x thx. I will try it in my game. But i depend on npm package to be Update becuz i use webpack to build my ressources. so i will wait for got push.