How to setup an in app settings option?

So almost every app I see has a button that you can press to bring up options, I am working on my app and I am trying to get a settings page to popup so the user can change the color or something within  the app. Does anyone have a good tutorial or advice for this? currently I have a button and an even listener setup. The button is in the right spot, it gets registered when tapped but I basically wonder how to bring up a new screen when this happens, let them do something and then go back to the old view, or just remove the new one. Any ideas? Thanks

If you’re using storyboard (which you should be, it’s great!) then the showOverlay feature would be very useful:

https://coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/

I did not know about storyboard! I am reading up on it right now, unfortunately most of my app is done at this point so I assume it would be rather complicated to convert at this point? I am still very much learning corona sdk and I am making a calculator app, so up until now I havn’t had to deal with any multiple screens or anything, Is there a way not using storyboards to temporarily go to a second page or have a dialog box popup ? (just settings options like color etc)

If you’re not using storyboard, it is arguably easier. You can just create a newRect with alpha = 0, and when the user presses your “Settings” button, you can transition your newRect alpha from 0 to 1. It would probably be useful to add in a touch listener to that rect that captured all errant taps, so that the user didn’t inadvertently interact with the app on the bottom. Or, you could create the rect below your app screen, and then transition the rect UP over your app screen. Or…

You get the picture! There are a lot of different ways to accomplish what you’re describing. The main thing to remember is that there wouldn’t be any real difference between whatever you coded as a the “main” app screen and what you coded as the “settings” screen. the same logic would apply.

If you’re using storyboard (which you should be, it’s great!) then the showOverlay feature would be very useful:

https://coronalabs.com/blog/2012/04/27/scene-overlays-and-parameter-passing/

I did not know about storyboard! I am reading up on it right now, unfortunately most of my app is done at this point so I assume it would be rather complicated to convert at this point? I am still very much learning corona sdk and I am making a calculator app, so up until now I havn’t had to deal with any multiple screens or anything, Is there a way not using storyboards to temporarily go to a second page or have a dialog box popup ? (just settings options like color etc)

If you’re not using storyboard, it is arguably easier. You can just create a newRect with alpha = 0, and when the user presses your “Settings” button, you can transition your newRect alpha from 0 to 1. It would probably be useful to add in a touch listener to that rect that captured all errant taps, so that the user didn’t inadvertently interact with the app on the bottom. Or, you could create the rect below your app screen, and then transition the rect UP over your app screen. Or…

You get the picture! There are a lot of different ways to accomplish what you’re describing. The main thing to remember is that there wouldn’t be any real difference between whatever you coded as a the “main” app screen and what you coded as the “settings” screen. the same logic would apply.