diff --git a/CCControlExtension/CCControl/CCControl.m b/CCControlExtension/CCControl/CCControl.m index 878bb01..fd9eb96 100755 --- a/CCControlExtension/CCControl/CCControl.m +++ b/CCControlExtension/CCControl/CCControl.m @@ -120,6 +120,20 @@ @implementation CCControl @synthesize opacity = opacity_; @synthesize color = color_; @synthesize opacityModifyRGB = opacityModifyRGB_; +@synthesize displayedColor; +@synthesize cascadeColorEnabled; +@synthesize displayedOpacity; +@synthesize cascadeOpacityEnabled; + +- (void)updateDisplayedColor:(ccColor3B)color +{ + // Nothing to do +} + +- (void)updateDisplayedOpacity:(GLubyte)opacity +{ + // Nothing to do +} - (void)dealloc { @@ -135,7 +149,7 @@ - (id)init { #ifdef __IPHONE_OS_VERSION_MAX_ALLOWED // Enabled the touch event - self.isTouchEnabled = YES; + [self setTouchEnabled:YES]; #elif __MAC_OS_X_VERSION_MAX_ALLOWED // Enabled the mouse event self.mouseEnabled = YES; diff --git a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m index 6c656c1..475e548 100755 --- a/CCControlExtension/CCControl/Utils/CCScale9Sprite.m +++ b/CCControlExtension/CCControl/Utils/CCScale9Sprite.m @@ -39,6 +39,21 @@ @implementation CCScale9Sprite @synthesize insetRight = insetRight_; @synthesize preferedSize = preferedSize_; +@synthesize displayedOpacity; +@synthesize cascadeOpacityEnabled; +@synthesize displayedColor; +@synthesize cascadeColorEnabled; + +- (void)updateDisplayedColor:(ccColor3B)color +{ + // Nothing to do +} + +- (void)updateDisplayedOpacity:(GLubyte)opacity +{ + // Nothing to do +} + - (void)dealloc { [topLeft release];