britzl / defold-richtext

Defold-RichText is a system to create styled text based on an HTML inspired markup language
MIT License
75 stars 12 forks source link

Added support for manually sized images #76

Closed dblumin45 closed 2 years ago

dblumin45 commented 2 years ago

These changes allow you to add optional comma-separated width,height parameters to img tags. If both are omitted, the box node will use auto size mode. If width and height are provided, the box node will be set to manual and use these as the x,y size (or if the height is omitted width will be used for both).

dblumin45 commented 2 years ago

Thank you for the feedback! That looks much cleaner, I've incorporated the changes.