Correct way to create a MENU?

Correct way to create a MENU?
0

Hi, we have a trouble, but we think that we have used badly the UI components in CocosCreators…
We need to open a popup window (as like coins shop, gadget etc…)… but when the node are opened we have always with the background interaction… how to disable this? is there a correct way to create menu in cocos? Now we have generate a cc.Node with inside cc.Button… (and a cc.Sprite for background).

Thanks for help,

Stefano

As far as I know you have to setup your own Menu, there is not a “Menu” node predifined.
In your example, to open a popup you could to it with an animation or with actions.
To prevent interaction with the background what I do is to have a background node on the popup with a Button component attached that covers the entire screen.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.