How do you use an ATL image as an argument for an imagebutton?
I tried it like this:
Code: Select all
image test:
"newgame.png"
0.5
"newgameo.png" with Dissolve(0.75, alpha=True)
screen main_menu():
tag menu
hbox:
align 0.5, 0.8
imagebutton idle "newgame.png" hover test action Start()
I did an outdated workaround like this:
Code: Select all
define nwg = anim.TransitionAnimation("newgame.png", 1.0, Dissolve(0.5, alpha=True),
"newgameo.png", 2.0, Dissolve(0.5, alpha=True))
screen main_menu():
hbox:
align 0.5, 0.8
imagebutton idle "newgame.png" hover nwg action Start()
Thanks.
Postscript: and is there an 'unhover' animation option/workaround?