rexrainbow / phaser3-rex-notes

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

[img] not working with rexUiTextbox typewriter. #379

Closed dtturcotte closed 10 months ago

dtturcotte commented 11 months ago

I'm following this guide for adding inline bbcode images in conjunction with rexUiTextbox.

I preload the image using "this.load.image('bolt', 'https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/assets/images/bolt.png')"

I noticed that the image does not appear if I use typewriter effect, but does appear if I just create a bbcode text element and display the text directly. Is this a limitation of [img] and rexUiTextbox?

If textbox doesn't support images currently, is there a way you can add support?

rexrainbow commented 11 months ago

Here is a demo of typing on bbcodetext with img tag. Works fine.

dtturcotte commented 11 months ago

Put the text as "[img=key] Find the [img=key] open the door [img=key]" The key images will not appear in the first or last positions. They are not hidden by the icon (I commented out the icon) — https://codepen.io/dtturcotte/pen/rNoaMBy. Why won't images appear if they are first or last in the text?

rexrainbow commented 11 months ago

It seems a bug of textyyping behavior, will fix it later.

dtturcotte commented 11 months ago

Thank you! Please let me know when it's resolved.

rexrainbow commented 11 months ago

Bug fixed, please grab latest minify files. NPM package will be upgraded at end of this month.

rexrainbow commented 10 months ago

NPM package upgraded.