Cocos2dUtilities
Utilities developed by HurleyProg for use with Cocos2d
|
#import <CCFadableLayer.h>
Instance Methods | |
(void) | - setColor: |
(ccColor3B) | - color |
(GLubyte) | - opacity |
(void) | - setOpacity: |
Class Methods | |
(id) | + node |
A subclass of CCLayer where the setOpacity method has been changed so the entire layer and any of its children that support the CCRGBAProtocol can be faded.
- (ccColor3B) color |
This will always return black. This method should not be used but is required by the protocol. If you want a layer with color see CCLayerColor.
+ (id) node |
Initializes the layer and sets the opacity to 255.
- (GLubyte) opacity |
Returns the current opacity of the layer
- (void) setColor: | (ccColor3B) | color |
This does nothing. Any color set here is ignored. If you want a layer with color see CCLayerColor
- (void) setOpacity: | (GLubyte) | opacity |
Sets the opacity of the layer. In reality it is setting the opacity of all the children. The layer is always transparent.