rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.18k stars 260 forks source link

Show all text immediately in textbox #365

Closed dtturcotte closed 11 months ago

dtturcotte commented 1 year ago

I'd like certain times in my game to show dialogue immediately. I've tried textBox.start(...) thentextBox.stop(true); immediately after, and typingSpeed 1 for textBox.start(content, 1); (0 doesn't work) but it still shows a flicker and any custom fonts are messed up and revert to default game font.

Can you add a method to just take text as input and simply display it, without the typewriter effect?

Thank you for all of your hard work!

rexrainbow commented 1 year ago

Add textBox.showLastPage() method, to stop typing and show content of last page. (demo) textBox.stop(true) is used to stop typing and show content of current page.

Please get latest minify file of rexUI.

BTW, textBox.start(content, 0) will invoke textBox.stop(true) internally.