rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.22k stars 263 forks source link

Add image support for dialog #366

Closed dtturcotte closed 1 year ago

dtturcotte commented 1 year ago

Hello, I know I've been requesting many features lately. I thank you for your support.

Can you add image support for https://rexrainbow.github.io/phaser3-rex-notes/docs/site/ui-dialog/? I want to be able to use the popup functionality, but also add an image.

This means that when the popup shows, the title is at the top, followed by text content, followed by an image. The use case is to show if a player picked up an item.

Thanks!

dtturcotte commented 1 year ago

For now, I am setting content to image, and description to text, but I think this is a hacky workaround because the property its receiving should be more descriptive.

rexrainbow commented 1 year ago

Child of dialog like content could be a label, or a sizer, or any kind of sizer. Then designer can place image with text into title, content, or description child, ... etc.