Cocos2dUtilities
Utilities developed by HurleyProg for use with Cocos2d
 All Classes Functions Variables Properties Pages
Instance Methods | Class Methods | List of all members
CCFadableLayer Class Reference

#import <CCFadableLayer.h>

Inheritance diagram for CCFadableLayer:

Instance Methods

(void) - setColor:
 
(ccColor3B) - color
 
(GLubyte) - opacity
 
(void) - setOpacity:
 

Class Methods

(id) + node
 

Detailed Description

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.

Method Documentation

- (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
Initial value:
{
GLubyte _opacity

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.


The documentation for this class was generated from the following files: