How To Use The Switch Widget With Your Own Spritesheet?

Hi!

Im trying to learn how to handle the switch widget,

I´ve tried this pretty much but I just keep failing at this…

Can someone show their on/off switch buttons code with a print “button on”/“button off” function?

With your own sprite for the button!

I would love that! :wub:

Ask if you have any questions!

Pardon my English!

 

AnyOne? :mellow:

Have you looked at the sprites and accompanying .lua files in the widget sample program (probably in the theme_ios folder)?

AnyOne? :mellow:

Have you looked at the sprites and accompanying .lua files in the widget sample program (probably in the theme_ios folder)?