I believe that tinting widgets was introduced in build 2013.1040, but I can’t figure out how to get it to work.
Help appreciated.
I believe that tinting widgets was introduced in build 2013.1040, but I can’t figure out how to get it to work.
Help appreciated.
Hi ingemar,
You can tint any display object, so you can tint a button if you created it using texture atlas image objects.
You can actually tint all of the texture atlas objects, after you initialized and read the theme and its associated images.
We posted the Widgets 2.0 source code on github as well (github.com/coronalabs) so you can see how the texture atlas is being initialized/read, and after you have all the image objects contained in the texture atlas you can directly manipulate them, including tinting.
If you need more info, let me know
A great day,
Alex
Yay! Source code
I’ve forked it now and will have a look…
Hi ingemar,
You can tint any display object, so you can tint a button if you created it using texture atlas image objects.
You can actually tint all of the texture atlas objects, after you initialized and read the theme and its associated images.
We posted the Widgets 2.0 source code on github as well (github.com/coronalabs) so you can see how the texture atlas is being initialized/read, and after you have all the image objects contained in the texture atlas you can directly manipulate them, including tinting.
If you need more info, let me know
A great day,
Alex
Yay! Source code
I’ve forked it now and will have a look…