Imagebutton - simple fade in/out hover
Posted: Fri Jul 13, 2018 11:44 am
Been struggling with a simple fade of a imagebutton. Specifically the hover-out/mouseout of the fade.
The fade in works as expected, but the fade out when hovering off the image instantly hides with no fade at all. What am i doing wrong here?
This is something like what i've got:
The fade in works as expected, but the fade out when hovering off the image instantly hides with no fade at all. What am i doing wrong here?
This is something like what i've got:
Code: Select all
transform simpleFade:
on idle:
linear 0.5 alpha 0.0
on hover, show:
linear 0.5 alpha 1.0
on hide:
linear 0.5 alpha 0.0
imagebutton:
idle 'pic.png'
hover 'pic-hover.png'
focus_mask True
at simpleFade
action [Call('dosomething')]