Hi,
I've defined the following MenuItem subclass:
@interface Button : MenuItem <CocosNodeRGBA> {
Sprite *image;
............
}
@end
@implementation Button
-(id) initWithFile:(NSString*)filename target:(id)rec selector:(SEL)s
{
self = [super initWithTarget:rec selector:s];
if (self) {
image = [[Sprite spriteWithFile:filename] retain];
.........
}
@end
When I initialize a Button I pass a path to a 24bit PNG file.
I than use the Button's image method
[image setRGB:rr :gg :bb];
to set the sprite's tint.
It works on the simulator, but not on the device (no tint is applied at all).
Any suggestion? Thank you very much in advance.
Alessandro