Corona Geek #127 - Implementing a Progress Ring

During this Hangout Jason Schroeder will be walking us through the code for his progress ring module. If you haven’t already, download the progress ring sample code. It’s pretty awesome and well documented. We may also be joined by someone from the #ShipJam team to tell us how the end of year event went. More details coming soon.

https://www.youtube.com/watch?v=0Rr4o1EzwVQ

 

Feel free to post questions and discuss the Hangout below.

UPDATE: With daily build #2015.2544, Corona Labs fixed the finalize() bug that prevented objects’ finalize events from being triggered when their parent display group was removed. Woohoo! However, my progressRing module had a bug that only manifests itself now that finalize() is working again. I had utilized a workaround developed by @sergeylerg, but there was an error in my implementation of that fix that causes a crash when run on build 2015.2544 and later. I fixed that error by adding a 1ms timer when checking to see if finalize events are being triggered as they should. The finalize() fix is not necessary for up-to-date Corona builds, but I’m leaving it in for folks who might be running legacy Corona builds.

 

Please get the updated version of the progressRing module at http://www.jasonschroeder.com/2014/12/21/progress-ring-module-for-corona-sdk/

Really great modules, Jason!  I didn’t quite catch everything that was going on with the masks on images for the progress rings, but it looks like it is quite capable.  I love the color picker module, too – I made one myself a year or more ago, but this one looks much nicer.

Also, it’s great to see the finalize bug is fixed!!!

UPDATE: With daily build #2015.2544, Corona Labs fixed the finalize() bug that prevented objects’ finalize events from being triggered when their parent display group was removed. Woohoo! However, my progressRing module had a bug that only manifests itself now that finalize() is working again. I had utilized a workaround developed by @sergeylerg, but there was an error in my implementation of that fix that causes a crash when run on build 2015.2544 and later. I fixed that error by adding a 1ms timer when checking to see if finalize events are being triggered as they should. The finalize() fix is not necessary for up-to-date Corona builds, but I’m leaving it in for folks who might be running legacy Corona builds.

 

Please get the updated version of the progressRing module at http://www.jasonschroeder.com/2014/12/21/progress-ring-module-for-corona-sdk/

Really great modules, Jason!  I didn’t quite catch everything that was going on with the masks on images for the progress rings, but it looks like it is quite capable.  I love the color picker module, too – I made one myself a year or more ago, but this one looks much nicer.

Also, it’s great to see the finalize bug is fixed!!!