On Mon, Oct 3, 2011 at 10:45 PM, Joseph Marlin <[email protected]>wrote:
> This is probably a pretty basic question. I had a menu, menu_b working > quite nicely. I added a new layer to the scene containing that Menu Layer. > (Menu layer is actually several menus multiplexed). > > Anyway, this layer I added to the scene starts invisible, becomes visible > in on_enter() for menu_b, and is set invisible again in the on_exit() for > menu_b. Specifically, I am calling: director.scene.children[1][1].visible = > True in the menu_b's on_enter(). For some reason, doing this breaks the > menu! You can no longer click menu items, and hovering over menu items > doesn't change their appearance as it should. > > The menu works fine if I do NOT call 'director.scene.children[1][1].visible > = True'. Any ideas why that is messing the menu up? > Doing a grep / find in files for 'visible' don't give hits in code handling events, so I would say is totally unexpected. Really the only difference in code that triggers the behavior change is commenting out the line director.scene.children[1][1].visible = True ? Sounds more like forgetting to call super in menu_b on_enter Can you make a small script showing the problem and paste somewhere ? -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
