Page 1 of 1

Imagebutton - simple fade in/out hover

Posted: Fri Jul 13, 2018 11:44 am
by Rainz
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:

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')]

Re: Imagebutton - simple fade in/out hover

Posted: Tue Aug 14, 2018 12:35 pm
by Kia
I don't see any problem in the transform code, it must have something to do with the images you are displaying, is one of them fully transparent?