-------------------------------- -- @module ParallaxNode -- @extend Node -- @parent_module cc -------------------------------- -- Adds a child to the container with a local z-order, parallax ratio and position offset.
-- param child A child node.
-- param z Z order for drawing priority.
-- param parallaxRatio A given parallax ratio.
-- param positionOffset A given position offset. -- @function [parent=#ParallaxNode] addChild -- @param self -- @param #cc.Node child -- @param #int z -- @param #vec2_table parallaxRatio -- @param #vec2_table positionOffset -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) -------------------------------- -- -- @function [parent=#ParallaxNode] removeAllChildrenWithCleanup -- @param self -- @param #bool cleanup -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) -------------------------------- -- Create a Parallax node.
-- return An autoreleased ParallaxNode object. -- @function [parent=#ParallaxNode] create -- @param self -- @return ParallaxNode#ParallaxNode ret (return value: cc.ParallaxNode) -------------------------------- -- @overload self, cc.Node, int, string -- @overload self, cc.Node, int, int -- @function [parent=#ParallaxNode] addChild -- @param self -- @param #cc.Node child -- @param #int zOrder -- @param #int tag -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) -------------------------------- -- -- @function [parent=#ParallaxNode] visit -- @param self -- @param #cc.Renderer renderer -- @param #mat4_table parentTransform -- @param #unsigned int parentFlags -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) -------------------------------- -- -- @function [parent=#ParallaxNode] removeChild -- @param self -- @param #cc.Node child -- @param #bool cleanup -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) -------------------------------- -- Adds a child to the container with a z-order, a parallax ratio and a position offset
-- It returns self, so you can chain several addChilds.
-- since v0.8
-- js ctor -- @function [parent=#ParallaxNode] ParallaxNode -- @param self -- @return ParallaxNode#ParallaxNode self (return value: cc.ParallaxNode) return nil