rexrainbow / phaser3-rex-notes

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

Adding callbacks to textbox start, stop, etc #364

Closed dtturcotte closed 11 months ago

dtturcotte commented 1 year ago

Hello, I need to pass in a custom callback to textbox start, e.g., textBox.start(text, 50, () => { doSomething() } )

I cannot rely on event properties (e.g., on('complete')) etc since I set those earlier when the textbox is created.

This would be helpful for stop(), pause() and resume() as well.

Thank you!

rexrainbow commented 1 year ago

Add pause, resume events in latest submit. Fired when typing paused, or typing resume. start event was added previously.

Edit: stop event added, fired when invoke textBox.stop() method.