2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ProtectedNode
|
|
|
|
-- @extend Node
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-07-17 10:28:34 +08:00
|
|
|
-- @overload self, cc.Node, int
|
|
|
|
-- @overload self, cc.Node
|
|
|
|
-- @overload self, cc.Node, int, int
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] addProtectedChild
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int localZOrder
|
|
|
|
-- @param #int tag
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] disableCascadeColor
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter.<br>
|
|
|
|
-- param tag An interger number that identifies a child node.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] removeProtectedChildByTag
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int tag
|
|
|
|
-- @param #bool cleanup
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Reorders a child according to a new z value.<br>
|
|
|
|
-- param child An already added child node. It MUST be already added.<br>
|
|
|
|
-- param localZOrder Z order for drawing priority. Please refer to setLocalZOrder(int)
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] reorderProtectedChild
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node child
|
|
|
|
-- @param #int localZOrder
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Removes all children from the container, and do a cleanup to all running actions depending on the cleanup parameter.<br>
|
|
|
|
-- param cleanup true if all running actions on all children nodes should be cleanup, false oterwise.<br>
|
|
|
|
-- js removeAllChildren<br>
|
|
|
|
-- lua removeAllChildren
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] removeAllProtectedChildrenWithCleanup
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool cleanup
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
2014-08-22 19:25:33 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-08-22 19:25:33 +08:00
|
|
|
-- @function [parent=#ProtectedNode] disableCascadeOpacity
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-08-22 19:25:33 +08:00
|
|
|
|
2014-03-27 14:55:35 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Sorts the children array once before drawing, instead of every time when a child is added or reordered.<br>
|
|
|
|
-- This appraoch can improves the performance massively.<br>
|
|
|
|
-- note Don't call this manually unless a child added needs to be removed in the same frame
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] sortAllProtectedChildren
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Gets a child from the container with its tag.<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- param tag An identifier to find the child node.<br>
|
2015-03-26 10:44:28 +08:00
|
|
|
-- return a Node object whose tag equals to the input parameter.
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] getProtectedChildByTag
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int tag
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @return Node#Node ret (return value: cc.Node)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.<br>
|
|
|
|
-- param child The child node which will be removed.<br>
|
|
|
|
-- param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] removeProtectedChild
|
|
|
|
-- @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 ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Removes all children from the container with a cleanup.<br>
|
2015-03-26 10:44:28 +08:00
|
|
|
-- see `removeAllChildrenWithCleanup(bool)`.
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] removeAllProtectedChildren
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-26 10:44:28 +08:00
|
|
|
-- Creates a ProtectedNode with no argument.<br>
|
|
|
|
-- return A instance of ProtectedNode.
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ProtectedNode#ProtectedNode ret (return value: cc.ProtectedNode)
|
2015-02-27 11:54:42 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ProtectedNode] setCameraMask
|
|
|
|
-- @param self
|
|
|
|
-- @param #unsigned short mask
|
|
|
|
-- @param #bool applyChildren
|
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
2014-05-23 11:12:39 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- / @} end of Children and Parent
|
2014-05-23 11:12:39 +08:00
|
|
|
-- @function [parent=#ProtectedNode] 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 ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-05-23 11:12:39 +08:00
|
|
|
|
2014-03-27 14:55:35 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] updateDisplayedOpacity
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #unsigned char parentOpacity
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] updateDisplayedColor
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #color3b_table parentColor
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-27 14:55:35 +08:00
|
|
|
-- @function [parent=#ProtectedNode] cleanup
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ProtectedNode#ProtectedNode self (return value: cc.ProtectedNode)
|
2014-03-27 14:55:35 +08:00
|
|
|
|
|
|
|
return nil
|