2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module LayerMultiplex
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Layer
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- initializes a MultiplexLayer with an array of layers<br>
|
|
|
|
-- since v2.1
|
|
|
|
-- @function [parent=#LayerMultiplex] initWithArray
|
|
|
|
-- @param self
|
|
|
|
-- @param #array_table arrayOfLayers
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- release the current layer and switches to another layer indexed by n.<br>
|
2015-03-20 12:53:00 +08:00
|
|
|
-- The current (old) layer will be removed from it's parent with 'cleanup=true'.<br>
|
|
|
|
-- param n The layer indexed by n will display.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LayerMultiplex] switchToAndReleaseMe
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int n
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-20 12:53:00 +08:00
|
|
|
-- Add a certain layer to LayerMultiplex.<br>
|
|
|
|
-- param layer A layer need to be added to the LayerMultiplex.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LayerMultiplex] addLayer
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Layer layer
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-20 12:53:00 +08:00
|
|
|
-- Switches to a certain layer indexed by n.<br>
|
|
|
|
-- The current (old) layer will be removed from it's parent with 'cleanup=true'.<br>
|
|
|
|
-- param n The layer indexed by n will display.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#LayerMultiplex] switchTo
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int n
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#LayerMultiplex] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#LayerMultiplex] getDescription
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#LayerMultiplex] LayerMultiplex
|
|
|
|
-- @param self
|
|
|
|
-- @return LayerMultiplex#LayerMultiplex self (return value: cc.LayerMultiplex)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|