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

6 replies [Last post]
PixelEnvision
User offline. Last seen 31 weeks 1 day ago. Offline
Joined: 22 Oct 2010

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/

Replies

elbowroomapps
User offline. Last seen 2 hours 38 min ago. Offline
Joined: 8 Jun 2011

The link on your website to download the ZIP file is not working.

PixelEnvision
User offline. Last seen 31 weeks 1 day ago. Offline
Joined: 22 Oct 2010

@elbowroomapps,

Thanks for letting me know, It looks like I forgot to add one dot to the file link...
Fixed now...

elbowroomapps
User offline. Last seen 2 hours 38 min ago. Offline
Joined: 8 Jun 2011

Thanks for sharing the updated file.

Naomi
User offline. Last seen 6 days 3 hours ago. Offline
Joined: 6 Jun 2011

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!

PixelEnvision
User offline. Last seen 31 weeks 1 day ago. Offline
Joined: 22 Oct 2010

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...

Naomi
User offline. Last seen 6 days 3 hours ago. Offline
Joined: 6 Jun 2011

Nice! Thank you!!

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.