Hi guys,
I have a button like this:
sound = widget.newButton { x = centerX + (rush.width/4) + 20, y = buttonsYPosition, width = buttonSide, height = buttonSide, onEvent = handleSound, defaultFile = "images/sound.png", overFile = "images/noSound.png" } sceneGroup:insert( sound )
It’s a “sound” button, so I want to show another image when the sound is turned off, I’ve been googling and reading the docs but I couldn’t find a way of showing another image when the button is in another state. Is it possible to change the “defaultFile” and “overFile” after creating the object??
Thanks!