DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

Clicking CCMenuItem stops all actions #977

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up a CCMenu and an enabled CCMenuItem
2. Run an aesthetic action on that item
3. Click it

What is the expected output? What do you see instead?
I expected the button to just call target and have default zoom effect, but it 
also stops my aesthetic action

What cocos2d version are you using ?
0.99.5 beta 2

What iPhoneSDK are you using ?
4.0.2

Debug or Release ?
Both

Does this happens on device ? or on the simulator ? or on both ?
Both

Please provide any additional information below.
In the [CCMenuItem activate] method, we can see [self stopAllActions] (line 
216), I think it should be replaced with [self stopActionsByTag:kZoomActionTag] 
as in [CCMenuItem selected] (a few lines below)

Thanks !

Original issue reported on code.google.com by guillaum...@gmail.com on 3 Sep 2010 at 5:26

GoogleCodeExporter commented 9 years ago
It affects only CCMenuItemLabel, not CCMenuItem, I misread sorry.

Original comment by guillaum...@gmail.com on 3 Sep 2010 at 5:34