[Solved] How to make a custom roundrect with own corner sprites?


Hello, people. I have a question about draw_roundrect() functions that draws a roundrect, so I have a sprite with 4 frames that keeps images of all roundrect corners. It looks lke this:

Every corner image is a seperate frame.
So how do I draw a simple rectangle and just change it's corners to my own corners? The standard roundrects draws without pixel smoothing and I decided to draw them by myself.

Thanks for help. Do not be shy to ask anything! :)


This is called a 9-slice, though you might want to modify it to a 4-slice (or just make extra graphics). Here's a tutorial vid: