Ui text helper
Introduction¶
Some helper methods for Text object, bbcode text object, tag text object, Bitmap text object game objects
- Author: Rex
- Methods
Live demos¶
Usage¶
Wrap expand text¶
sizer
.add(
this.rexUI.wrapExpandText(this.add.text(0, 0, content)),
{
// proportion: 1,
// expand: true
}
)
proportion: 1
or/andexpand: true
: Expand width of text
Fontsize expand text¶
sizer
.add(
this.rexUI.fontSizeExpandText(this.add.text(0, 0, content)),
{
// proportion: 1,
// expand: true
}
)
proportion: 1
or/andexpand: true
: Expand width of text