issues with UI.lua

Hi,

I just created a first version of my game using corona in 2 days…and I would like to thanks everyone for sharing the code.

After the first draft of my game i tried to integrate my game with the director class. I took most of the files from turtlevshare example. However I am getting to a point where the Play button is not getting displayed as I am getting an error in the new button code (play button). the error is trying to index button with a nil value…

Not sure, whats going on? anyone facing similar issues. I read about ui.lua having diff versions. can someone point me to the latest version?

thanks a lot! you guys rock!
[import]uid: 56163 topic_id: 9892 reply_id: 309892[/import]

This sounds like you might be trying to add the button to your group too high up in your code; is insert(playbutton) below ALL of the ui info? (x, y, over, onRelease, etc.?)

I might be wrong but I know I’ve had similar issues when using ui.lua :slight_smile: [import]uid: 52491 topic_id: 9892 reply_id: 36082[/import]

Hi,

UI.LUA update. I just resolved my issue by replacing the ui.lua file from the downloaded maritan control project.

just though this would help someone who would be facing similar issues with ui.lua [import]uid: 55009 topic_id: 9892 reply_id: 36817[/import]

Thanks very much for updating, hopefully this will indeed be of use to others in the future :slight_smile: [import]uid: 52491 topic_id: 9892 reply_id: 37094[/import]