works somewhat like CCMenuItemSprite, but the button can define sections inside that execute different selectors.
Currently only two sections allowed, but feel free to hack it as much as you want :-)
here's the code and a small example:
https://gist.github.com/662931
The example:
SectionalButton *it1 = [SectionalButton buttonWithFile:@"Images/home/classic.png" target:self selector1:@selector(play1) selector2:@selector(play2)];
SectionalButton *it2 = [SectionalButton buttonWithFile:@"Images/home/gad.png" target:self selector1:@selector(play3) selector2:@selector(play4)];
// section: first third of the sprite and 2/3 of the sprite
it1.section1 = CGRectMake(0, 0, it1.contentSize.width, it1.contentSize.height/3);
it1.section2 = CGRectMake(0, it1.contentSize.height/3, it1.contentSize.width, 2*it1.contentSize.height/3);
it1.rotation = -20.0f; // target: 20
it2.rotation = -55.0f; // target: -15
SectionalMenu *menu = [SectionalMenu node];
[menu addChild:it1 z:0 tag:kItem1Tag];
[menu addChild:it2 z:0 tag:kItem2Tag];
[self addChild:menu z:1 tag:kMenuTag];
NOTE: you must use the SectionalButton WITH SectionalMenu. These are not CCMenuItem subclasses since they work differently.
Enjoy!