Code: Select all
image animatedbutton:
"images/anim1.png"
0.5
"images/anim2.png"
repeat
imagebutton:
idle "animatedbutton"So I figured the best way (let me know if there's a better way) is to use an image as a background which is shown on hover. The image should, of course, be resized to fit the original image. So now I have this:
Code: Select all
imagebutton:
idle "animatedbutton"
hover_background Frame("images/testframe.png")It works but here's the problem - my button isn't a regular rectangle. It's like a person. So when the background Frame stretches to fit, if ends up looking rectangular.
Images:
idle button:

hovered with the frame result:

desired result:

So is there a better way to do this or can I make this work somehow? I tried making the testframe.png have just a border but it again ends up as a rectangular border; I tried just putting a bit of color in the middle of the testframe.png but it doesn't extend enough then and, again, it resizes in a square way...
I thought about using a UDD instead of an image but two problems with that - not sure how it would work with the image constantly changing size (as it is an animated image) and not really sure how to code that
So, help appreciated.