Ren'Py [SOLVED] ATL animation as a choice_button?

wilhelmscream

Newbie
Feb 23, 2020
22
21
Howdy, I need a nap so I'm gonna through this out here:

I got this cute lil slideshow type ATL animation (the glowing edges circle the box) That I'd love to use as the hovered choice_button
The renpy docs only mention using a single .png file ,

gui.button_hover_background
doesn't seem to change anything o_O

and throwing the animation into a menu as an images works... but isn't transparent xD
imagebuttons aren't really an option unless I can also layer text over it
I'm open to any ideas at this point :3
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,969
16,222
and throwing the animation into a menu as an images works... but isn't transparent xD
What do you mean by "not transparent" ? Are you referring to the image, or to the process ?


imagebuttons aren't really an option unless I can also layer text over it
I'm open to any ideas at this point :3
You've the choice. It can be a good old plain button build piece by piece with . Something that should look like this:
Code:
screen whatever():

    button:
        action [Whatever action you want]

        fixed:
            add [background image/ATL]
            text "Whatever text you want"
Or it can be a basic textbutton with something like that :

Code:
style myButton is button:
    background [background image/ATL]

screen whatever():
    textbutton "whatever text you want":
        style "myButton"        
        action [Whatever action you want]
 
  • Like
Reactions: wilhelmscream

wilhelmscream

Newbie
Feb 23, 2020
22
21
[HUGE EDIT]
Not only did your methods work! (I love you more than my kids)

But of course there was an artifact of late night brain, the software I used to render out the frames of the animation... didn't preserve the transparancy...
yeah even the menu: image option works now (sadge)

Still your use of buttons is clean af and Ima use that insead.
Thanks for your help king! :)
 
Last edited: