rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.21k stars 261 forks source link

define pages in Text Box #192

Closed hyleore closed 3 years ago

hyleore commented 3 years ago

Hello! I hope it's ok to ask here:

I created a text box, with text and an icon, with the RexUI Text Box plugin, and I'd like to know if there is a simple way for me to split my content into different 'pages' myself, so that it cuts at the end of sentences, where I choose, rather than in the middle of a sentence. I tried installing and using the Page plugin as well to do that, but it didn't work, and I'd like to know if that is necessary at all. Before that I also tried creating an array but all it did was split them into paragraphs (maybe that was stupid but I thought it was worth a try xD). I loaded the minify file for the plugin.

Thank you!

rexrainbow commented 3 years ago

rexTextPage, rexUI - TextBox: Add pageBreak parameter. String after page-break symbol will be placed to a new page. Default value is '\f\n'.

Please download minify file to get this new feature.

hyleore commented 3 years ago

This works perfectly! Thank you so much for taking care of it so quickly.