beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
182 stars 95 forks source link

Rmlui/texture element rounded border #1440

Closed ChrisFloofyKitsune closed 3 months ago

ChrisFloofyKitsune commented 3 months ago

Add support for rounded border to custom element

Fix the geometry not being updated when it's rect attribute was set to "" (blank)

GIF 4-14-2024 12-08-17 AM

example rml code

<texture
    src="#101"
    style="border-radius: 50px; height: 256px; width: 256px"
    data-event-mouseover="my_rect = '10 10 236 236'"
    data-event-mouseout="my_rect = ''"
    data-attr-rect="my_rect"
/>