disable items with a popup

Hi,

I am creating a button which shows an overlay in the background then a dialog box which has multiple options to choose from.

When clicking the button I have created the rectangle with an alpha to cover the screen, but the items underneath it such as scrollviews and buttons still work. Is there anything you can do to actually disable the activity of those items until I close the dialog box?

Also is there anything built in to do dialogs? The native alerts wont give me the options I need.

Thanks. [import]uid: 72726 topic_id: 14055 reply_id: 314055[/import]

i think, you should add a touch event listener to the overlay, and in the listener you should write “return true”. [import]uid: 46529 topic_id: 14055 reply_id: 51756[/import]

Nice 1, works perfectly…

I had tried the:

[lua]display.getCurrentStage():setFocus(popupGroup)[/lua]

And although it did work, I couldn’t put any buttons on top as they never had focus!

Why i’m here, is it possible to transition groups rather than just objects? I have the popup using a transition to come in, but the button just pops up instantly, if I could put a transition on a group it would work, but it seems to fail when i try [import]uid: 72726 topic_id: 14055 reply_id: 51767[/import]

Well, I am not sure what fails, but you could put transition to groups like any other display object. [import]uid: 46529 topic_id: 14055 reply_id: 51796[/import]