2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ParallaxNode
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Node
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-23 16:29:35 +08:00
|
|
|
-- Adds a child to the container with a local z-order, parallax ratio and position offset.<br>
|
|
|
|
-- param child A child node.<br>
|
|
|
|
-- param z Z order for drawing priority.<br>
|
|
|
|
-- param parallaxRatio A given parallax ratio.<br>
|
|
|
|
-- param positionOffset A given position offset.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParallaxNode] addChild
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int z
|
|
|
|
-- @param #vec2_table parallaxRatio
|
|
|
|
-- @param #vec2_table positionOffset
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParallaxNode] removeAllChildrenWithCleanup
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool cleanup
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-23 16:29:35 +08:00
|
|
|
-- Create a Parallax node. <br>
|
|
|
|
-- return An autoreleased ParallaxNode object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ParallaxNode] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ParallaxNode#ParallaxNode ret (return value: cc.ParallaxNode)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, cc.Node, int, string
|
|
|
|
-- @overload self, cc.Node, int, int
|
2014-06-25 14:17:41 +08:00
|
|
|
-- @function [parent=#ParallaxNode] addChild
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int zOrder
|
|
|
|
-- @param #int tag
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
2014-06-25 14:17:41 +08:00
|
|
|
|
2014-05-23 11:12:39 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-05-23 11:12:39 +08:00
|
|
|
-- @function [parent=#ParallaxNode] visit
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Renderer renderer
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #mat4_table parentTransform
|
|
|
|
-- @param #unsigned int parentFlags
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
2014-05-23 11:12:39 +08:00
|
|
|
|
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=#ParallaxNode] removeChild
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #bool cleanup
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Adds a child to the container with a z-order, a parallax ratio and a position offset<br>
|
|
|
|
-- It returns self, so you can chain several addChilds.<br>
|
|
|
|
-- since v0.8<br>
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#ParallaxNode] ParallaxNode
|
|
|
|
-- @param self
|
|
|
|
-- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|