DNESS / cocos2d-iphone

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

Change CCMenu default position #1496

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I sent a pull request
https://github.com/cocos2d/cocos2d-iphone/pull/317

In general, you can put CCSprite and CCMenuItem in the same position (center of 
the screen) like *1.
But when you write like *2, CCMenuItemSprite's position will be the upper right 
corner of the screen.
That's because CCMenu also has position (s.width/2, s.height/2) by default.
I think it's not natural. It seems like CCSprite's start point is (0, 0) and 
CCMenuItem's one is (s.width/2, s.height/2).
Is there any reason why CCMenu's default position should be there?

*1: https://gist.github.com/ikstrm/cd08a93d41ff2d2d4039
*2: https://gist.github.com/ikstrm/ec417274544fe418bebf

Original issue reported on code.google.com by takashik...@gmail.com on 4 Jul 2013 at 12:40