Closed GoogleCodeExporter closed 9 years ago
Situation fixed on my end or at least I have found a workaround. I am attaching
the fixed MenuIndex.mm file in question so that it can be compared with the
other one I already sent before.
The changes are minor, but have an important effect on the application. Blocks
triggered an issue in what probably was a not too safe behavior even before.
The CCMenuItem elements, if you look at the old code, have the target set to
MenuIndex's singleton instance through the "self" reference. In the old code I
initialize the CCMenuItem elements when I create the MenuIndex in the App
delegate while in the new code I do that when I add the menu to the currently
displayed "page" (removing the pages menu's childrens from their parent and
that menu itself from its parent).
It seems like the old way should have kept working... what do you think?
Original comment by Pana...@gmail.com
on 10 Jan 2012 at 11:27
Attachments:
Original comment by ricardoq...@gmail.com
on 10 Jan 2012 at 11:44
Resubmitted MenuIndex files. There was an issue left with the menu misbehaving
when shown and hidden without using it to transition between pages.
I am sorry for a confusing post last night, I will try to clarify what I meant
better soon.
Original comment by Pana...@gmail.com
on 11 Jan 2012 at 11:49
Attachments:
I have done a few more test on the original version of my MenuIndex class which
I have attached to this comment.
[scenesMenu removeFromParentAndCleanup:YES]; --> changing that flag to NO when
I wanted to hide scenesMenu and inserting the same kind of statement in the
-removeMenu method does fix the issue in the original class that sparked this
code issue. In that file I used to add and remove the scenesMenu layer each
time the menu would be shown and hidden, but not when a transition occurred
basically.
Original comment by Pana...@gmail.com
on 15 Jan 2012 at 10:18
Attachments:
@Panajev: So, I can close this bug as "invalid", right ?
Original comment by ricardoq...@gmail.com
on 21 Jan 2012 at 12:09
@riq: Yes, I think it is the best thing to do for now. Still, if the use of the
cleanup flag is marked as "work as intended", I think this should be reflected
in the documentation better. The code, the original code, stopped working when
CCMenu items were changed... although perhaps the original code should have
never worked well to begin with.
Original comment by Pana...@gmail.com
on 25 Jan 2012 at 8:46
Ok. Closing bug. I will update documentation.
Original comment by ricardoq...@gmail.com
on 25 Jan 2012 at 10:24
Original issue reported on code.google.com by
Pana...@gmail.com
on 8 Jan 2012 at 10:19