Enhanced UI Library (ui.lua) updated to 2.2 (module() function removed)

Inspired by the recent post by Jonathan Beebe (http://blog.anscamobile.com/2011/09/a-better-approach-to-external-modules/) AND the recent update of Particle Candy, I have decided to go ahead and update the ui.lua as well…

So, ui.lua updated to eliminate the use of LUAs deprecated module() function. This is an internal change only, usage stays the same.

Code is available @
http://developer.anscamobile.com/code/enhanced-ui-library-uilua
http://www.pixelenvision.com/1562/coronasdk-enhanced-ui-library-ui-lua/ [import]uid: 10478 topic_id: 15249 reply_id: 315249[/import]

The link on your website to download the ZIP file is not working. [import]uid: 67839 topic_id: 15249 reply_id: 56313[/import]

@elbowroomapps,

Thanks for letting me know, It looks like I forgot to add one dot to the file link…
Fixed now… [import]uid: 10478 topic_id: 15249 reply_id: 56317[/import]

Thanks for sharing the updated file. [import]uid: 67839 topic_id: 15249 reply_id: 56319[/import]

Thank you so much!

I was using v1.5 – and I tried updating to more recent version before, but when I swapped it with newer version, my project gave me some error messages and I gave up on the idea of updating my ui.lua file. I’m too much of a newbie to figure out what needed to be done to remove the error. But this time, updating it from v1.5 to v2.2 didn’t cause any error. I’m so glad.

Thanks again! This is really super awesome! [import]uid: 67217 topic_id: 15249 reply_id: 56334[/import]

Just a note, code updated to 2.3

Now provides event.target & event.x/event.y to return touch coordinates relative to the button size… [import]uid: 10478 topic_id: 15249 reply_id: 57938[/import]

Nice! Thank you!! [import]uid: 67217 topic_id: 15249 reply_id: 58032[/import]