We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Tag problem when using CCMenuItemToggle
Tag problem when using CCMenuItemToggle
Bug #4502 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8376
Status: | Closed | |
---|---|---|
Start date: | 2014-03-21 | |
Priority: | High | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | - |
Hi, I notice a bug with CCMenuItemToggle.
If I set a tag to CCMenuItem before creating the CCMenuItemToggle, the tag will change after CCMenuItemToggle is created.
if I save the tags before and try to get the tag in callback, all CCMenuItems have same tag so I can't differentiate which CCMenuItem is active right now.
Is this how the CCMenuItemToggle supposed to work?