As we all know, LibGDX has a
TextButtonclass which has a
ButtonStyle. The style has some parameters:
- up - an image which is shown normally as a button background
- down - shown when the button is being 'pressed'
- over - on hover
My question is: Is there any way to implement the 'hovering' / changing the background image IN TIME? So for example it takes 2 seconds and it's smooth?
I tried with actions and tween engine, but honestly, I really have no idea how I should implement this. Maybe some alpha operations?
If you have any ideas, I would be grateful :)