arcade icon indicating copy to clipboard operation
arcade copied to clipboard

GUI: Simple 9patch texture renderer

Open einarf opened this issue 3 years ago • 1 comments

When drawing rounded backgrounds and buttons it would be nice to draw them as a 9patch ensuring the corners don't get streched. The widget should also be resizable and the same texture can be used in all widgets needing that background.

bilde

einarf avatar Apr 03 '22 20:04 einarf

I guess it would be enough to have some NinePatch image class, which just provides resizing and can return a texture or PIL image?

eruvanos avatar Jul 07 '22 20:07 eruvanos

This is now in development but shader needs a tweak when we merge the texture-revamp branch.

einarf avatar Oct 09 '22 16:10 einarf