Class CCLayerMultiplex

#include <Geode/cocos/layers_scenes_transitions_nodes/CCLayer.h>
classCCLayerMultiplex:publiccocos2d::CCLayer{ ... }

CCMultipleLayer is a CCLayer with the ability to multiplex it’s children. Features:

  • It supports one or more children
  • Only one children will be active a time
Examples0
Public static methods4
staticcocos2d::CCLayerMultiplex*create()
No description provided
staticcocos2d::CCLayerMultiplex*createWithArray(
cocos2d::CCArray*arrayOfLayers
)

Since v2.1

creates a CCMultiplexLayer with an array of layers.

staticcocos2d::CCLayerMultiplex*create()

creates a CCLayerMultiplex with one or more layers using a variable argument list.

staticcocos2d::CCLayerMultiplex*createWithLayer()

lua script can not init with undetermined number of variables so add these functions to be used with lua.

Public member functions5
voidaddLayer()
No description provided
boolinitWithLayers(,)

initializes a MultiplexLayer with one or more layers using a variable argument list.

boolinitWithArray(
cocos2d::CCArray*arrayOfLayers
)

Since v2.1

initializes a CCMultiplexLayer with an array of layers

voidswitchTo()
No description provided
voidswitchToAndReleaseMe()

release the current layer and switches to another layer indexed by n. The current (old) layer will be removed from it’s parent with ‘cleanup:YES’.

Fields0
Protected member functions0
Protected fields2
uintm_nEnabledLayer
;
No description provided
;
No description provided