Making an up and down version of a button is tedious and stupid. It’s 2016 and while personal jetpacks are still not here, doing something manually that the computer could do is boring.
If CL allowed fillColor as a parameter for an image button we could just create the Up version of a button and be done – the fillColor could darken the button when it’s pressed.
I can get most of the way there with this in my onEvent handler:
if event.phase == "began" then event.target:setFillColor( 0.8, 0.8, 0.8 ) end if event.phase == "cancelled" or event.phase == "ended" then event.target:setFillColor( 1, 1, 1 ) end
…but it offends me that I have to do that (I’m very sensitive). Plus, the button doesn’t act correctly when the mouse is still down but the cursor/finger has been dragged off the button.
Since the shape button can work with the fillColor parameter, shouldn’t the image be able to, as well?
Or, is there another (easy) way to accomplish this?
Jay