diff --git a/cocos2d/actions/CCAction.js b/cocos2d/actions/CCAction.js
index 0f63364c2f..8d4e615e0a 100644
--- a/cocos2d/actions/CCAction.js
+++ b/cocos2d/actions/CCAction.js
@@ -37,8 +37,8 @@ cc.ACTION_TAG_INVALID = -1;
*
* @extends cc._Class
*
- * @property {cc.Node} target - The target will be set with the 'startWithTarget' method. When the 'stop' method is called, target will be set to nil.
- * @property {cc.Node} originalTarget - The original target of the action.
+ * @property {_ccsg.Node} target - The target will be set with the 'startWithTarget' method. When the 'stop' method is called, target will be set to nil.
+ * @property {_ccsg.Node} originalTarget - The original target of the action.
* @property {Number} tag - The tag of the action, can be used to find the action.
*/
cc.Action = cc._Class.extend(/** @lends cc.Action# */{
@@ -96,7 +96,7 @@ cc.Action = cc._Class.extend(/** @lends cc.Action# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
this.originalTarget = target;
@@ -133,7 +133,7 @@ cc.Action = cc._Class.extend(/** @lends cc.Action# */{
/**
* get the target.
*
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getTarget:function () {
return this.target;
@@ -142,7 +142,7 @@ cc.Action = cc._Class.extend(/** @lends cc.Action# */{
/**
* The action will modify the target properties.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
setTarget:function (target) {
this.target = target;
@@ -151,7 +151,7 @@ cc.Action = cc._Class.extend(/** @lends cc.Action# */{
/**
* get the original target.
*
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getOriginalTarget:function () {
return this.originalTarget;
@@ -162,7 +162,7 @@ cc.Action = cc._Class.extend(/** @lends cc.Action# */{
* Is the target that were used to run the action.
* Unless you are doing something complex, like cc.ActionManager, you should NOT call this method.
* The target is 'assigned', it is not 'retained'.
- * @param {cc.Node} originalTarget
+ * @param {_ccsg.Node} originalTarget
*/
setOriginalTarget:function (originalTarget) {
this.originalTarget = originalTarget;
@@ -370,7 +370,7 @@ cc.Speed = cc.Action.extend(/** @lends cc.Speed# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.Action.prototype.startWithTarget.call(this, target);
@@ -474,7 +474,7 @@ cc.Speed.create = cc.speed;
* @property {Number} topBoundary - world topBoundary.
* @property {Number} bottomBoundary - world bottomBoundary.
*
- * @param {cc.Node} followedNode
+ * @param {_ccsg.Node} followedNode
* @param {cc.Rect} rect
* @example
* // creates the action with a set boundary
@@ -511,7 +511,7 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
* creates the action with a set boundary.
* creates the action with no boundary set.
- * @param {cc.Node} followedNode
+ * @param {_ccsg.Node} followedNode
* @param {cc.Rect} rect
*/
ctor:function (followedNode, rect) {
@@ -569,7 +569,7 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
/**
* initializes the action with a set boundary.
*
- * @param {cc.Node} followedNode
+ * @param {_ccsg.Node} followedNode
* @param {cc.Rect} [rect=]
* @return {Boolean}
*/
@@ -662,7 +662,7 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
* creates the action with no boundary set.
*
* @function
- * @param {cc.Node} followedNode
+ * @param {_ccsg.Node} followedNode
* @param {cc.Rect} rect
* @return {cc.Follow|Null} returns the cc.Follow object on success
* @example
@@ -685,7 +685,7 @@ cc.follow = function (followedNode, rect) {
* Please use cc.follow instead.
* creates the action with a set boundary.
* creates the action with no boundary set.
- * @param {cc.Node} followedNode
+ * @param {_ccsg.Node} followedNode
* @param {cc.Rect} rect
* @return {cc.Follow|Null} returns the cc.Follow object on success
* @static
diff --git a/cocos2d/actions/CCActionCamera.js b/cocos2d/actions/CCActionCamera.js
index 0ff5786b71..cc1c0186aa 100644
--- a/cocos2d/actions/CCActionCamera.js
+++ b/cocos2d/actions/CCActionCamera.js
@@ -61,7 +61,7 @@ cc.ActionCamera = cc.ActionInterval.extend(/** @lends cc.ActionCamera# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
var _t = this;
@@ -209,7 +209,7 @@ cc.OrbitCamera = cc.ActionCamera.extend(/** @lends cc.OrbitCamera# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
var _t = this;
diff --git a/cocos2d/actions/CCActionCatmullRom.js b/cocos2d/actions/CCActionCatmullRom.js
index 2110529c90..6beb30a18b 100644
--- a/cocos2d/actions/CCActionCatmullRom.js
+++ b/cocos2d/actions/CCActionCatmullRom.js
@@ -199,7 +199,7 @@ cc.CardinalSplineTo = cc.ActionInterval.extend(/** @lends cc.CardinalSplineTo# *
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -360,7 +360,7 @@ cc.CardinalSplineBy = cc.CardinalSplineTo.extend(/** @lends cc.CardinalSplineBy#
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.CardinalSplineTo.prototype.startWithTarget.call(this, target);
diff --git a/cocos2d/actions/CCActionEase.js b/cocos2d/actions/CCActionEase.js
index 1ec1fb1c71..e5f27d8017 100644
--- a/cocos2d/actions/CCActionEase.js
+++ b/cocos2d/actions/CCActionEase.js
@@ -80,7 +80,7 @@ cc.ActionEase = cc.ActionInterval.extend(/** @lends cc.ActionEase# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
diff --git a/cocos2d/actions/CCActionInterval.js b/cocos2d/actions/CCActionInterval.js
index 69cab12331..6166098da2 100644
--- a/cocos2d/actions/CCActionInterval.js
+++ b/cocos2d/actions/CCActionInterval.js
@@ -196,7 +196,7 @@ cc.ActionInterval = cc.FiniteTimeAction.extend(/** @lends cc.ActionInterval# */{
/**
* Start this action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.Action.prototype.startWithTarget.call(this, target);
@@ -400,7 +400,7 @@ cc.Sequence = cc.ActionInterval.extend(/** @lends cc.Sequence# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -607,7 +607,7 @@ cc.Repeat = cc.ActionInterval.extend(/** @lends cc.Repeat# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
this._total = 0;
@@ -777,7 +777,7 @@ cc.RepeatForever = cc.ActionInterval.extend(/** @lends cc.RepeatForever# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -943,7 +943,7 @@ cc.Spawn = cc.ActionInterval.extend(/** @lends cc.Spawn# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1031,7 +1031,7 @@ cc.Spawn._actionOneTwo = function (action1, action2) {
/**
- * Rotates a cc.Node object to a certain angle by modifying it's.
+ * Rotates a ccsg.Node object to a certain angle by modifying it's.
* rotation attribute.
* The direction will be decided by the shortest angle.
* @class
@@ -1093,7 +1093,7 @@ cc.RotateTo = cc.ActionInterval.extend(/** @lends cc.RotateTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1170,7 +1170,7 @@ cc.RotateTo.create = cc.rotateTo;
/**
- * Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.
+ * Rotates a ccsg.Node object clockwise a number of degrees by modifying it's rotation attribute.
* Relative to its properties to modify.
* @class
* @extends cc.ActionInterval
@@ -1227,7 +1227,7 @@ cc.RotateBy = cc.ActionInterval.extend(/** @lends cc.RotateBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1260,7 +1260,7 @@ cc.RotateBy = cc.ActionInterval.extend(/** @lends cc.RotateBy# */{
});
/**
- * Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.
+ * Rotates a ccsg.Node object clockwise a number of degrees by modifying it's rotation attribute.
* Relative to its properties to modify.
* @function
* @param {Number} duration duration in seconds
@@ -1276,7 +1276,7 @@ cc.rotateBy = function (duration, deltaAngleX, deltaAngleY) {
};
/**
* Please use cc.rotateBy instead.
- * Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.
+ * Rotates a ccsg.Node object clockwise a number of degrees by modifying it's rotation attribute.
* Relative to its properties to modify.
* @static
* @deprecated since v3.0
Please use cc.rotateBy instead.
@@ -1358,7 +1358,7 @@ cc.MoveBy = cc.ActionInterval.extend(/** @lends cc.MoveBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1500,7 +1500,7 @@ cc.MoveTo = cc.MoveBy.extend(/** @lends cc.MoveTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.MoveBy.prototype.startWithTarget.call(this, target);
@@ -1537,7 +1537,7 @@ cc.moveTo = function (duration, position, y) {
cc.MoveTo.create = cc.moveTo;
/**
- * Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes
+ * Skews a ccsg.Node object to given angles by modifying it's skewX and skewY attributes
* @class
* @extends cc.ActionInterval
* @param {Number} t time in seconds
@@ -1598,7 +1598,7 @@ cc.SkewTo = cc.ActionInterval.extend(/** @lends cc.SkewTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1630,7 +1630,7 @@ cc.SkewTo = cc.ActionInterval.extend(/** @lends cc.SkewTo# */{
});
/**
* Create new action.
- * Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes.
+ * Skews a ccsg.Node object to given angles by modifying it's skewX and skewY attributes.
* Changes to the specified value.
* @function
* @param {Number} t time in seconds
@@ -1646,7 +1646,7 @@ cc.skewTo = function (t, sx, sy) {
};
/**
* Please use cc.skewTo instead.
- * Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes。
+ * Skews a ccsg.Node object to given angles by modifying it's skewX and skewY attributes。
* Changes to the specified value.
* @static
* @deprecated since v3.0
Please use cc.skewTo instead.
@@ -1658,7 +1658,7 @@ cc.skewTo = function (t, sx, sy) {
cc.SkewTo.create = cc.skewTo;
/**
- * Skews a cc.Node object by skewX and skewY degrees.
+ * Skews a ccsg.Node object by skewX and skewY degrees.
* Relative to its attribute modification.
* @class
* @extends cc.SkewTo
@@ -1709,7 +1709,7 @@ cc.SkewBy = cc.SkewTo.extend(/** @lends cc.SkewBy# */{
/**
* Start the action width target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.SkewTo.prototype.startWithTarget.call(this, target);
@@ -1732,7 +1732,7 @@ cc.SkewBy = cc.SkewTo.extend(/** @lends cc.SkewBy# */{
});
/**
- * Skews a cc.Node object by skewX and skewY degrees.
+ * Skews a ccsg.Node object by skewX and skewY degrees.
* Relative to its attribute modification.
* @function
* @param {Number} t time in seconds
@@ -1748,7 +1748,7 @@ cc.skewBy = function (t, sx, sy) {
};
/**
* Please use cc.skewBy instead.
- * Skews a cc.Node object by skewX and skewY degrees.
+ * Skews a ccsg.Node object by skewX and skewY degrees.
* Relative to its attribute modification.
* @static
* @deprecated since v3.0 please use cc.skewBy instead.
@@ -1761,7 +1761,7 @@ cc.SkewBy.create = cc.skewBy;
/**
- * Moves a cc.Node object simulating a parabolic jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object simulating a parabolic jump movement by modifying it's position attribute.
* Relative to its movement.
* @class
* @extends cc.ActionInterval
@@ -1839,7 +1839,7 @@ cc.JumpBy = cc.ActionInterval.extend(/** @lends cc.JumpBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -1895,7 +1895,7 @@ cc.JumpBy = cc.ActionInterval.extend(/** @lends cc.JumpBy# */{
});
/**
- * Moves a cc.Node object simulating a parabolic jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object simulating a parabolic jump movement by modifying it's position attribute.
* Relative to its movement.
* @function
* @param {Number} duration
@@ -1914,7 +1914,7 @@ cc.jumpBy = function (duration, position, y, height, jumps) {
};
/**
* Please use cc.jumpBy instead.
- * Moves a cc.Node object simulating a parabolic jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object simulating a parabolic jump movement by modifying it's position attribute.
* Relative to its movement.
* @static
* @deprecated since v3.0 please use cc.jumpBy instead.
@@ -1928,7 +1928,7 @@ cc.jumpBy = function (duration, position, y, height, jumps) {
cc.JumpBy.create = cc.jumpBy;
/**
- * Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
* Jump to the specified location.
* @class
* @extends cc.JumpBy
@@ -1984,7 +1984,7 @@ cc.JumpTo = cc.JumpBy.extend(/** @lends cc.JumpTo# */{
},
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.JumpBy.prototype.startWithTarget.call(this, target);
@@ -2005,7 +2005,7 @@ cc.JumpTo = cc.JumpBy.extend(/** @lends cc.JumpTo# */{
});
/**
- * Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
* Jump to the specified location.
* @function
* @param {Number} duration
@@ -2024,7 +2024,7 @@ cc.jumpTo = function (duration, position, y, height, jumps) {
};
/**
* Please use cc.jumpTo instead.
- * Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
+ * Moves a ccsg.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
* Jump to the specified location.
* @static
* @deprecated since v3.0 please use cc.jumpTo instead.
@@ -2114,7 +2114,7 @@ cc.BezierBy = cc.ActionInterval.extend(/** @lends cc.BezierBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -2262,7 +2262,7 @@ cc.BezierTo = cc.BezierBy.extend(/** @lends cc.BezierTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.BezierBy.prototype.startWithTarget.call(this, target);
@@ -2300,7 +2300,7 @@ cc.bezierTo = function (t, c) {
cc.BezierTo.create = cc.bezierTo;
-/** Scales a cc.Node object to a zoom factor by modifying it's scale attribute.
+/** Scales a ccsg.Node object to a zoom factor by modifying it's scale attribute.
* @warning This action doesn't support "reverse"
* @class
* @extends cc.ActionInterval
@@ -2364,7 +2364,7 @@ cc.ScaleTo = cc.ActionInterval.extend(/** @lends cc.ScaleTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -2387,7 +2387,7 @@ cc.ScaleTo = cc.ActionInterval.extend(/** @lends cc.ScaleTo# */{
}
});
/**
- * Scales a cc.Node object to a zoom factor by modifying it's scale attribute.
+ * Scales a ccsg.Node object to a zoom factor by modifying it's scale attribute.
* @function
* @param {Number} duration
* @param {Number} sx scale parameter in X
@@ -2406,7 +2406,7 @@ cc.scaleTo = function (duration, sx, sy) { //function overload
};
/**
* Please use cc.scaleTo instead.
- * Scales a cc.Node object to a zoom factor by modifying it's scale attribute.
+ * Scales a ccsg.Node object to a zoom factor by modifying it's scale attribute.
* @static
* @deprecated since v3.0 please use cc.scaleTo instead.
* @param {Number} duration
@@ -2417,7 +2417,7 @@ cc.scaleTo = function (duration, sx, sy) { //function overload
cc.ScaleTo.create = cc.scaleTo;
-/** Scales a cc.Node object a zoom factor by modifying it's scale attribute.
+/** Scales a ccsg.Node object a zoom factor by modifying it's scale attribute.
* Relative to its changes.
* @class
* @extends cc.ScaleTo
@@ -2425,7 +2425,7 @@ cc.ScaleTo.create = cc.scaleTo;
cc.ScaleBy = cc.ScaleTo.extend(/** @lends cc.ScaleBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ScaleTo.prototype.startWithTarget.call(this, target);
@@ -2456,7 +2456,7 @@ cc.ScaleBy = cc.ScaleTo.extend(/** @lends cc.ScaleBy# */{
}
});
/**
- * Scales a cc.Node object a zoom factor by modifying it's scale attribute.
+ * Scales a ccsg.Node object a zoom factor by modifying it's scale attribute.
* Relative to its changes.
* @function
* @param {Number} duration duration in seconds
@@ -2475,7 +2475,7 @@ cc.scaleBy = function (duration, sx, sy) {
};
/**
* Please use cc.scaleBy instead.
- * Scales a cc.Node object a zoom factor by modifying it's scale attribute.
+ * Scales a ccsg.Node object a zoom factor by modifying it's scale attribute.
* Relative to its changes.
* @static
* @deprecated since v3.0 please use cc.scaleBy() instead.
@@ -2486,7 +2486,7 @@ cc.scaleBy = function (duration, sx, sy) {
*/
cc.ScaleBy.create = cc.scaleBy;
-/** Blinks a cc.Node object by modifying it's visible attribute
+/** Blinks a ccsg.Node object by modifying it's visible attribute
* @class
* @extends cc.ActionInterval
* @param {Number} duration duration in seconds
@@ -2548,7 +2548,7 @@ cc.Blink = cc.ActionInterval.extend(/** @lends cc.Blink# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -2575,7 +2575,7 @@ cc.Blink = cc.ActionInterval.extend(/** @lends cc.Blink# */{
}
});
/**
- * Blinks a cc.Node object by modifying it's visible attribute.
+ * Blinks a ccsg.Node object by modifying it's visible attribute.
* @function
* @param {Number} duration duration in seconds
* @param blinks blinks in times
@@ -2589,7 +2589,7 @@ cc.blink = function (duration, blinks) {
};
/**
* Please use cc.blink instead.
- * Blinks a cc.Node object by modifying it's visible attribute.
+ * Blinks a ccsg.Node object by modifying it's visible attribute.
* @static
* @deprecated since v3.0 please use cc.blink instead.
* @param {Number} duration duration in seconds
@@ -2658,7 +2658,7 @@ cc.FadeTo = cc.ActionInterval.extend(/** @lends cc.FadeTo# */{
/**
* Start this action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -2735,7 +2735,7 @@ cc.FadeIn = cc.FadeTo.extend(/** @lends cc.FadeIn# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
if(this._reverseAction)
@@ -2833,7 +2833,7 @@ cc.fadeOut = function (d) {
*/
cc.FadeOut.create = cc.fadeOut;
-/** Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+/** Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* @warning This action doesn't support "reverse"
* @class
* @extends cc.ActionInterval
@@ -2893,7 +2893,7 @@ cc.TintTo = cc.ActionInterval.extend(/** @lends cc.TintTo# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -2920,7 +2920,7 @@ cc.TintTo = cc.ActionInterval.extend(/** @lends cc.TintTo# */{
});
/**
- * Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+ * Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* @function
* @param {Number} duration
* @param {Number} red 0-255
@@ -2936,7 +2936,7 @@ cc.tintTo = function (duration, red, green, blue) {
};
/**
* Please use cc.tintTo instead.
- * Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+ * Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* @static
* @deprecated since v3.0 please use cc.tintTo instead.
* @param {Number} duration
@@ -2948,7 +2948,7 @@ cc.tintTo = function (duration, red, green, blue) {
cc.TintTo.create = cc.tintTo;
-/** Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+/** Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* Relative to their own color change.
* @class
* @extends cc.ActionInterval
@@ -3011,7 +3011,7 @@ cc.TintBy = cc.ActionInterval.extend(/** @lends cc.TintBy# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -3049,7 +3049,7 @@ cc.TintBy = cc.ActionInterval.extend(/** @lends cc.TintBy# */{
});
/**
- * Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+ * Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* Relative to their own color change.
* @function
* @param {Number} duration duration in seconds
@@ -3066,7 +3066,7 @@ cc.tintBy = function (duration, deltaRed, deltaGreen, deltaBlue) {
};
/**
* Please use cc.tintBy instead.
- * Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
+ * Tints a ccsg.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
* Relative to their own color change.
* @static
* @deprecated since v3.0 please use cc.tintBy instead.
@@ -3193,7 +3193,7 @@ cc.ReverseTime = cc.ActionInterval.extend(/** @lends cc.ReverseTime# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -3458,7 +3458,7 @@ cc.Animate.create = cc.animate;
*
* @class
* @extends cc.ActionInterval
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.FiniteTimeAction} action
*/
cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
@@ -3468,7 +3468,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
* Create an action with the specified action and forced target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.FiniteTimeAction} action
*/
ctor: function (target, action) {
@@ -3478,7 +3478,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* Init an action with the specified action and forced target
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.FiniteTimeAction} action
* @return {Boolean}
*/
@@ -3504,7 +3504,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* Start the action with target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -3529,7 +3529,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* return the target that the action will be forced to run with
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getForcedTarget:function () {
return this._forcedTarget;
@@ -3537,7 +3537,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* set the target that the action will be forced to run with
- * @param {cc.Node} forcedTarget
+ * @param {_ccsg.Node} forcedTarget
*/
setForcedTarget:function (forcedTarget) {
if (this._forcedTarget !== forcedTarget)
@@ -3548,7 +3548,7 @@ cc.TargetedAction = cc.ActionInterval.extend(/** @lends cc.TargetedAction# */{
/**
* Create an action with the specified action and forced target
* @function
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.FiniteTimeAction} action
* @return {cc.TargetedAction}
*/
@@ -3560,7 +3560,7 @@ cc.targetedAction = function (target, action) {
* Create an action with the specified action and forced target
* @static
* @deprecated since v3.0 please use cc.targetedAction instead.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.FiniteTimeAction} action
* @return {cc.TargetedAction}
*/
diff --git a/cocos2d/actions3d/CCActionGrid.js b/cocos2d/actions3d/CCActionGrid.js
index a52024d3d2..c395c68796 100644
--- a/cocos2d/actions3d/CCActionGrid.js
+++ b/cocos2d/actions3d/CCActionGrid.js
@@ -68,7 +68,7 @@ cc.GridAction = cc.ActionInterval.extend(/** @lends cc.GridAction# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -338,7 +338,7 @@ cc.StopGrid = cc.ActionInstant.extend(/** @lends cc.StopGrid# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInstant.prototype.startWithTarget.call(this, target);
@@ -397,7 +397,7 @@ cc.ReuseGrid = cc.ActionInstant.extend(/** @lends cc.ReuseGrid# */{
/**
* called before the action start. It will also set the target.
*
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInstant.prototype.startWithTarget.call(this, target);
diff --git a/cocos2d/actions3d/CCActionTiledGrid.js b/cocos2d/actions3d/CCActionTiledGrid.js
index 3210f3331f..56603d4075 100644
--- a/cocos2d/actions3d/CCActionTiledGrid.js
+++ b/cocos2d/actions3d/CCActionTiledGrid.js
@@ -361,7 +361,7 @@ cc.ShuffleTiles = cc.TiledGrid3DAction.extend(/** @lends cc.ShuffleTiles# */{
/**
* Start with target
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.TiledGrid3DAction.prototype.startWithTarget.call(this, target);
@@ -780,7 +780,7 @@ cc.TurnOffTiles = cc.TiledGrid3DAction.extend(/** @lends cc.TurnOffTiles# */{
/**
* called before the action start. It will also set the target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.TiledGrid3DAction.prototype.startWithTarget.call(this, target);
@@ -1175,7 +1175,7 @@ cc.SplitRows = cc.TiledGrid3DAction.extend(/** @lends cc.SplitRows# */{
/**
* called before the action start. It will also set the target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.TiledGrid3DAction.prototype.startWithTarget.call(this, target);
@@ -1267,7 +1267,7 @@ cc.SplitCols = cc.TiledGrid3DAction.extend(/** @lends cc.SplitCols# */{
/**
* called before the action start. It will also set the target.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.TiledGrid3DAction.prototype.startWithTarget.call(this, target);
diff --git a/cocos2d/clipping-nodes/CCClippingNode.js b/cocos2d/clipping-nodes/CCClippingNode.js
index 0f3b5dbf6f..40d63931d5 100644
--- a/cocos2d/clipping-nodes/CCClippingNode.js
+++ b/cocos2d/clipping-nodes/CCClippingNode.js
@@ -33,20 +33,20 @@ cc.stencilBits = -1;
/**
*
- * cc.ClippingNode is a subclass of cc.Node.
+ * cc.ClippingNode is a subclass of ccsg.Node.
* It draws its content (children) clipped using a stencil.
- * The stencil is an other cc.Node that will not be drawn.
+ * The stencil is an other ccsg.Node that will not be drawn.
* The clipping is done using the alpha part of the stencil (adjusted with an alphaThreshold).
*
* @class
- * @extends cc.Node
- * @param {cc.Node} [stencil=null]
+ * @extends _ccsg.Node
+ * @param {_ccsg.Node} [stencil=null]
*
* @property {Number} alphaThreshold - Threshold for alpha value.
* @property {Boolean} inverted - Indicate whether in inverted mode.
- * @property {cc.Node} stencil - he cc.Node to use as a stencil to do the clipping.
+ * @property {_ccsg.Node} stencil - he ccsg.Node to use as a stencil to do the clipping.
*/
-cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
+cc.ClippingNode = _ccsg.Node.extend(/** @lends cc.ClippingNode# */{
alphaThreshold: 0,
inverted: false,
@@ -55,11 +55,11 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
/**
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
- * @param {cc.Node} [stencil=null]
+ * @param {_ccsg.Node} [stencil=null]
*/
ctor: function (stencil) {
stencil = stencil || null;
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._stencil = stencil;
this.alphaThreshold = 1;
this.inverted = false;
@@ -69,7 +69,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
/**
* Initialization of the node, please do not call this function by yourself, you should pass the parameters to constructor to initialize it.
* @function
- * @param {cc.Node} [stencil=null]
+ * @param {_ccsg.Node} [stencil=null]
*/
init: function (stencil) {
this._stencil = stencil;
@@ -89,7 +89,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
* @function
*/
onEnter: function () {
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
this._stencil.onEnter();
},
@@ -102,7 +102,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
* @function
*/
onEnterTransitionDidFinish: function () {
- cc.Node.prototype.onEnterTransitionDidFinish.call(this);
+ _ccsg.Node.prototype.onEnterTransitionDidFinish.call(this);
this._stencil.onEnterTransitionDidFinish();
},
@@ -116,7 +116,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
*/
onExitTransitionDidStart: function () {
this._stencil.onExitTransitionDidStart();
- cc.Node.prototype.onExitTransitionDidStart.call(this);
+ _ccsg.Node.prototype.onExitTransitionDidStart.call(this);
},
/**
@@ -130,7 +130,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
*/
onExit: function () {
this._stencil.onExit();
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
},
/**
@@ -175,9 +175,9 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
},
/**
- * The cc.Node to use as a stencil to do the clipping.
+ * The ccsg.Node to use as a stencil to do the clipping.
* The stencil node will be retained. This default to nil.
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getStencil: function () {
return this._stencil;
@@ -186,7 +186,7 @@ cc.ClippingNode = cc.Node.extend(/** @lends cc.ClippingNode# */{
/**
* Set stencil.
* @function
- * @param {cc.Node} stencil
+ * @param {_ccsg.Node} stencil
*/
setStencil: function (stencil) {
if(this._stencil === stencil)
@@ -213,7 +213,7 @@ _p.stencil;
* Creates and initializes a clipping node with an other node as its stencil.
* The stencil node will be retained.
* @deprecated since v3.0, please use "new cc.ClippingNode(stencil)" instead
- * @param {cc.Node} [stencil=null]
+ * @param {_ccsg.Node} [stencil=null]
* @return {cc.ClippingNode}
* @example
* //example
diff --git a/cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js b/cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js
index 5c60928ab0..a066168d2e 100644
--- a/cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js
+++ b/cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js
@@ -25,7 +25,7 @@
//-------------------------- ClippingNode's canvas render cmd --------------------------------
(function(){
cc.ClippingNode.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = false;
this._godhelpme = false;
@@ -35,7 +35,7 @@
this._rendererClipCmd = new cc.CustomRenderCmd(this, this._clipCmdCallback);
this._rendererRestoreCmd = new cc.CustomRenderCmd(this, this._restoreCmdCallback);
};
- var proto = cc.ClippingNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ClippingNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.ClippingNode.CanvasRenderCmd;
proto.initStencilBits = function(){};
@@ -147,7 +147,7 @@
};
proto.transform = function(parentCmd, recursive){
- cc.Node.CanvasRenderCmd.prototype.transform.call(this, parentCmd, recursive);
+ _ccsg.Node.CanvasRenderCmd.prototype.transform.call(this, parentCmd, recursive);
var node = this._node;
if(node._stencil && node._stencil._renderCmd)
node._stencil._renderCmd.transform(this, recursive);
@@ -174,7 +174,7 @@
this._clipElemType = !(!this._cangodhelpme() && node._stencil instanceof cc.DrawNode);
if (!node._stencil || !node._stencil.visible) {
if (this.inverted)
- cc.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd); // draw everything
+ _ccsg.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd); // draw everything
return;
}
@@ -182,7 +182,7 @@
cc.renderer.pushRenderCommand(this._rendererSaveCmd);
if(this._clipElemType){
// Draw everything first using node visit function
- cc.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd);
+ _ccsg.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd);
}else{
node._stencil.visit(this);
}
diff --git a/cocos2d/clipping-nodes/CCClippingNodeWebGLRenderCmd.js b/cocos2d/clipping-nodes/CCClippingNodeWebGLRenderCmd.js
index 0e199ff3b7..ce237ccfc1 100644
--- a/cocos2d/clipping-nodes/CCClippingNodeWebGLRenderCmd.js
+++ b/cocos2d/clipping-nodes/CCClippingNodeWebGLRenderCmd.js
@@ -25,7 +25,7 @@
// ------------------------------- ClippingNode's WebGL render cmd ------------------------------
(function(){
cc.ClippingNode.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = false;
this._beforeVisitCmd = new cc.CustomRenderCmd(this, this._onBeforeVisit);
@@ -44,7 +44,7 @@
this._mask_layer_le = null;
};
- var proto = cc.ClippingNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ClippingNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.ClippingNode.WebGLRenderCmd;
cc.ClippingNode.WebGLRenderCmd._init_once = null;
@@ -64,7 +64,7 @@
proto.transform = function(parentCmd, recursive){
var node = this._node;
- cc.Node.WebGLRenderCmd.prototype.transform.call(this, parentCmd, recursive);
+ _ccsg.Node.WebGLRenderCmd.prototype.transform.call(this, parentCmd, recursive);
if(node._stencil)
node._stencil._renderCmd.transform(this, recursive);
};
@@ -81,13 +81,13 @@
// if stencil buffer disabled
if (cc.stencilBits < 1) {
// draw everything, as if there where no stencil
- cc.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd);
+ _ccsg.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd);
return;
}
if (!node._stencil || !node._stencil.visible) {
if (node.inverted)
- cc.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd); // draw everything
+ _ccsg.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd); // draw everything
return;
}
@@ -98,7 +98,7 @@
cc.ClippingNode.WebGLRenderCmd._visit_once = false;
}
// draw everything, as if there where no stencil
- cc.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd);
+ _ccsg.Node.WebGLRenderCmd.prototype.visit.call(this, parentCmd);
return;
}
diff --git a/cocos2d/core/CCActionManager.js b/cocos2d/core/CCActionManager.js
index e846efb701..cc85b48fb1 100644
--- a/cocos2d/core/CCActionManager.js
+++ b/cocos2d/core/CCActionManager.js
@@ -91,7 +91,7 @@ cc.ActionManager = cc._Class.extend(/** @lends cc.ActionManager# */{
* If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.
* When the target is paused, the queued actions won't be 'ticked'.
* @param {cc.Action} action
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {Boolean} paused
*/
addAction:function (action, target, paused) {
diff --git a/cocos2d/core/CCDirectorWebGL.js b/cocos2d/core/CCDirectorWebGL.js
index 68f3a398ef..a2f1cdd4d0 100644
--- a/cocos2d/core/CCDirectorWebGL.js
+++ b/cocos2d/core/CCDirectorWebGL.js
@@ -62,7 +62,7 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
var recursiveChild = function(node){
if(node && node._renderCmd){
- node._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ node._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
var i, children = node._children;
for(i=0; icc.Scene is a subclass of cc.Node that is used only as an abstract concept.
- * cc.Scene and cc.Node are almost identical with the difference that users can not modify cc.Scene manually.
+ * cc.Scene is a subclass of ccsg.Node that is used only as an abstract concept.
+ * cc.Scene and ccsg.Node are almost identical with the difference that users can not modify cc.Scene manually.
*
* @class EScene
* @extends _BaseNode
@@ -36,7 +36,7 @@ cc.EScene = cc.Class({
extends: require('./utils/base-node'),
ctor: function () {
- var sgNode = this._sgNode = new cc.Scene();
+ var sgNode = this._sgNode = new _ccsg.Scene();
sgNode.setAnchorPoint(0.0, 0.0);
this._activeInHierarchy = false;
diff --git a/cocos2d/core/base-nodes/BaseNodesPropertyDefine.js b/cocos2d/core/base-nodes/BaseNodesPropertyDefine.js
index 2b2639cd89..494978932c 100644
--- a/cocos2d/core/base-nodes/BaseNodesPropertyDefine.js
+++ b/cocos2d/core/base-nodes/BaseNodesPropertyDefine.js
@@ -26,7 +26,7 @@
cc._tmp.PrototypeCCNode = function () {
- var _p = cc.Node.prototype;
+ var _p = _ccsg.Node.prototype;
cc.defineGetterSetter(_p, "x", _p.getPositionX, _p.setPositionX);
cc.defineGetterSetter(_p, "y", _p.getPositionY, _p.setPositionY);
diff --git a/cocos2d/core/base-nodes/CCAtlasNode.js b/cocos2d/core/base-nodes/CCAtlasNode.js
index e1a26020d2..97aa6fb5bd 100644
--- a/cocos2d/core/base-nodes/CCAtlasNode.js
+++ b/cocos2d/core/base-nodes/CCAtlasNode.js
@@ -27,16 +27,16 @@
EventTarget = require("../cocos2d/core/event/event-target");
/**
- * cc.AtlasNode is a subclass of cc.Node, it knows how to render a TextureAtlas object.
+ * cc.AtlasNode is a subclass of ccsg.Node, it knows how to render a TextureAtlas object.
*
* If you are going to render a TextureAtlas consider subclassing cc.AtlasNode (or a subclass of cc.AtlasNode)
*
- * All features from cc.Node are valid
+ * All features from ccsg.Node are valid
*
* You can create a cc.AtlasNode with an Atlas file, the width, the height of each item and the quantity of items to render
*
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @param {String} tile
* @param {Number} tileWidth
@@ -49,7 +49,7 @@ EventTarget = require("../cocos2d/core/event/event-target");
* @property {cc.TextureAtlas} textureAtlas - Texture atlas for cc.AtlasNode
* @property {Number} quadsToDraw - Number of quads to draw
*/
-cc.AtlasNode = cc.Node.extend(/** @lends cc.AtlasNode# */{
+cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
textureAtlas: null,
quadsToDraw: 0,
@@ -81,7 +81,7 @@ cc.AtlasNode = cc.Node.extend(/** @lends cc.AtlasNode# */{
* @param {Number} itemsToRender
*/
ctor: function (tile, tileWidth, tileHeight, itemsToRender) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._blendFunc = {src: cc.BLEND_SRC, dst: cc.BLEND_DST};
this._ignoreContentScaleFactor = false;
itemsToRender !== undefined && this.initWithTileFile(tile, tileWidth, tileHeight, itemsToRender);
@@ -111,7 +111,7 @@ cc.AtlasNode = cc.Node.extend(/** @lends cc.AtlasNode# */{
getColor: function () {
if (this._opacityModifyRGB)
return this._renderCmd._colorUnmodified;
- return cc.Node.prototype.getColor.call(this);
+ return _ccsg.Node.prototype.getColor.call(this);
},
/**
diff --git a/cocos2d/core/base-nodes/CCAtlasNodeCanvasRenderCmd.js b/cocos2d/core/base-nodes/CCAtlasNodeCanvasRenderCmd.js
index 6ab5dbd68f..65fc0cc62e 100644
--- a/cocos2d/core/base-nodes/CCAtlasNodeCanvasRenderCmd.js
+++ b/cocos2d/core/base-nodes/CCAtlasNodeCanvasRenderCmd.js
@@ -27,13 +27,13 @@
*/
(function(){
cc.AtlasNode.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = false;
this._colorUnmodified = cc.Color.WHITE;
this._textureToRender = null;
};
- var proto = cc.AtlasNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.AtlasNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.AtlasNode.CanvasRenderCmd;
proto.initWithTexture = function(texture, tileWidth, tileHeight, itemsToRender){
@@ -77,7 +77,7 @@
proto.setOpacity = function(opacity){
var node = this._node;
- cc.Node.prototype.setOpacity.call(node, opacity);
+ _ccsg.Node.prototype.setOpacity.call(node, opacity);
};
proto._calculateMaxItems = function(){
diff --git a/cocos2d/core/base-nodes/CCAtlasNodeWebGLRenderCmd.js b/cocos2d/core/base-nodes/CCAtlasNodeWebGLRenderCmd.js
index a811afcfab..96fb6f551f 100644
--- a/cocos2d/core/base-nodes/CCAtlasNodeWebGLRenderCmd.js
+++ b/cocos2d/core/base-nodes/CCAtlasNodeWebGLRenderCmd.js
@@ -27,7 +27,7 @@
*/
(function(){
cc.AtlasNode.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._textureAtlas = null;
this._colorUnmodified = cc.Color.WHITE;
@@ -39,7 +39,7 @@
this._uniformColor = cc._renderContext.getUniformLocation(this._shaderProgram.getProgram(), "u_color");
};
- var proto = cc.AtlasNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.AtlasNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.AtlasNode.WebGLRenderCmd;
proto._updateBlendFunc = function () {
@@ -104,12 +104,12 @@
temp.g = temp.g * locDisplayedOpacity / 255;
temp.b = temp.b * locDisplayedOpacity / 255;
}
- cc.Node.prototype.setColor.call(node, temp);
+ _ccsg.Node.prototype.setColor.call(node, temp);
};
proto.setOpacity = function(opacity){
var node = this._node;
- cc.Node.prototype.setOpacity.call(node, opacity);
+ _ccsg.Node.prototype.setOpacity.call(node, opacity);
// special opacity for premultiplied textures
if (node._opacityModifyRGB) {
node.color = this._colorUnmodified;
diff --git a/cocos2d/core/base-nodes/CCNode.js b/cocos2d/core/base-nodes/CCNode.js
index 44ca87ae94..9175fb3846 100644
--- a/cocos2d/core/base-nodes/CCNode.js
+++ b/cocos2d/core/base-nodes/CCNode.js
@@ -37,21 +37,21 @@ cc.NODE_TAG_INVALID = -1;
cc.s_globalOrderOfArrival = 1;
/**
- * cc.Node is the root class of all node. Anything that gets drawn or contains things that get drawn is a cc.Node.
- * The most popular cc.Nodes are: cc.Scene, cc.Layer, cc.Sprite, cc.Menu.
+ * ccsg.Node is the root class of all node. Anything that gets drawn or contains things that get drawn is a ccsg.Node.
+ * The most popular ccsg.Nodes are: ccsg.Scene, cc.Layer, cc.Sprite, cc.Menu.
*
- * The main features of a cc.Node are:
- * - They can contain other cc.Node nodes (addChild, getChildByTag, removeChild, etc)
+ *
The main features of a ccsg.Node are:
+ * - They can contain other ccsg.Node nodes (addChild, getChildByTag, removeChild, etc)
* - They can schedule periodic callback (schedule, unschedule, etc)
* - They can execute actions (runAction, stopAction, etc)
*
- * Some cc.Node nodes provide extra functionality for them or their children.
+ * Some ccsg.Node nodes provide extra functionality for them or their children.
*
- * Subclassing a cc.Node usually means (one/all) of:
+ *
Subclassing a ccsg.Node usually means (one/all) of:
* - overriding constructor function "ctor" to initialize resources and schedule callbacks
* - create callbacks to handle the advancement of time
*
- * Features of cc.Node:
+ *
Features of ccsg.Node:
* - position
* - scale (x, y)
* - rotation (in degrees, clockwise)
@@ -73,7 +73,7 @@ cc.s_globalOrderOfArrival = 1;
* - opacity: 255
*
* Limitations:
- * - A cc.Node is a "void" object. It doesn't have a texture
+ * - A ccsg.Node is a "void" object. It doesn't have a texture
*
* Order in transformations with grid disabled
* -# The node will be translated (position)
@@ -116,7 +116,7 @@ cc.s_globalOrderOfArrival = 1;
* @property {Boolean} cascadeOpacity - Indicate whether node's opacity value affect its child nodes, default value is false
* @property {Array} children - <@readonly> All children nodes
* @property {Number} childrenCount - <@readonly> Number of children
- * @property {cc.Node} parent - Parent node
+ * @property {_ccsg.Node} parent - Parent node
* @property {Boolean} running - <@readonly> Indicate whether node is running or not
* @property {Number} tag - Tag of node
* @property {Number} arrivalOrder - The arrival order, indicates which children is added previously
@@ -125,8 +125,8 @@ cc.s_globalOrderOfArrival = 1;
* @property {Number} glServerState - The state of OpenGL server side
* @property {cc.Scheduler} scheduler - cc.Scheduler used to schedule all "updates" and timers
*/
-cc.Node = cc.Class(/** @lends cc.Node# */{
- name: 'cc._Node',
+_ccsg.Node = cc.Class(/** @lends _ccsg.Node# */{
+ name: 'ccsg.Node',
properties: {
_localZOrder: 0, ///< Local order (relative to its siblings) used to sort the node
@@ -180,7 +180,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
},
/**
- * Initializes the instance of cc.Node
+ * Initializes the instance of ccsg.Node
* @function
* @returns {boolean} Whether the initialization was successful.
*/
@@ -194,7 +194,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
return;
var i, len = array.length, node;
- var nodeCallbackType = cc.Node._stateCallbackType;
+ var nodeCallbackType = _ccsg.Node._stateCallbackType;
switch (callbackType) {
case nodeCallbackType.onEnter:
for (i = 0; i < len; i++) {
@@ -293,7 +293,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setSkewX: function (newSkewX) {
this._skewX = newSkewX;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -323,7 +323,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setSkewY: function (newSkewY) {
this._skewY = newSkewY;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -472,7 +472,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setRotation: function (newRotation) {
this._rotationX = this._rotationY = newRotation;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -497,7 +497,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setRotationX: function (rotationX) {
this._rotationX = rotationX;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -522,7 +522,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setRotationY: function (rotationY) {
this._rotationY = rotationY;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -546,7 +546,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
setScale: function (scale, scaleY) {
this._scaleX = scale;
this._scaleY = (scaleY || scaleY === 0) ? scaleY : scale;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -568,7 +568,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setScaleX: function (newScaleX) {
this._scaleX = newScaleX;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -590,7 +590,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setScaleY: function (newScaleY) {
this._scaleY = newScaleY;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -620,7 +620,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
locPosition.x = newPosOrxValue;
locPosition.y = yValue;
}
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -648,7 +648,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setPositionX: function (x) {
this._position.x = x;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -667,7 +667,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setPositionY: function (y) {
this._position.y = y;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -698,7 +698,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Returns if the node is visible
* @function
- * @see cc.Node#setVisible
+ * @see _ccsg.Node#setVisible
* @return {Boolean} true if the node is visible, false if the node is hidden.
*/
isVisible: function () {
@@ -715,7 +715,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
if(this._visible !== visible){
this._visible = visible;
//if(visible)
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
cc.renderer.childrenOrderDirty = true;
}
},
@@ -784,7 +784,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Returns a copy of the anchor point in absolute pixels.
* you can only read it. If you wish to modify it, use setAnchorPoint
- * @see cc.Node#getAnchorPoint
+ * @see _ccsg.Node#getAnchorPoint
* @function
* @return {cc.Vec2} The anchor point in absolute pixels.
*/
@@ -860,7 +860,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Returns a reference to the parent node
* @function
- * @return {cc.Node} A reference to the parent node
+ * @return {_ccsg.Node} A reference to the parent node
*/
getParent: function () {
return this._parent;
@@ -868,7 +868,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Sets the parent node
- * @param {cc.Node} parent A reference to the parent node
+ * @param {_ccsg.Node} parent A reference to the parent node
*/
setParent: function (parent) {
this._parent = parent;
@@ -878,7 +878,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* Returns whether the anchor point will be ignored when you position this node.
* When anchor point ignored, position will be calculated based on the origin point (0, 0) in parent's coordinates.
* @function
- * @see cc.Node#ignoreAnchorPointForPosition
+ * @see _ccsg.Node#ignoreAnchorPointForPosition
* @return {Boolean} true if the anchor point will be ignored when you position this node.
*/
isIgnoreAnchorPointForPosition: function () {
@@ -898,7 +898,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
ignoreAnchorPointForPosition: function (newValue) {
if (newValue !== this._ignoreAnchorPointForPosition) {
this._ignoreAnchorPointForPosition = newValue;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
}
},
@@ -936,7 +936,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* Changes the tag that is used to identify the node easily.
* Please refer to getTag for the sample code.
* @function
- * @see cc.Node#getTag
+ * @see _ccsg.Node#getTag
* @param {Number} tag A integer that identifies the node.
*/
setTag: function (tag) {
@@ -989,7 +989,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*
Returns the CCActionManager object that is used by all actions.
* (IMPORTANT: If you set a new cc.ActionManager, then previously created actions are going to be removed.)
* @function
- * @see cc.Node#setActionManager
+ * @see _ccsg.Node#setActionManager
* @return {cc.ActionManager} A CCActionManager object.
*/
getActionManager: function () {
@@ -1074,7 +1074,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
cc.eventManager.removeListeners(this);
// timers
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.cleanup);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.cleanup);
},
// composition: GET
@@ -1082,7 +1082,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* Returns a child from the container given its tag
* @function
* @param {Number} aTag An identifier to find the child node.
- * @return {cc.Node} a CCNode object whose tag equals to the input parameter
+ * @return {_ccsg.Node} a CCNode object whose tag equals to the input parameter
*/
getChildByTag: function (aTag) {
var __children = this._children;
@@ -1100,7 +1100,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* Returns a child from the container given its name
* @function
* @param {String} name A name to find the child node.
- * @return {cc.Node} a CCNode object whose name equals to the input parameter
+ * @return {_ccsg.Node} a CCNode object whose name equals to the input parameter
*/
getChildByName: function(name){
if(!name){
@@ -1122,7 +1122,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*
* If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately.
* @function
- * @param {cc.Node} child A child node
+ * @param {_ccsg.Node} child A child node
* @param {Number} [localZOrder=] Z order for drawing priority. Please refer to setZOrder(int)
* @param {Number|String} [tag=] An integer or a name to identify the node easily. Please refer to setTag(int) and setName(string)
*/
@@ -1166,9 +1166,9 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
child.onEnterTransitionDidFinish();
}
if (this._cascadeColorEnabled)
- child._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ child._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
if (this._cascadeOpacityEnabled)
- child._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ child._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
// composition: REMOVE
@@ -1178,7 +1178,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* If the node orphan, then nothing happens.
* @function
* @param {Boolean} [cleanup=true] true if all actions and callbacks on this node should be removed, false otherwise.
- * @see cc.Node#removeFromParentAndCleanup
+ * @see _ccsg.Node#removeFromParentAndCleanup
*/
removeFromParent: function (cleanup) {
if (this._parent) {
@@ -1205,7 +1205,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* If a class wants to extend the 'removeChild' behavior it only needs
* to override this method
* @function
- * @param {cc.Node} child The child node which will be removed.
+ * @param {_ccsg.Node} child The child node which will be removed.
* @param {Boolean} [cleanup=true] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
*/
removeChild: function (child, cleanup) {
@@ -1218,7 +1218,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
if (this._children.indexOf(child) > -1)
this._detachChild(child, cleanup);
- //this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.visibleDirty);
+ //this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.visibleDirty);
cc.renderer.childrenOrderDirty = true;
},
@@ -1228,7 +1228,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* @function
* @param {Number} tag An integer number that identifies a child node
* @param {Boolean} [cleanup=true] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
- * @see cc.Node#removeChildByTag
+ * @see _ccsg.Node#removeChildByTag
*/
removeChildByTag: function (tag, cleanup) {
if (tag === cc.NODE_TAG_INVALID)
@@ -1309,13 +1309,13 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
},
setNodeDirty: function(){
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/** Reorders a child according to a new z value.
* The child MUST be already added.
* @function
- * @param {cc.Node} child An already added child node. It MUST be already added.
+ * @param {_ccsg.Node} child An already added child node. It MUST be already added.
* @param {Number} zOrder Z order for drawing priority. Please refer to setZOrder(int)
*/
reorderChild: function (child, zOrder) {
@@ -1395,7 +1395,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
onEnter: function () {
this._isTransitionFinished = false;
this._running = true;//should be running before resumeSchedule
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.onEnter);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.onEnter);
this.resume();
},
@@ -1409,23 +1409,23 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
onEnterTransitionDidFinish: function () {
this._isTransitionFinished = true;
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.onEnterTransitionDidFinish);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.onEnterTransitionDidFinish);
},
/**
- * callback that is called every time the cc.Node leaves the 'stage'.
- * If the cc.Node leaves the 'stage' with a transition, this callback is called when the transition starts.
+ *
callback that is called every time the ccsg.Node leaves the 'stage'.
+ * If the ccsg.Node leaves the 'stage' with a transition, this callback is called when the transition starts.
* If you override onExitTransitionDidStart, you shall call its parent's onExitTransitionDidStart with this._super()
* @function
*/
onExitTransitionDidStart: function () {
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.onExitTransitionDidStart);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.onExitTransitionDidStart);
},
/**
*
- * callback that is called every time the cc.Node leaves the 'stage'.
- * If the cc.Node leaves the 'stage' with a transition, this callback is called when the transition finishes.
+ * callback that is called every time the ccsg.Node leaves the 'stage'.
+ * If the ccsg.Node leaves the 'stage' with a transition, this callback is called when the transition finishes.
* During onExit you can't access a sibling node.
* If you override onExit, you shall call its parent's onExit with this._super().
*
@@ -1434,7 +1434,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
onExit: function () {
this._running = false;
this.pause();
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.onExit);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.onExit);
},
// actions
@@ -1486,7 +1486,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Returns an action from the running action list by its tag.
* @function
- * @see cc.Node#getTag and cc.Node#setTag
+ * @see _ccsg.Node#getTag and _ccsg.Node#setTag
* @param {Number} tag
* @return {cc.Action} The action object with the given tag.
*/
@@ -1509,7 +1509,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
return this.actionManager.numberOfRunningActionsInTarget(this);
},
- // cc.Node - Callbacks
+ // _ccsg.Node - Callbacks
// timers
/**
* schedules the "update" method.
@@ -1539,7 +1539,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Unschedules the "update" method.
* @function
- * @see cc.Node#scheduleUpdate
+ * @see _ccsg.Node#scheduleUpdate
*/
unscheduleUpdate: function () {
this.scheduler.unscheduleUpdate(this);
@@ -1618,7 +1618,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Schedules a callback function that runs only once, with a delay of 0 or larger
* @function
- * @see cc.Node#schedule
+ * @see _ccsg.Node#schedule
* @param {function} callback A function wrapped as a selector
* @param {Number} delay The amount of time that the first tick will wait before execution.
* @param {String} key The only string identifying the callback
@@ -1634,7 +1634,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* unschedules a custom callback function.
* @function
- * @see cc.Node#schedule
+ * @see _ccsg.Node#schedule
* @param {function} callback_fn A function wrapped as a selector
*/
unschedule: function (callback_fn) {
@@ -1751,7 +1751,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
if(additionalTransform === undefined)
return this._additionalTransformDirty = false;
this._additionalTransform = additionalTransform;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
this._additionalTransformDirty = true;
},
@@ -1894,7 +1894,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
updateTransform: function () {
// Recursively iterate over children
- this._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.updateTransform);
+ this._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.updateTransform);
},
/**
@@ -1908,7 +1908,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* you need to manually invoke release function when you think this object is no longer needed, otherwise, there will be memory learks.
* retain and release function call should be paired in developer's game code.
* @function
- * @see cc.Node#release
+ * @see _ccsg.Node#release
*/
retain: function () {
},
@@ -1923,7 +1923,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
* you need to manually invoke release function when you think this object is no longer needed, otherwise, there will be memory learks.
* retain and release function call should be paired in developer's game code.
* @function
- * @see cc.Node#retain
+ * @see _ccsg.Node#retain
*/
release: function () {
},
@@ -1931,7 +1931,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Recursive method that visit its children and draw them
* @function
- * @param {cc.Node.RenderCmd} parentCmd
+ * @param {_ccsg.Node.RenderCmd} parentCmd
*/
visit: function(parentCmd){
this._renderCmd.visit(parentCmd);
@@ -1940,7 +1940,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Performs view-matrix transformation based on position, scale, rotation and other attributes.
* @function
- * @param {cc.Node.RenderCmd} parentCmd parent's render command
+ * @param {_ccsg.Node.RenderCmd} parentCmd parent's render command
* @param {boolean} recursive whether call its children's transform
*/
transform: function(parentCmd, recursive){
@@ -2098,7 +2098,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
*/
setOpacity: function (opacity) {
this._realOpacity = opacity;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
/**
@@ -2164,7 +2164,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
locRealColor.r = color.r;
locRealColor.g = color.g;
locRealColor.b = color.b;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
},
/**
@@ -2199,7 +2199,7 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
/**
* Set whether color should be changed with the opacity value,
- * useless in cc.Node, but this function is override in some class to have such behavior.
+ * useless in ccsg.Node, but this function is override in some class to have such behavior.
* @function
* @param {Boolean} opacityValue
*/
@@ -2221,30 +2221,30 @@ cc.Node = cc.Class(/** @lends cc.Node# */{
_createRenderCmd: function(){
if(cc._renderType === cc.game.RENDER_TYPE_CANVAS)
- return new cc.Node.CanvasRenderCmd(this);
+ return new _ccsg.Node.CanvasRenderCmd(this);
else
- return new cc.Node.WebGLRenderCmd(this);
+ return new _ccsg.Node.WebGLRenderCmd(this);
}
});
-cc.Node.extend = function (options) {
- return cc._Class.extend.call(cc.Node, options);
+_ccsg.Node.extend = function (options) {
+ return cc._Class.extend.call(_ccsg.Node, options);
};
// to support calling this._super in sub class
-cc.Node.prototype.ctor = cc.Node;
+_ccsg.Node.prototype.ctor = _ccsg.Node;
/**
* Allocates and initializes a node.
* @deprecated since v3.0, please use new construction instead.
- * @see cc.Node
- * @return {cc.Node}
+ * @see _ccsg.Node
+ * @return {_ccsg.Node}
*/
-cc.Node.create = function () {
- return new cc.Node();
+_ccsg.Node.create = function () {
+ return new _ccsg.Node();
};
-cc.Node._stateCallbackType = {onEnter: 1, onExit: 2, cleanup: 3, onEnterTransitionDidFinish: 4, updateTransform: 5, onExitTransitionDidStart: 6, sortAllChildren: 7};
+_ccsg.Node._stateCallbackType = {onEnter: 1, onExit: 2, cleanup: 3, onEnterTransitionDidFinish: 4, updateTransform: 5, onExitTransitionDidStart: 6, sortAllChildren: 7};
cc.assert(cc.js.isFunction(cc._tmp.PrototypeCCNode), cc._LogInfos.MissingFile, "BaseNodesPropertyDefine.js");
cc._tmp.PrototypeCCNode();
diff --git a/cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js b/cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
index ca397e7938..dd70ccb479 100644
--- a/cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
+++ b/cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
@@ -35,11 +35,11 @@ cc.CustomRenderCmd = function (target, func) {
}
};
-cc.Node._dirtyFlags = {transformDirty: 1 << 0, visibleDirty: 1 << 1, colorDirty: 1 << 2, opacityDirty: 1 << 3, cacheDirty: 1 << 4,
+_ccsg.Node._dirtyFlags = {transformDirty: 1 << 0, visibleDirty: 1 << 1, colorDirty: 1 << 2, opacityDirty: 1 << 3, cacheDirty: 1 << 4,
orderDirty: 1 << 5, textDirty: 1 << 6, gradientDirty:1 << 7, all: (1 << 8) - 1};
//-------------------------Base -------------------------
-cc.Node.RenderCmd = function(renderable){
+_ccsg.Node.RenderCmd = function(renderable){
this._dirtyFlag = 1; //need update the transform at first.
cc.renderer.pushDirtyNode(this);
@@ -59,8 +59,8 @@ cc.Node.RenderCmd = function(renderable){
this._curLevel = -1;
};
-cc.Node.RenderCmd.prototype = {
- constructor: cc.Node.RenderCmd,
+_ccsg.Node.RenderCmd.prototype = {
+ constructor: _ccsg.Node.RenderCmd,
getAnchorPointInPoints: function(){
return cc.p(this._anchorPointInPoints);
@@ -77,16 +77,16 @@ cc.Node.RenderCmd.prototype = {
setCascadeColorEnabledDirty: function(){
this._cascadeColorEnabledDirty = true;
- this.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
},
setCascadeOpacityEnabledDirty:function(){
this._cascadeOpacityEnabledDirty = true;
- this.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
getParentToNodeTransform: function(){
- if(this._dirtyFlag & cc.Node._dirtyFlags.transformDirty)
+ if(this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty)
this._inverse = cc.affineTransformInvert(this.getNodeToParentTransform());
return this._inverse;
},
@@ -97,7 +97,7 @@ cc.Node.RenderCmd.prototype = {
var locAPP = this._anchorPointInPoints, locSize = this._node._contentSize, locAnchorPoint = this._node._anchorPoint;
locAPP.x = locSize.width * locAnchorPoint.x;
locAPP.y = locSize.height * locAnchorPoint.y;
- this.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
setDirtyFlag: function(dirtyFlag){
@@ -150,7 +150,7 @@ cc.Node.RenderCmd.prototype = {
}
}
}
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.colorDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.colorDirty ^ this._dirtyFlag;
},
_updateDisplayOpacity: function (parentOpacity) {
@@ -184,7 +184,7 @@ cc.Node.RenderCmd.prototype = {
}
}
}
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.opacityDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.opacityDirty ^ this._dirtyFlag;
},
_syncDisplayColor : function (parentColor) {
@@ -215,7 +215,7 @@ cc.Node.RenderCmd.prototype = {
_updateColor: function(){},
updateStatus: function () {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
if(colorDirty)
@@ -230,13 +230,13 @@ cc.Node.RenderCmd.prototype = {
if(locFlag & flags.transformDirty){
//update the transform
this.transform(this.getParentRenderCmd(), true);
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
}
},
getNodeToParentTransform: function () {
var node = this._node;
- if (this._dirtyFlag & cc.Node._dirtyFlags.transformDirty) {
+ if (this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty) {
var t = this._transform;// quick reference
// base position
@@ -316,7 +316,7 @@ cc.Node.RenderCmd.prototype = {
_syncStatus: function (parentCmd) {
// In the visit logic does not restore the _dirtyFlag
// Because child elements need parent's _dirtyFlag to change himself
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
// There is a possibility:
@@ -383,16 +383,16 @@ cc.Node.RenderCmd.prototype = {
//-----------------------Canvas ---------------------------
(function() {
-//The cc.Node's render command for Canvas
- cc.Node.CanvasRenderCmd = function (renderable) {
- cc.Node.RenderCmd.call(this, renderable);
+//The _ccsg.Node's render command for Canvas
+ _ccsg.Node.CanvasRenderCmd = function (renderable) {
+ _ccsg.Node.RenderCmd.call(this, renderable);
this._cachedParent = null;
this._cacheDirty = false;
};
- var proto = cc.Node.CanvasRenderCmd.prototype = Object.create(cc.Node.RenderCmd.prototype);
- proto.constructor = cc.Node.CanvasRenderCmd;
+ var proto = _ccsg.Node.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.RenderCmd.prototype);
+ proto.constructor = _ccsg.Node.CanvasRenderCmd;
proto.transform = function (parentCmd, recursive) {
// transform for canvas
@@ -442,7 +442,7 @@ cc.Node.RenderCmd.prototype = {
};
proto.setDirtyFlag = function (dirtyFlag, child) {
- cc.Node.RenderCmd.prototype.setDirtyFlag.call(this, dirtyFlag, child);
+ _ccsg.Node.RenderCmd.prototype.setDirtyFlag.call(this, dirtyFlag, child);
this._setCacheDirty(child); //TODO it should remove from here.
if(this._cachedParent)
this._cachedParent.setDirtyFlag(dirtyFlag, true);
@@ -485,7 +485,7 @@ cc.Node.RenderCmd.prototype = {
};
//util functions
- cc.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc = function (blendFunc) {
+ _ccsg.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc = function (blendFunc) {
if (!blendFunc)
return "source-over";
else {
diff --git a/cocos2d/core/base-nodes/CCNodeWebGLRenderCmd.js b/cocos2d/core/base-nodes/CCNodeWebGLRenderCmd.js
index 8d328c644f..a3f24d95a4 100644
--- a/cocos2d/core/base-nodes/CCNodeWebGLRenderCmd.js
+++ b/cocos2d/core/base-nodes/CCNodeWebGLRenderCmd.js
@@ -21,10 +21,10 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-// ------------------------------ The cc.Node's render command for WebGL ----------------------------------
+// ------------------------------ The ccsg.Node's render command for WebGL ----------------------------------
(function() {
- cc.Node.WebGLRenderCmd = function (renderable) {
- cc.Node.RenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd = function (renderable) {
+ _ccsg.Node.RenderCmd.call(this, renderable);
var mat4 = new cc.math.Matrix4(), mat = mat4.mat;
mat[2] = mat[3] = mat[6] = mat[7] = mat[8] = mat[9] = mat[11] = mat[14] = 0.0;
@@ -36,8 +36,8 @@
this._camera = null;
};
- var proto = cc.Node.WebGLRenderCmd.prototype = Object.create(cc.Node.RenderCmd.prototype);
- proto.constructor = cc.Node.WebGLRenderCmd;
+ var proto = _ccsg.Node.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.RenderCmd.prototype);
+ proto.constructor = _ccsg.Node.WebGLRenderCmd;
proto._updateColor = function(){};
@@ -70,7 +70,7 @@
// Convert 3x3 into 4x4 matrix
var trans = this.getNodeToParentTransform();
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
var t4x4Mat = t4x4.mat;
t4x4Mat[0] = trans.a;
diff --git a/cocos2d/core/base-ui/CCWidgetManager.js b/cocos2d/core/base-ui/CCWidgetManager.js
index 1419b24469..a099e38e31 100644
--- a/cocos2d/core/base-ui/CCWidgetManager.js
+++ b/cocos2d/core/base-ui/CCWidgetManager.js
@@ -32,7 +32,7 @@ function getParentSize (parent) {
return cc.visibleRect;
}
}
- else if (!parent._sizeProvider || (parent._sizeProvider instanceof cc.Node)) {
+ else if (!parent._sizeProvider || (parent._sizeProvider instanceof _ccsg.Node)) {
return parent._contentSize;
}
else {
diff --git a/cocos2d/core/components/CCComponent.js b/cocos2d/core/components/CCComponent.js
index 4a997f13a4..82aae848b6 100644
--- a/cocos2d/core/components/CCComponent.js
+++ b/cocos2d/core/components/CCComponent.js
@@ -185,6 +185,7 @@ var Component = cc.Class({
/**
* The node this component is attached to. A component is always attached to a node.
* @property node
+ *
* @type {ENode}
*/
node: {
diff --git a/cocos2d/core/components/CCComponentInSG.js b/cocos2d/core/components/CCComponentInSG.js
index f6c7bf2d00..79e34a21a0 100644
--- a/cocos2d/core/components/CCComponentInSG.js
+++ b/cocos2d/core/components/CCComponentInSG.js
@@ -50,7 +50,7 @@ var ComponentInSG = cc.Class({
* You should call the setContentSize of the SGNode if its size should be the same with the node's.
*
* @method _createSgNode
- * @return {cc.Node}
+ * @return {_ccsg.Node}
* @private
*/
_createSgNode: null,
diff --git a/cocos2d/core/event-manager/CCEventListener.js b/cocos2d/core/event-manager/CCEventListener.js
index 4b2e6797ae..0d966a8419 100644
--- a/cocos2d/core/event-manager/CCEventListener.js
+++ b/cocos2d/core/event-manager/CCEventListener.js
@@ -142,7 +142,7 @@ cc.EventListener = cc._Class.extend(/** @lends cc.EventListener# */{
/**
* Sets scene graph priority for this listener
- * @param {cc.Node|cc.ENode} node
+ * @param {_ccsg.Node|cc.ENode} node
* @private
*/
_setSceneGraphPriority: function (node) {
@@ -162,7 +162,7 @@ cc.EventListener = cc._Class.extend(/** @lends cc.EventListener# */{
/**
* Gets scene graph priority of this listener
- * @returns {cc.Node|cc.ENode} if it's a fixed priority listener, non-null for scene graph priority listener
+ * @returns {_ccsg.Node|cc.ENode} if it's a fixed priority listener, non-null for scene graph priority listener
* @private
*/
_getSceneGraphPriority: function () {
diff --git a/cocos2d/core/event-manager/CCEventManager.js b/cocos2d/core/event-manager/CCEventManager.js
index 926b05ff65..4d73cd3ba6 100644
--- a/cocos2d/core/event-manager/CCEventManager.js
+++ b/cocos2d/core/event-manager/CCEventManager.js
@@ -799,7 +799,7 @@ cc.eventManager = /** @lends cc.eventManager# */{
*/
removeListeners: function (listenerType, recursive) {
var _t = this;
- if (listenerType instanceof cc.Node) {
+ if (listenerType instanceof _ccsg.Node) {
// Ensure the node is removed from these immediately also.
// Don't want any dangling pointers or the possibility of dealing with deleted objects..
delete _t._nodePriorityMap[listenerType.__instanceId];
diff --git a/cocos2d/core/labelttf/CCLabelTTF.js b/cocos2d/core/labelttf/CCLabelTTF.js
index 47722a4dd6..3d475c5fc6 100644
--- a/cocos2d/core/labelttf/CCLabelTTF.js
+++ b/cocos2d/core/labelttf/CCLabelTTF.js
@@ -140,7 +140,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
_setUpdateTextureDirty: function () {
this._needUpdateTexture = true;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.textDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.textDirty);
},
ctor: function (text, fontName, fontSize, dimensions, hAlignment, vAlignment) {
@@ -531,7 +531,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
if (mustUpdateTexture)
this._renderCmd._updateTexture();
- var flags = cc.Node._dirtyFlags;
+ var flags = _ccsg.Node._dirtyFlags;
this._renderCmd.setDirtyFlag(flags.colorDirty|flags.opacityDirty|flags.textDirty);
},
@@ -592,7 +592,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
// Force update
this._setUpdateTextureDirty();
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
}
},
_updateString: function () {
diff --git a/cocos2d/core/labelttf/CCLabelTTFCanvasRenderCmd.js b/cocos2d/core/labelttf/CCLabelTTFCanvasRenderCmd.js
index ae672a3755..21195ed493 100644
--- a/cocos2d/core/labelttf/CCLabelTTFCanvasRenderCmd.js
+++ b/cocos2d/core/labelttf/CCLabelTTFCanvasRenderCmd.js
@@ -286,7 +286,7 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçà ùêâîôû]/;
};
proto.updateStatus = function () {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
@@ -302,12 +302,12 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçà ùêâîôû]/;
if (this._dirtyFlag & flags.transformDirty){
this.transform(this.getParentRenderCmd(), true);
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
}
};
proto._syncStatus = function (parentCmd) {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
if(parentNode && parentNode._cascadeColorEnabled && (parentCmd._dirtyFlag & flags.colorDirty))
@@ -395,7 +395,7 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçà ùêâîôû]/;
proto.constructor = cc.LabelTTF.CacheRenderCmd;
proto._updateTexture = function () {
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.textDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.textDirty ^ this._dirtyFlag;
var node = this._node;
var locContentSize = node._contentSize;
this._updateTTF();
@@ -473,7 +473,7 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçà ùêâîôû]/;
};
proto._updateTexture = function () {
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.textDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.textDirty ^ this._dirtyFlag;
var node = this._node;
var locContentSize = node._contentSize;
this._updateTTF();
diff --git a/cocos2d/core/layers/CCLayer.js b/cocos2d/core/layers/CCLayer.js
index 77aaf3464f..7eec689eb6 100644
--- a/cocos2d/core/layers/CCLayer.js
+++ b/cocos2d/core/layers/CCLayer.js
@@ -24,19 +24,19 @@
THE SOFTWARE.
****************************************************************************/
-/** cc.Layer is a subclass of cc.Node that implements the TouchEventsDelegate protocol.
- * All features from cc.Node are valid, plus the bake feature: Baked layer can cache a static layer to improve performance
+/** cc.Layer is a subclass of ccsg.Node that implements the TouchEventsDelegate protocol.
+ * All features from ccsg.Node are valid, plus the bake feature: Baked layer can cache a static layer to improve performance
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*/
-cc.Layer = cc.Node.extend(/** @lends cc.Layer# */{
+cc.Layer = _ccsg.Node.extend(/** @lends cc.Layer# */{
_className: "Layer",
/**
* Constructor of cc.Layer, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
*/
ctor: function () {
- var nodep = cc.Node.prototype;
+ var nodep = _ccsg.Node.prototype;
nodep.ctor.call(this);
this._ignoreAnchorPointForPosition = true;
nodep.setAnchorPoint.call(this, 0.5, 0.5);
@@ -87,7 +87,7 @@ cc.Layer = cc.Node.extend(/** @lends cc.Layer# */{
},
addChild: function(child, localZOrder, tag){
- cc.Node.prototype.addChild.call(this, child, localZOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, child, localZOrder, tag);
this._renderCmd._bakeForAddChild(child);
},
@@ -146,7 +146,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
/**
* Changes width and height
* @deprecated since v3.0 please use setContentSize instead
- * @see cc.Node#setContentSize
+ * @see _ccsg.Node#setContentSize
* @param {Number} w width
* @param {Number} h height
*/
@@ -158,7 +158,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
/**
* Changes width in Points
* @deprecated since v3.0 please use setContentSize instead
- * @see cc.Node#setContentSize
+ * @see _ccsg.Node#setContentSize
* @param {Number} w width
*/
changeWidth: function (w) {
@@ -168,7 +168,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
/**
* change height in Points
* @deprecated since v3.0 please use setContentSize instead
- * @see cc.Node#setContentSize
+ * @see _ccsg.Node#setContentSize
* @param {Number} h height
*/
changeHeight: function (h) {
@@ -216,7 +216,7 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
locRealColor.g = color.g;
locRealColor.b = color.b;
this._realOpacity = color.a;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty|cc.Node._dirtyFlags.opacityDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty|_ccsg.Node._dirtyFlags.opacityDirty);
cc.LayerColor.prototype.setContentSize.call(this, width, height);
return true;
@@ -240,12 +240,12 @@ cc.LayerColor = cc.Layer.extend(/** @lends cc.LayerColor# */{
},
_setWidth: function(width){
- cc.Node.prototype._setWidth.call(this, width);
+ _ccsg.Node.prototype._setWidth.call(this, width);
this._renderCmd._updateSquareVerticesWidth(width);
},
_setHeight: function(height){
- cc.Node.prototype._setHeight.call(this, height);
+ _ccsg.Node.prototype._setHeight.call(this, height);
this._renderCmd._updateSquareVerticesHeight(height);
},
@@ -384,7 +384,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
_t._compressedInterpolation = true;
cc.LayerColor.prototype.init.call(_t, cc.color(start.r, start.g, start.b, 255));
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty|cc.Node._dirtyFlags.opacityDirty|cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty|_ccsg.Node._dirtyFlags.opacityDirty|_ccsg.Node._dirtyFlags.gradientDirty);
return true;
},
@@ -395,16 +395,16 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
*/
setContentSize: function (size, height) {
cc.LayerColor.prototype.setContentSize.call(this, size, height);
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.gradientDirty);
},
_setWidth: function (width) {
cc.LayerColor.prototype._setWidth.call(this, width);
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.gradientDirty);
},
_setHeight: function (height) {
cc.LayerColor.prototype._setHeight.call(this, height);
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.gradientDirty);
},
/**
@@ -456,7 +456,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
selColor.g = color.g;
selColor.b = color.b;
}
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
},
/**
@@ -477,7 +477,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
var stops = this._colorStops;
if(stops && stops.length > 0)
stops[0].color.a = o;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
/**
@@ -497,7 +497,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
var stops = this._colorStops;
if(stops && stops.length > 0)
stops[stops.length -1].color.a = o;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
/**
@@ -515,7 +515,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
setVector: function (Var) {
this._alongVector.x = Var.x;
this._alongVector.y = Var.y;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.gradientDirty);
},
/**
@@ -540,7 +540,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
*/
setCompressedInterpolation: function (compress) {
this._compressedInterpolation = compress;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.gradientDirty);
},
/**
@@ -570,7 +570,7 @@ cc.LayerGradient = cc.LayerColor.extend(/** @lends cc.LayerGradient# */{
setColorStops: function(colorStops){
this._colorStops = colorStops;
//todo need update the start color and end color
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty|cc.Node._dirtyFlags.opacityDirty|cc.Node._dirtyFlags.gradientDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty|_ccsg.Node._dirtyFlags.opacityDirty|_ccsg.Node._dirtyFlags.gradientDirty);
},
_createRenderCmd: function(){
diff --git a/cocos2d/core/layers/CCLayerCanvasRenderCmd.js b/cocos2d/core/layers/CCLayerCanvasRenderCmd.js
index ddb802e489..8909b51db5 100644
--- a/cocos2d/core/layers/CCLayerCanvasRenderCmd.js
+++ b/cocos2d/core/layers/CCLayerCanvasRenderCmd.js
@@ -34,13 +34,13 @@
(function(){
//Layer's canvas render command
cc.Layer.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._isBaked = false;
this._bakeSprite = null;
this._updateCache = 2; // 2: Updated child visit 1: Rendering 0: Nothing to do
};
- var proto = cc.Layer.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.Layer.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.Layer.CanvasRenderCmd;
proto._setCacheDirty = function(child){
@@ -56,7 +56,7 @@
proto.transform = function (parentCmd, recursive) {
var wt = this._worldTransform;
var a = wt.a, b = wt.b, c = wt.c, d = wt.d, tx = wt.tx, ty = wt.ty;
- cc.Node.CanvasRenderCmd.prototype.transform.call(this, parentCmd, recursive);
+ _ccsg.Node.CanvasRenderCmd.prototype.transform.call(this, parentCmd, recursive);
if(( wt.a !== a || wt.b !== b || wt.c !== c || wt.d !== d ) && this._updateCache === 0)
this._updateCache = 2;
};
@@ -137,7 +137,7 @@
proto.visit = function(parentCmd){
if(!this._isBaked){
- cc.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd);
+ _ccsg.Node.CanvasRenderCmd.prototype.visit.call(this, parentCmd);
return;
}
@@ -230,7 +230,7 @@
};
proto.updateBlendFunc = function(blendFunc){
- this._blendFuncStr = cc.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(blendFunc);
+ this._blendFuncStr = _ccsg.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(blendFunc);
};
proto._updateSquareVertices =
@@ -289,7 +289,7 @@
proto.visit = function(parentCmd){
if(!this._isBaked){
- cc.Node.CanvasRenderCmd.prototype.visit.call(this);
+ _ccsg.Node.CanvasRenderCmd.prototype.visit.call(this);
return;
}
@@ -303,7 +303,7 @@
cc.renderer.pushRenderCommand(this._bakeRenderCmd);
//the bakeSprite is drawing
- this._bakeSprite._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._bakeSprite._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
this._bakeSprite.visit(this);
this._dirtyFlag = 0;
};
@@ -334,7 +334,7 @@
(function () {
cc.LayerGradient.RenderCmd = {
updateStatus: function () {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
if(colorDirty)
@@ -402,7 +402,7 @@
};
proto._syncStatus = function (parentCmd) {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
if(parentNode && parentNode._cascadeColorEnabled && (parentCmd._dirtyFlag & flags.colorDirty))
@@ -439,7 +439,7 @@
var node = this._node;
var contentSize = node._contentSize;
var tWidth = contentSize.width * 0.5, tHeight = contentSize.height * 0.5;
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.gradientDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.gradientDirty ^ this._dirtyFlag;
//fix the bug of gradient layer
var angle = cc.pAngleSigned(cc.p(0, -1), node._alongVector);
diff --git a/cocos2d/core/layers/CCLayerWebGLRenderCmd.js b/cocos2d/core/layers/CCLayerWebGLRenderCmd.js
index 02bc6f0b51..d7647b7f18 100644
--- a/cocos2d/core/layers/CCLayerWebGLRenderCmd.js
+++ b/cocos2d/core/layers/CCLayerWebGLRenderCmd.js
@@ -33,10 +33,10 @@
*/
(function(){
cc.Layer.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
};
- var proto = cc.Layer.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.Layer.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.Layer.WebGLRenderCmd;
proto.bake = function(){};
@@ -168,7 +168,7 @@
proto.constructor = cc.LayerGradient.WebGLRenderCmd;
proto._syncStatus = function (parentCmd) {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
if(parentNode && parentNode._cascadeColorEnabled && (parentCmd._dirtyFlag & flags.colorDirty))
@@ -202,7 +202,7 @@
};
proto._updateColor = function(){
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.gradientDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.gradientDirty ^ this._dirtyFlag;
var node = this._node, stops = node._colorStops;
if(!stops || stops.length < 2)
return;
diff --git a/cocos2d/core/platform/CCConfig.js b/cocos2d/core/platform/CCConfig.js
index 34796dfd64..6edf71f250 100644
--- a/cocos2d/core/platform/CCConfig.js
+++ b/cocos2d/core/platform/CCConfig.js
@@ -82,7 +82,7 @@ cc.DIRECTOR_FPS_INTERVAL = 0.5;
/**
*
- * If enabled, the cc.Node objects (cc.Sprite, cc.Label,etc) will be able to render in subpixels.
+ * If enabled, the ccsg.Node objects (cc.Sprite, cc.Label,etc) will be able to render in subpixels.
* If disabled, integer pixels will be used.
*
* To enable set it to 1. Enabled by default.
diff --git a/cocos2d/core/platform/_CCClass.js b/cocos2d/core/platform/_CCClass.js
index a69d303c33..4746f152e3 100644
--- a/cocos2d/core/platform/_CCClass.js
+++ b/cocos2d/core/platform/_CCClass.js
@@ -205,7 +205,7 @@ cc.clone = function (obj) {
var copy = obj[key];
// Beware that typeof null == "object" !
if (((typeof copy) === "object") && copy &&
- !(copy instanceof cc.Node) && !(copy instanceof HTMLElement)) {
+ !(copy instanceof _ccsg.Node) && !(copy instanceof HTMLElement)) {
newObj[key] = cc.clone(copy);
} else {
newObj[key] = copy;
diff --git a/cocos2d/core/scenes/CCLoaderScene.js b/cocos2d/core/scenes/CCLoaderScene.js
index 646fcdae76..debc26f5dc 100644
--- a/cocos2d/core/scenes/CCLoaderScene.js
+++ b/cocos2d/core/scenes/CCLoaderScene.js
@@ -26,11 +26,11 @@
*
cc.LoaderScene is a scene that you can load it when you loading files
* cc.LoaderScene can present thedownload progress
* @class
- * @extends cc.Scene
+ * @extends _ccsg.Scene
* @example
* var lc = new cc.LoaderScene();
*/
-cc.LoaderScene = cc.Scene.extend({
+cc.LoaderScene = _ccsg.Scene.extend({
_interval : null,
_label : null,
_className:"LoaderScene",
@@ -88,7 +88,7 @@ cc.LoaderScene = cc.Scene.extend({
*/
onEnter: function () {
var self = this;
- cc.Node.prototype.onEnter.call(self);
+ _ccsg.Node.prototype.onEnter.call(self);
self.schedule(self._startLoading, 0.3);
this._onProjectionChange = function(){
self._updateTransform();
@@ -100,7 +100,7 @@ cc.LoaderScene = cc.Scene.extend({
*/
onExit: function () {
cc.director.off(cc.Director.EVENT_PROJECTION_CHANGED, this._onProjectionChange);
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
var tmpStr = "Loading... 0%";
this._label.setString(tmpStr);
},
@@ -135,10 +135,10 @@ cc.LoaderScene = cc.Scene.extend({
},
_updateTransform: function(){
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
- this._bgLayer._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
- this._label._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
- this._logo._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
+ this._bgLayer._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
+ this._label._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
+ this._logo._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
}
});
/**
diff --git a/cocos2d/core/scenes/CCScene.js b/cocos2d/core/scenes/CCScene.js
index 61cdd1280b..6d8f27e06e 100644
--- a/cocos2d/core/scenes/CCScene.js
+++ b/cocos2d/core/scenes/CCScene.js
@@ -26,26 +26,26 @@
/**
- * cc.Scene is a subclass of cc.Node that is used only as an abstract concept.
- * cc.Scene and cc.Node are almost identical with the difference that cc.Scene has it's
+ *
ccsg.Scene is a subclass of ccsg.Node that is used only as an abstract concept.
+ * ccsg.Scene and ccsg.Node are almost identical with the difference that ccsg.Scene has it's
* anchor point (by default) at the center of the screen.
*
- * For the moment cc.Scene has no other logic than that, but in future releases it might have
+ *
For the moment ccsg.Scene has no other logic than that, but in future releases it might have
* additional logic.
*
- * It is a good practice to use and cc.Scene as the parent of all your nodes.
+ * It is a good practice to use and ccsg.Scene as the parent of all your nodes.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
* @example
- * var scene = new cc.Scene();
+ * var scene = new _ccsg.Scene();
*/
-cc.Scene = cc.Node.extend(/** @lends cc.Scene# */{
+_ccsg.Scene = _ccsg.Node.extend(/** @lends _ccsg.Scene# */{
/**
- * Constructor of cc.Scene
+ * Constructor of _ccsg.Scene
*/
_className:"Scene",
ctor:function () {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._ignoreAnchorPointForPosition = true;
this.setAnchorPoint(0.5, 0.5);
this.setContentSize(cc.director.getWinSize());
@@ -54,9 +54,9 @@ cc.Scene = cc.Node.extend(/** @lends cc.Scene# */{
/**
* creates a scene
- * @deprecated since v3.0,please use new cc.Scene() instead.
- * @return {cc.Scene}
+ * @deprecated since v3.0,please use new _ccsg.Scene() instead.
+ * @return {_ccsg.Scene}
*/
-cc.Scene.create = function () {
- return new cc.Scene();
+_ccsg.Scene.create = function () {
+ return new _ccsg.Scene();
};
diff --git a/cocos2d/core/sprites/CCSprite.js b/cocos2d/core/sprites/CCSprite.js
index 9d2713c239..b798b250bf 100644
--- a/cocos2d/core/sprites/CCSprite.js
+++ b/cocos2d/core/sprites/CCSprite.js
@@ -42,14 +42,14 @@ var EventTarget = require("../cocos2d/core/event/event-target");
* - The Blending function property belongs to CCSpriteBatchNode, so you can't individually set the blending function property.
* - Parallax scroller is not supported, but can be simulated with a "proxy" sprite.
*
- * If the parent is an standard cc.Node, then cc.Sprite behaves like any other cc.Node:
+ * If the parent is an standard ccsg.Node, then cc.Sprite behaves like any other ccsg.Node:
* - It supports blending functions
* - It supports aliasing / antialiasing
* - But the rendering will be slower: 1 draw per children.
*
* The default anchorPoint in cc.Sprite is (0.5, 0.5).
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @param {String|cc.SpriteFrame|HTMLImageElement|cc.Texture2D} fileName The string which indicates a path to image file, e.g., "scene1/monster.png".
* @param {cc.Rect} rect Only the contents inside rect of pszFileName's texture will be applied for this sprite.
@@ -85,7 +85,7 @@ var EventTarget = require("../cocos2d/core/event/event-target");
* @property {cc.SpriteBatchNode} batchNode - The batch node object if this sprite is rendered by cc.SpriteBatchNode.
* @property {cc.V3F_C4B_T2F_Quad} quad - <@readonly> The quad (tex coords, vertex coords and color) information.
*/
-cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
+cc.Sprite = _ccsg.Node.extend(/** @lends cc.Sprite# */{
dirty:false,
atlasIndex:0,
textureAtlas:null,
@@ -124,7 +124,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
ctor: function (fileName, rect, rotated) {
var self = this;
- cc.Node.prototype.ctor.call(self);
+ _ccsg.Node.prototype.ctor.call(self);
self._shouldBeHidden = false;
self._offsetPosition = cc.p(0, 0);
self._unflippedOffsetPositionFromCenter = cc.p(0, 0);
@@ -337,7 +337,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
}
if (this._batchNode) {
- this._arrayMakeObjectsPerformSelector(_children, cc.Node._stateCallbackType.sortAllChildren);
+ this._arrayMakeObjectsPerformSelector(_children, _ccsg.Node._stateCallbackType.sortAllChildren);
}
//don't need to check children recursively, that's done in visit of each child
@@ -347,8 +347,8 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
},
/**
- * Reorders a child according to a new z value. (override cc.Node )
- * @param {cc.Node} child
+ * Reorders a child according to a new z value. (override ccsg.Node )
+ * @param {_ccsg.Node} child
* @param {Number} zOrder
* @override
*/
@@ -366,7 +366,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
this._setReorderChildDirtyRecursively();
this._batchNode.reorderBatch(true);
}
- cc.Node.prototype.reorderChild.call(this, child, zOrder);
+ _ccsg.Node.prototype.reorderChild.call(this, child, zOrder);
},
/**
@@ -378,7 +378,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
removeChild:function (child, cleanup) {
if (this._batchNode)
this._batchNode.removeSpriteFromAtlas(child);
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
},
/**
@@ -387,7 +387,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
* @override
*/
setVisible:function (visible) {
- cc.Node.prototype.setVisible.call(this, visible);
+ _ccsg.Node.prototype.setVisible.call(this, visible);
this._renderCmd.setDirtyRecursively(true);
},
@@ -403,12 +403,12 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
locBatchNode.removeSpriteFromAtlas(locChildren[i]);
}
- cc.Node.prototype.removeAllChildren.call(this, cleanup);
+ _ccsg.Node.prototype.removeAllChildren.call(this, cleanup);
this._hasChildren = false;
},
//
- // cc.Node property overloads
+ // _ccsg.Node property overloads
//
/**
@@ -421,7 +421,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
cc.log(cc._LogInfos.Sprite.ignoreAnchorPointForPosition);
return;
}
- cc.Node.prototype.ignoreAnchorPointForPosition.call(this, relative);
+ _ccsg.Node.prototype.ignoreAnchorPointForPosition.call(this, relative);
},
/**
@@ -622,7 +622,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
if (arguments.length > 0)
return _t.initWithFile(arguments[0], arguments[1]);
- cc.Node.prototype.init.call(_t);
+ _ccsg.Node.prototype.init.call(_t);
_t.dirty = _t._recursiveDirty = false;
_t._blendFunc.src = cc.BLEND_SRC;
@@ -694,7 +694,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
rotated = rotated || false;
texture = this._renderCmd._handleTextureForRotatedTexture(texture, rect, rotated, counterclockwise);
- if (!cc.Node.prototype.init.call(_t))
+ if (!_ccsg.Node.prototype.init.call(_t))
return false;
_t._batchNode = null;
@@ -796,7 +796,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
},
/**
- * Add child to sprite (override cc.Node)
+ * Add child to sprite (override ccsg.Node)
* @function
* @param {cc.Sprite} child
* @param {Number} localZOrder child's zOrder
@@ -812,8 +812,8 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
tag = child.tag;
if(this._renderCmd._setBatchNodeForAddChild(child)){
- //cc.Node already sets isReorderChildDirty_ so this needs to be after batchNode check
- cc.Node.prototype.addChild.call(this, child, localZOrder, tag);
+ //_ccsg.Node already sets isReorderChildDirty_ so this needs to be after batchNode check
+ _ccsg.Node.prototype.addChild.call(this, child, localZOrder, tag);
this._hasChildren = true;
}
},
diff --git a/cocos2d/core/sprites/CCSpriteBatchNode.js b/cocos2d/core/sprites/CCSpriteBatchNode.js
index cdd4a6c240..8d499f3bdd 100644
--- a/cocos2d/core/sprites/CCSpriteBatchNode.js
+++ b/cocos2d/core/sprites/CCSpriteBatchNode.js
@@ -39,7 +39,7 @@
* This is because "alias" is a property of the texture, and all the sprites share the same texture.
*
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @param {String|cc.Texture2D} fileImage
* @param {Number} capacity
@@ -55,14 +55,14 @@
* @property {cc.TextureAtlas} textureAtlas - The texture atlas
* @property {Array} descendants - <@readonly> Descendants of sprite batch node
*/
-cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
+cc.SpriteBatchNode = _ccsg.Node.extend(/** @lends cc.SpriteBatchNode# */{
_blendFunc: null,
// all descendants: chlidren, gran children, etc...
_descendants: null,
_className: "SpriteBatchNode",
ctor: function (fileImage, capacity) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._descendants = [];
this._blendFunc = new cc.BlendFunc(cc.BLEND_SRC, cc.BLEND_DST);
@@ -111,7 +111,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
locDescendants.splice(i, 0, child);
// IMPORTANT: Call super, and not self. Avoid adding it to the texture atlas array
- cc.Node.prototype.addChild.call(this, child, z, aTag);
+ _ccsg.Node.prototype.addChild.call(this, child, z, aTag);
//#issue 1262 don't use lazy sorting, tiles are added as quads not as sprites, so sprites need to be added in order
this.reorderBatch(false);
@@ -329,7 +329,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
},
/**
- * Reorder children (override reorderChild of cc.Node)
+ * Reorder children (override reorderChild of ccsg.Node)
* @override
* @param {cc.Sprite} child
* @param {Number} zOrder
@@ -344,12 +344,12 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
return;
//set the z-order and sort later
- cc.Node.prototype.reorderChild.call(this, child, zOrder);
+ _ccsg.Node.prototype.reorderChild.call(this, child, zOrder);
//this.setNodeDirty();
},
/**
- * Removes a child from cc.SpriteBatchNode (override removeChild of cc.Node)
+ * Removes a child from cc.SpriteBatchNode (override removeChild of ccsg.Node)
* @param {cc.Sprite} child
* @param {Boolean} cleanup
*/
@@ -364,7 +364,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
// cleanup before removing
this.removeSpriteFromAtlas(child);
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
},
/**
@@ -552,7 +552,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
},
/**
- * Add child to the sprite batch node (override addChild of cc.Node)
+ * Add child to the sprite batch node (override addChild of ccsg.Node)
* @function
* @override
* @param {cc.Sprite} child
@@ -567,14 +567,14 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
zOrder = (zOrder == null) ? child.zIndex : zOrder;
tag = (tag == null) ? child.tag : tag;
- cc.Node.prototype.addChild.call(this, child, zOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, child, zOrder, tag);
this.appendChild(child);
//this.setNodeDirty();
},
/**
* Removes all children from the container and do a cleanup all running actions depending on the cleanup parameter.
- * (override removeAllChildren of cc.Node)
+ * (override removeAllChildren of ccsg.Node)
* @function
* @param {Boolean} cleanup
*/
@@ -588,13 +588,13 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
locDescendants[i].batchNode = null;
}
}
- cc.Node.prototype.removeAllChildren.call(this, cleanup);
+ _ccsg.Node.prototype.removeAllChildren.call(this, cleanup);
this._descendants.length = 0;
this._renderCmd.removeAllQuads();
},
/**
- * Sort all children nodes (override draw of cc.Node)
+ * Sort all children nodes (override draw of ccsg.Node)
*/
sortAllChildren: function () {
if (this._reorderChildDirty) {
@@ -619,7 +619,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
//sorted now check all children
if (childrenArr.length > 0) {
//first sort all children recursively based on zOrder
- this._arrayMakeObjectsPerformSelector(childrenArr, cc.Node._stateCallbackType.sortAllChildren);
+ this._arrayMakeObjectsPerformSelector(childrenArr, _ccsg.Node._stateCallbackType.sortAllChildren);
this._renderCmd.updateChildrenAtlasIndex(childrenArr);
}
this._reorderChildDirty = false;
diff --git a/cocos2d/core/sprites/CCSpriteBatchNodeCanvasRenderCmd.js b/cocos2d/core/sprites/CCSpriteBatchNodeCanvasRenderCmd.js
index 4f134b8284..5c2b558b08 100644
--- a/cocos2d/core/sprites/CCSpriteBatchNodeCanvasRenderCmd.js
+++ b/cocos2d/core/sprites/CCSpriteBatchNodeCanvasRenderCmd.js
@@ -25,13 +25,13 @@
(function(){
//SpriteBatchNode's canvas render command
cc.SpriteBatchNode.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._texture = null;
this._textureToRender = null;
};
- var proto = cc.SpriteBatchNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.SpriteBatchNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.SpriteBatchNode.CanvasRenderCmd;
proto.checkAtlasCapacity = function(){};
diff --git a/cocos2d/core/sprites/CCSpriteBatchNodeWebGLRenderCmd.js b/cocos2d/core/sprites/CCSpriteBatchNodeWebGLRenderCmd.js
index 06dd6fd583..18c4bd0ac5 100644
--- a/cocos2d/core/sprites/CCSpriteBatchNodeWebGLRenderCmd.js
+++ b/cocos2d/core/sprites/CCSpriteBatchNodeWebGLRenderCmd.js
@@ -25,13 +25,13 @@
(function(){
//SpriteBatchNode's WebGL render command
cc.SpriteBatchNode.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = true;
this._textureAtlas = null;
};
- var proto = cc.SpriteBatchNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.SpriteBatchNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.SpriteBatchNode.WebGLRenderCmd;
proto.isValidChild = function(child){
@@ -53,7 +53,7 @@
this._shaderProgram.use();
this._shaderProgram._setUniformForMVPMatrixWithMat4(this._stackMatrix);
- node._arrayMakeObjectsPerformSelector(node._children, cc.Node._stateCallbackType.updateTransform);
+ node._arrayMakeObjectsPerformSelector(node._children, _ccsg.Node._stateCallbackType.updateTransform);
cc.glBlendFunc(node._blendFunc.src, node._blendFunc.dst);
this._textureAtlas.drawQuads();
@@ -73,7 +73,7 @@
//optimize performance for javascript
currentStack.stack.push(currentStack.top);
- if(!(this._dirtyFlag & cc.Node._dirtyFlags.transformDirty)) //batchNode's transform must update in visit
+ if(!(this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty)) //batchNode's transform must update in visit
this.transform(parentCmd);
this.updateStatus(parentCmd); //because batchNode doesn't visit its children.
currentStack.top = this._stackMatrix;
diff --git a/cocos2d/core/sprites/CCSpriteCanvasRenderCmd.js b/cocos2d/core/sprites/CCSpriteCanvasRenderCmd.js
index feab7d3021..7821d189d3 100644
--- a/cocos2d/core/sprites/CCSpriteCanvasRenderCmd.js
+++ b/cocos2d/core/sprites/CCSpriteCanvasRenderCmd.js
@@ -24,7 +24,7 @@
(function() {
cc.Sprite.CanvasRenderCmd = function (renderable) {
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = true;
this._textureCoord = {
renderX: 0, //the x of texture coordinate for render, when texture tinted, its value doesn't equal x.
@@ -41,7 +41,7 @@
this._textureToRender = null;
};
- var proto = cc.Sprite.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.Sprite.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.Sprite.CanvasRenderCmd;
proto._init = function () {};
@@ -64,7 +64,7 @@
};
proto._setColorDirty = function () {
- this.setDirtyFlag(cc.Node._dirtyFlags.colorDirty | cc.Node._dirtyFlags.opacityDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty | _ccsg.Node._dirtyFlags.opacityDirty);
};
proto.isFrameDisplayed = function (frame) { //TODO there maybe has a bug
@@ -75,7 +75,7 @@
};
proto.updateBlendFunc = function (blendFunc) {
- this._blendFuncStr = cc.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(blendFunc);
+ this._blendFuncStr = _ccsg.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(blendFunc);
};
proto._setBatchNodeForAddChild = function (child) {
@@ -232,11 +232,11 @@
// recursively iterate over children
if (node._hasChildren)
- node._arrayMakeObjectsPerformSelector(node._children, cc.Node._stateCallbackType.updateTransform);
+ node._arrayMakeObjectsPerformSelector(node._children, _ccsg.Node._stateCallbackType.updateTransform);
};
proto._updateDisplayColor = function (parentColor) {
- cc.Node.CanvasRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
+ _ccsg.Node.CanvasRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
//this._updateColor();
};
diff --git a/cocos2d/core/sprites/CCSpriteWebGLRenderCmd.js b/cocos2d/core/sprites/CCSpriteWebGLRenderCmd.js
index c03309bcee..9abb711e49 100644
--- a/cocos2d/core/sprites/CCSpriteWebGLRenderCmd.js
+++ b/cocos2d/core/sprites/CCSpriteWebGLRenderCmd.js
@@ -25,7 +25,7 @@
//Sprite's WebGL render command
(function() {
cc.Sprite.WebGLRenderCmd = function (renderable) {
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = true;
this._quad = new cc.V3F_C4B_T2F_Quad();
@@ -35,13 +35,13 @@
this._recursiveDirty = false;
};
- var proto = cc.Sprite.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.Sprite.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.Sprite.WebGLRenderCmd;
proto.updateBlendFunc = function (blendFunc) {};
proto.setDirtyFlag = function(dirtyFlag){
- cc.Node.WebGLRenderCmd.prototype.setDirtyFlag.call(this, dirtyFlag);
+ _ccsg.Node.WebGLRenderCmd.prototype.setDirtyFlag.call(this, dirtyFlag);
this._dirty = true;
};
@@ -229,7 +229,7 @@
};
proto.transform = function(parentCmd, recursive){
- cc.Node.WebGLRenderCmd.prototype.transform.call(this, parentCmd, recursive);
+ _ccsg.Node.WebGLRenderCmd.prototype.transform.call(this, parentCmd, recursive);
this._dirty = true; //use for batching
};
@@ -391,7 +391,7 @@
// recursively iterate over children
if (node._hasChildren)
- node._arrayMakeObjectsPerformSelector(node._children, cc.Node._stateCallbackType.updateTransform);
+ node._arrayMakeObjectsPerformSelector(node._children, _ccsg.Node._stateCallbackType.updateTransform);
/*if (cc.SPRITE_DEBUG_DRAW) { //TODO
// draw bounding box
diff --git a/cocos2d/core/utils/CCProfiler.js b/cocos2d/core/utils/CCProfiler.js
index e6199e5d06..400c339509 100644
--- a/cocos2d/core/utils/CCProfiler.js
+++ b/cocos2d/core/utils/CCProfiler.js
@@ -95,9 +95,9 @@ cc.profiler = (function () {
};
var afterProjection = function(){
- _FPSLabel._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
- _SPFLabel._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
- _drawsLabel._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ _FPSLabel._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
+ _SPFLabel._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
+ _drawsLabel._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
};
var profiler = {
diff --git a/cocos2d/core/utils/base-node.js b/cocos2d/core/utils/base-node.js
index 9f186b6bf1..960b4bf96d 100644
--- a/cocos2d/core/utils/base-node.js
+++ b/cocos2d/core/utils/base-node.js
@@ -24,7 +24,7 @@
var JS = cc.js;
var SceneGraphHelper = require('./scene-graph-helper');
-var SGProto = cc.Node.prototype;
+var SGProto = _ccsg.Node.prototype;
var Destroying = require('../platform/CCObject').Flags.Destroying;
var DirtyFlags = require('./misc').DirtyFlags;
@@ -486,7 +486,7 @@ var BaseNode = cc.Class(/** @lends cc.ENode# */{
enumerable: false
});
- var sgNode = this._sgNode = new cc.Node();
+ var sgNode = this._sgNode = new _ccsg.Node();
if (!cc.game._isCloning) {
sgNode.cascadeOpacity = true;
}
@@ -497,7 +497,7 @@ var BaseNode = cc.Class(/** @lends cc.ENode# */{
* Current active scene graph node which provides content size.
*
* @property _sizeProvider
- * @type {cc.Node}
+ * @type {_ccsg.Node}
* @private
*/
this._sizeProvider = null;
@@ -756,7 +756,7 @@ var BaseNode = cc.Class(/** @lends cc.ENode# */{
//cc.eventManager.removeListeners(this);
// children
- SGProto._arrayMakeObjectsPerformSelector(this._children, cc.Node._stateCallbackType.cleanup);
+ SGProto._arrayMakeObjectsPerformSelector(this._children, _ccsg.Node._stateCallbackType.cleanup);
},
// composition: GET
@@ -1084,7 +1084,7 @@ var BaseNode = cc.Class(/** @lends cc.ENode# */{
/**
* Set whether color should be changed with the opacity value,
- * useless in cc.Node, but this function is override in some class to have such behavior.
+ * useless in ccsg.Node, but this function is override in some class to have such behavior.
* @method setOpacityModifyRGB
* @param {Boolean} opacityValue
*/
diff --git a/cocos2d/deprecated.js b/cocos2d/deprecated.js
index d85d39a106..e45cfee96e 100644
--- a/cocos2d/deprecated.js
+++ b/cocos2d/deprecated.js
@@ -478,8 +478,8 @@ if (CC_DEV) {
Mode: 'EmitterMode'
});
- // cc.Node
- markAsRemoved(cc.Node, [
+ // _ccsg.Node
+ markAsRemoved(_ccsg.Node, [
'_normalizedPositionDirty',
'_normalizedPosition',
'_usingNormalizedPosition',
@@ -498,6 +498,6 @@ if (CC_DEV) {
'removeComponent',
'removeAllComponents',
'enumerateChildren'
- ], 'cc.Node');
+ ], '_ccsg.Node');
}
diff --git a/cocos2d/labels/CCLabel.js b/cocos2d/labels/CCLabel.js
index 82c67ef04e..11d0cb6d41 100644
--- a/cocos2d/labels/CCLabel.js
+++ b/cocos2d/labels/CCLabel.js
@@ -104,7 +104,7 @@ cc.LetterInfo = function() {
this._lineIndex = 0;
};
-cc.Label = cc.Node.extend({
+cc.Label = _ccsg.Node.extend({
_hAlign: cc.TextAlignment.LEFT, //0 left, 1 center, 2 right
_vAlign: cc.VerticalTextAlignment.TOP, //0 bottom,1 center, 2 top
_string: "",
@@ -138,7 +138,7 @@ cc.Label = cc.Node.extend({
string = string || "";
this._string = string;
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this.setAnchorPoint(cc.p(0.5, 0.5));
this.setContentSize(cc.size(128, 128));
this._blendFunc = cc.BlendFunc._alphaNonPremultiplied();
@@ -373,7 +373,7 @@ cc.Label = cc.Node.extend({
var oldWidth = this._contentSize.width;
var oldHeight = this._contentSize.height;
if (this._labelType === cc.Label.Type.TTF) {
- cc.Node.prototype.setContentSize.call(this, size, height);
+ _ccsg.Node.prototype.setContentSize.call(this, size, height);
if (oldWidth === this._contentSize.width && oldHeight === this._contentSize.height) {
return;
}
@@ -444,7 +444,7 @@ cc.Label = cc.Node.extend({
this._updateContent();
}
}
- return cc.Node.prototype.getContentSize.call(this);
+ return _ccsg.Node.prototype.getContentSize.call(this);
}
});
@@ -760,7 +760,7 @@ cc.BMFontHelper = {
if (this._labelHeight <= 0) {
contentSize.height = this._textDesiredHeight;
}
- cc.Node.prototype.setContentSize.call(this, contentSize);
+ _ccsg.Node.prototype.setContentSize.call(this, contentSize);
this._tailoredTopY = contentSize.height;
this._tailoredBottomY = 0;
diff --git a/cocos2d/labels/CCLabelAtlas.js b/cocos2d/labels/CCLabelAtlas.js
index 0c45e96f55..1f228edcc4 100644
--- a/cocos2d/labels/CCLabelAtlas.js
+++ b/cocos2d/labels/CCLabelAtlas.js
@@ -92,7 +92,7 @@ cc.LabelAtlas = cc.AtlasNode.extend(/** @lends cc.LabelAtlas# */{
/**
* Add texture loaded event listener.
* @param {Function} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @deprecated since 3.1, please use EventTarget API instead
*/
addLoadedEventListener: function (callback, target) {
@@ -178,7 +178,7 @@ cc.LabelAtlas = cc.AtlasNode.extend(/** @lends cc.LabelAtlas# */{
addChild: function(child, localZOrder, tag){
this._renderCmd._addChild(child);
- cc.Node.prototype.addChild.call(this, child, localZOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, child, localZOrder, tag);
},
/**
diff --git a/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js b/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js
index 890c98be25..f78d2f3f1e 100644
--- a/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js
+++ b/cocos2d/labels/CCLabelAtlasCanvasRenderCmd.js
@@ -66,7 +66,7 @@
} else
fontChar.initWithTexture(texture, rect);
- cc.Node.prototype.addChild.call(node, fontChar, 0, i);
+ _ccsg.Node.prototype.addChild.call(node, fontChar, 0, i);
} else {
if (c === 32) {
fontChar.init();
diff --git a/cocos2d/labels/CCLabelBMFont.js b/cocos2d/labels/CCLabelBMFont.js
index 068a7d071d..60789475a1 100644
--- a/cocos2d/labels/CCLabelBMFont.js
+++ b/cocos2d/labels/CCLabelBMFont.js
@@ -679,7 +679,7 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
* @param {Number} [scaleY=null] default is scale
*/
setScale: function (scale, scaleY) {
- cc.Node.prototype.setScale.call(this, scale, scaleY);
+ _ccsg.Node.prototype.setScale.call(this, scale, scaleY);
this.updateLabel();
},
@@ -690,7 +690,7 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
* @param {Number} scaleX
*/
setScaleX: function (scaleX) {
- cc.Node.prototype.setScaleX.call(this, scaleX);
+ _ccsg.Node.prototype.setScaleX.call(this, scaleX);
this.updateLabel();
},
@@ -701,7 +701,7 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
* @param {Number} scaleY
*/
setScaleY: function (scaleY) {
- cc.Node.prototype.setScaleY.call(this, scaleY);
+ _ccsg.Node.prototype.setScaleY.call(this, scaleY);
this.updateLabel();
},
@@ -764,17 +764,17 @@ cc.LabelBMFont = cc.SpriteBatchNode.extend(/** @lends cc.LabelBMFont# */{
* @param {Number} [y] The anchor point.y of labelBMFont.
*/
setAnchorPoint: function (point, y) {
- cc.Node.prototype.setAnchorPoint.call(this, point, y);
+ _ccsg.Node.prototype.setAnchorPoint.call(this, point, y);
this.updateLabel();
},
_setAnchorX: function (x) {
- cc.Node.prototype._setAnchorX.call(this, x);
+ _ccsg.Node.prototype._setAnchorX.call(this, x);
this.updateLabel();
},
_setAnchorY: function (y) {
- cc.Node.prototype._setAnchorY.call(this, y);
+ _ccsg.Node.prototype._setAnchorY.call(this, y);
this.updateLabel();
},
diff --git a/cocos2d/labels/CCLabelBMFontCanvasRenderCmd.js b/cocos2d/labels/CCLabelBMFontCanvasRenderCmd.js
index 1d43842993..2685c046e6 100644
--- a/cocos2d/labels/CCLabelBMFontCanvasRenderCmd.js
+++ b/cocos2d/labels/CCLabelBMFontCanvasRenderCmd.js
@@ -57,9 +57,9 @@
proto._updateCharColorAndOpacity = function(fontChar){
// Color MUST be set before opacity, since opacity might change color if OpacityModifyRGB is on
fontChar._displayedColor = this._displayedColor;
- fontChar._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ fontChar._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
fontChar._displayedOpacity = this._displayedOpacity;
- fontChar._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ fontChar._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
};
proto.setTexture = function (texture) {
@@ -95,11 +95,11 @@
};
proto._updateChildrenDisplayedOpacity = function(locChild){
- cc.Node.prototype.updateDisplayedOpacity.call(locChild, this._displayedOpacity);
+ _ccsg.Node.prototype.updateDisplayedOpacity.call(locChild, this._displayedOpacity);
};
proto._updateChildrenDisplayedColor = function(locChild){
- cc.Node.prototype.updateDisplayedColor.call(locChild, this._displayedColor);
+ _ccsg.Node.prototype.updateDisplayedColor.call(locChild, this._displayedColor);
};
proto._initBatchTexture = function(){};
diff --git a/cocos2d/labels/CCLabelCanvasRenderCmd.js b/cocos2d/labels/CCLabelCanvasRenderCmd.js
index c5224e4079..ecf3885956 100644
--- a/cocos2d/labels/CCLabelCanvasRenderCmd.js
+++ b/cocos2d/labels/CCLabelCanvasRenderCmd.js
@@ -102,7 +102,7 @@
};
proto._updateDisplayOpacity = function(parentOpacity) {
- cc.Node.RenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
+ _ccsg.Node.RenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
//specify opacity to quad
var color = cc.color(255, 255, 255, this._displayedOpacity);
var quad = this._quad;
@@ -114,7 +114,7 @@
};
proto._updateDisplayColor = function (parentColor) {
- cc.Node.RenderCmd.prototype._updateDisplayColor.call(this, parentColor);
+ _ccsg.Node.RenderCmd.prototype._updateDisplayColor.call(this, parentColor);
var node = this._node;
node._labelSkinDirty = true;
};
@@ -264,7 +264,7 @@
(function() {
cc.Label.CanvasRenderCmd = function(renderableObject) {
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._labelTexture = new cc.Texture2D();
this._labelCanvas = document.createElement("canvas");
@@ -278,7 +278,7 @@
this._drawFontsize = 0;
};
- var proto = cc.Label.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.Label.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
cc.js.mixin(proto, cc.Label.TTFLabelBaker.prototype);
proto.constructor = cc.Label.CanvasRenderCmd;
@@ -298,7 +298,7 @@
var wrapper = ctx || cc._renderContext,
context = wrapper.getContext();
wrapper.setTransform(this._worldTransform, scaleX, scaleY);
- wrapper.setCompositeOperation(cc.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(node._blendFunc));
+ wrapper.setCompositeOperation(_ccsg.Node.CanvasRenderCmd._getCompositeOperationByBlendFunc(node._blendFunc));
wrapper.setGlobalAlpha(alpha);
if (this._labelTexture) {
diff --git a/cocos2d/labels/CCLabelWebGLRenderCmd.js b/cocos2d/labels/CCLabelWebGLRenderCmd.js
index f61e4eed28..2027d209d1 100644
--- a/cocos2d/labels/CCLabelWebGLRenderCmd.js
+++ b/cocos2d/labels/CCLabelWebGLRenderCmd.js
@@ -32,7 +32,7 @@
(function(){
cc.Label.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._labelTexture = new cc.Texture2D();
@@ -51,7 +51,7 @@
this._drawFontsize = 0;
};
- var proto = cc.Label.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.Label.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.js.mixin(proto, cc.Label.TTFLabelBaker.prototype);
proto.constructor = cc.Label.WebGLRenderCmd;
diff --git a/cocos2d/menus/CCMenu.js b/cocos2d/menus/CCMenu.js
index 9a92b8cc43..840a66172a 100644
--- a/cocos2d/menus/CCMenu.js
+++ b/cocos2d/menus/CCMenu.js
@@ -117,7 +117,7 @@ cc.Menu = cc.Layer.extend(/** @lends cc.Menu# */{
var locListener = this._touchListener;
if (!locListener._isRegistered())
cc.eventManager.addListener(locListener, this);
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
},
/**
@@ -188,7 +188,7 @@ cc.Menu = cc.Layer.extend(/** @lends cc.Menu# */{
/**
* add a child for cc.Menu
- * @param {cc.Node} child
+ * @param {_ccsg.Node} child
* @param {Number|Null} [zOrder=] zOrder for the child
* @param {Number|Null} [tag=] tag for the child
*/
@@ -436,7 +436,7 @@ cc.Menu = cc.Layer.extend(/** @lends cc.Menu# */{
/**
* remove a child from cc.Menu
- * @param {cc.Node} child the child you want to remove
+ * @param {_ccsg.Node} child the child you want to remove
* @param {boolean} cleanup whether to cleanup
*/
removeChild: function (child, cleanup) {
@@ -449,7 +449,7 @@ cc.Menu = cc.Layer.extend(/** @lends cc.Menu# */{
if (this._selectedItem === child)
this._selectedItem = null;
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
},
_onTouchBegan: function (touch, event) {
@@ -535,7 +535,7 @@ cc.Menu = cc.Layer.extend(/** @lends cc.Menu# */{
}
this._state = cc.MENU_STATE_WAITING;
}
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
},
/**
* only use for jsbinding
diff --git a/cocos2d/menus/CCMenuItem.js b/cocos2d/menus/CCMenuItem.js
index 3fbe6559c4..63c9b584d9 100644
--- a/cocos2d/menus/CCMenuItem.js
+++ b/cocos2d/menus/CCMenuItem.js
@@ -31,11 +31,11 @@ cc._globalFontNameRelease = false;
/**
* Subclass cc.MenuItem (or any subclass) to create your custom cc.MenuItem objects.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
-cc.MenuItem = cc.Node.extend(/** @lends cc.MenuItem# */{
+cc.MenuItem = _ccsg.Node.extend(/** @lends cc.MenuItem# */{
_enabled: false,
_target: null,
_callback: null,
@@ -45,10 +45,10 @@ cc.MenuItem = cc.Node.extend(/** @lends cc.MenuItem# */{
/**
* Constructor of cc.MenuItem
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
ctor: function (callback, target) {
- var nodeP = cc.Node.prototype;
+ var nodeP = _ccsg.Node.prototype;
nodeP.ctor.call(this);
this._target = null;
this._callback = null;
@@ -87,7 +87,7 @@ cc.MenuItem = cc.Node.extend(/** @lends cc.MenuItem# */{
/**
* set the target/selector of the menu item
* @param {function|String} selector
- * @param {cc.Node} rec
+ * @param {_ccsg.Node} rec
* @deprecated since v3.0
*/
setTarget: function (selector, rec) {
@@ -114,7 +114,7 @@ cc.MenuItem = cc.Node.extend(/** @lends cc.MenuItem# */{
/**
* initializes a cc.MenuItem with callback
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @return {Boolean}
*/
initWithCallback: function (callback, target) {
@@ -155,7 +155,7 @@ cc.MenuItem = cc.Node.extend(/** @lends cc.MenuItem# */{
/**
* set the callback to the menu item
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
setCallback: function (callback, target) {
this._target = target;
@@ -192,7 +192,7 @@ cc.defineGetterSetter(_p, "enabled", _p.isEnabled, _p.setEnabled);
* Not recommended to use the base class, should use more defined menu item classes
* @deprecated since v3.0, please use new cc.MenuItem(callback,target) instead
* @param {function|String} callback callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @return {cc.MenuItem}
*/
cc.MenuItem.create = function (callback, target) {
@@ -200,21 +200,21 @@ cc.MenuItem.create = function (callback, target) {
};
/**
- * Any cc.Node that supports the cc.LabelProtocol protocol can be added.
+ * Any ccsg.Node that supports the cc.LabelProtocol protocol can be added.
* Supported nodes:
* - cc.BitmapFontAtlas
* - cc.LabelAtlas
* - cc.LabelTTF
* @class
* @extends cc.MenuItem
- * @param {cc.Node} label
+ * @param {_ccsg.Node} label
* @param {function|String} selector
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @example
* var menuitemLabel = new cc.MenuItemLabel(label,selector,target);
*
* @property {String} string - Content string of label item
- * @property {cc.Node} label - Label of label item
+ * @property {_ccsg.Node} label - Label of label item
* @property {cc.Color} disabledColor - Color of label when it's disabled
*/
cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
@@ -225,9 +225,9 @@ cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
/**
* Constructor of cc.MenuItemLabel
- * @param {cc.Node} label
+ * @param {_ccsg.Node} label
* @param {function|String} selector
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
ctor: function (label, selector, target) {
cc.MenuItem.prototype.ctor.call(this, selector, target);
@@ -264,7 +264,7 @@ cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
/**
* return label of cc.MenuItemLabel
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getLabel: function () {
return this._label;
@@ -272,7 +272,7 @@ cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
/**
* set a label for cc.MenuItemLabel
- * @param {cc.Node} label
+ * @param {_ccsg.Node} label
*/
setLabel: function (label) {
if (label) {
@@ -309,9 +309,9 @@ cc.MenuItemLabel = cc.MenuItem.extend(/** @lends cc.MenuItemLabel# */{
/**
* initializes a cc.MenuItemLabel with a label
- * @param {cc.Node} label
+ * @param {_ccsg.Node} label
* @param {function|String} selector
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @return {Boolean}
*/
initWithLabel: function (label, selector, target) {
@@ -404,9 +404,9 @@ cc.defineGetterSetter(_p, "label", _p.getLabel, _p.setLabel);
/**
* @deprecated since v3.0 ,please use new cc.MenuItemLabel(label,selector,target) instead
- * @param {cc.Node} label
+ * @param {_ccsg.Node} label
* @param {function|String|Null} [selector=]
- * @param {cc.Node|Null} [target=]
+ * @param {_ccsg.Node|Null} [target=]
* @return {cc.MenuItemLabel}
*/
cc.MenuItemLabel.create = function (label, selector, target) {
@@ -423,7 +423,7 @@ cc.MenuItemLabel.create = function (label, selector, target) {
* @param {Number} itemHeight
* @param {String} startCharMap a single character
* @param {function|String|Null} callback
- * @param {cc.Node|Null} target
+ * @param {_ccsg.Node|Null} target
* @example
* var menuItem = new cc.MenuItemAtlasFont(param1,param2...);
*/
@@ -437,7 +437,7 @@ cc.MenuItemAtlasFont = cc.MenuItemLabel.extend(/** @lends cc.MenuItemAtlasFont#
* @param {Number} itemHeight
* @param {String} startCharMap a single character
* @param {function|String|Null} callback
- * @param {cc.Node|Null} target
+ * @param {_ccsg.Node|Null} target
*/
ctor: function (value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target) {
var label;
@@ -456,7 +456,7 @@ cc.MenuItemAtlasFont = cc.MenuItemLabel.extend(/** @lends cc.MenuItemAtlasFont#
* @param {Number} itemHeight
* @param {String} startCharMap a single character
* @param {function|String|Null} callback
- * @param {cc.Node|Null} target
+ * @param {_ccsg.Node|Null} target
* @return {Boolean}
*/
initWithString: function (value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target) {
@@ -481,7 +481,7 @@ cc.MenuItemAtlasFont = cc.MenuItemLabel.extend(/** @lends cc.MenuItemAtlasFont#
* @param {Number} itemHeight
* @param {String} startCharMap a single character
* @param {function|String|Null} [callback=null]
- * @param {cc.Node|Null} [target=]
+ * @param {_ccsg.Node|Null} [target=]
* @return {cc.MenuItemAtlasFont}
*/
cc.MenuItemAtlasFont.create = function (value, charMapFile, itemWidth, itemHeight, startCharMap, callback, target) {
@@ -494,7 +494,7 @@ cc.MenuItemAtlasFont.create = function (value, charMapFile, itemWidth, itemHeigh
* @extends cc.MenuItemLabel
* @param {String} value text for the menu item
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @example
* var menuItem = new cc.MenuItemFont(value, callback, target);
*
@@ -509,7 +509,7 @@ cc.MenuItemFont = cc.MenuItemLabel.extend(/** @lends cc.MenuItemFont# */{
* Constructor of cc.MenuItemFont
* @param {String} value text for the menu item
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
ctor: function (value, callback, target) {
var label;
@@ -530,7 +530,7 @@ cc.MenuItemFont = cc.MenuItemLabel.extend(/** @lends cc.MenuItemFont# */{
* initializes cc.MenuItemFont with string
* @param {String} value text for the menu item
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @return {Boolean}
*/
initWithString: function (value, callback, target) {
@@ -639,7 +639,7 @@ cc.MenuItemFont.fontName = function () {
* @deprecated since v3.0, please use new construction instead
* @param {String} value the text to display
* @param {String|function|Null} callback the callback to run, either in function name or pass in the actual function
- * @param {cc.Node|Null} target the target to run callback
+ * @param {_ccsg.Node|Null} target the target to run callback
* @return {cc.MenuItemFont}
*/
cc.MenuItemFont.create = function (value, callback, target) {
@@ -657,8 +657,8 @@ cc.MenuItemFont.create = function (value, callback, target) {
* @extends cc.MenuItem
* @param {Image|Null} normalSprite normal state image
* @param {Image|Null} selectedSprite selected state image
- * @param {Image|cc.Node|Null} three disabled state image OR target node
- * @param {String|function|cc.Node|Null} four callback function name in string or actual function, OR target Node
+ * @param {Image|_ccsg.Node|Null} three disabled state image OR target node
+ * @param {String|function|_ccsg.Node|Null} four callback function name in string or actual function, OR target Node
* @param {String|function|Null} five callback function name in string or actual function
*
* @example
@@ -682,8 +682,8 @@ cc.MenuItemSprite = cc.MenuItem.extend(/** @lends cc.MenuItemSprite# */{
* Constructor of cc.MenuItemSprite
* @param {Image|Null} normalSprite normal state image
* @param {Image|Null} selectedSprite selected state image
- * @param {Image|cc.Node|Null} three disabled state image OR target node
- * @param {String|function|cc.Node|Null} four callback function name in string or actual function, OR target Node
+ * @param {Image|_ccsg.Node|Null} three disabled state image OR target node
+ * @param {String|function|_ccsg.Node|Null} four callback function name in string or actual function, OR target Node
* @param {String|function|Null} five callback function name in string or actual function
*/
ctor: function (normalSprite, selectedSprite, three, four, five) {
@@ -817,11 +817,11 @@ cc.MenuItemSprite = cc.MenuItem.extend(/** @lends cc.MenuItemSprite# */{
/**
* initializes cc.MenuItemSprite with a cc.Sprite
- * @param {cc.Node} normalSprite
- * @param {cc.Node} selectedSprite
- * @param {cc.Node} disabledSprite
+ * @param {_ccsg.Node} normalSprite
+ * @param {_ccsg.Node} selectedSprite
+ * @param {_ccsg.Node} disabledSprite
* @param {function|String} callback
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @return {Boolean}
*/
initWithNormalSprite: function (normalSprite, selectedSprite, disabledSprite, callback, target) {
@@ -937,8 +937,8 @@ cc.defineGetterSetter(_p, "disabledImage", _p.getDisabledImage, _p.setDisabledIm
* @deprecated since v3.0 please use new cc.MenuItemSprite(normalSprite, selectedSprite, three, four, five) instead
* @param {Image} normalSprite normal state image
* @param {Image|Null} selectedSprite selected state image
- * @param {Image|cc.Node|Null} three disabled state image OR target node
- * @param {String|function|cc.Node|Null} four callback function name in string or actual function, OR target Node
+ * @param {Image|_ccsg.Node|Null} three disabled state image OR target node
+ * @param {String|function|_ccsg.Node|Null} four callback function name in string or actual function, OR target Node
* @param {String|function|Null} five callback function name in string or actual function
* @return {cc.MenuItemSprite}
*/
@@ -960,7 +960,7 @@ cc.MenuItemSprite.create = function (normalSprite, selectedSprite, three, four,
* @param {string|null} selectedImage
* @param {string|null} disabledImage
* @param {function|string|null} callback
- * @param {cc.Node|null} target
+ * @param {_ccsg.Node|null} target
* @example
* var menuItem = new cc.MenuItemImage(normalImage, selectedImage, three, four, five);
*/
@@ -972,7 +972,7 @@ cc.MenuItemImage = cc.MenuItemSprite.extend(/** @lends cc.MenuItemImage# */{
* @param {string|null} selectedImage
* @param {string|null} disabledImage
* @param {function|string|null} callback
- * @param {cc.Node|null} target
+ * @param {_ccsg.Node|null} target
*/
ctor: function (normalImage, selectedImage, three, four, five) {
var normalSprite = null,
@@ -1034,7 +1034,7 @@ cc.MenuItemImage = cc.MenuItemSprite.extend(/** @lends cc.MenuItemImage# */{
* @param {string|null} selectedImage
* @param {string|null} disabledImage
* @param {function|string|null} callback
- * @param {cc.Node|null} target
+ * @param {_ccsg.Node|null} target
* @returns {boolean}
*/
initWithNormalImage: function (normalImage, selectedImage, disabledImage, callback, target) {
@@ -1060,9 +1060,9 @@ cc.MenuItemImage = cc.MenuItemSprite.extend(/** @lends cc.MenuItemImage# */{
* @deprecated since v3.0, please use new cc.MenuItemImage(normalImage, selectedImage, three, four, five) instead.
* @param {String} normalImage file name for normal state
* @param {String} selectedImage image for selected state
- * @param {String|cc.Node} three Disabled image OR callback function
+ * @param {String|_ccsg.Node} three Disabled image OR callback function
* @param {String|function|Null} [four] callback function, either name in string or pass the whole function OR the target
- * @param {cc.Node|String|function|Null} [five] cc.Node target to run callback when clicked
+ * @param {_ccsg.Node|String|function|Null} [five] _ccsg.Node target to run callback when clicked
* @return {cc.MenuItemImage}
*/
cc.MenuItemImage.create = function (normalImage, selectedImage, three, four, five) {
@@ -1213,7 +1213,7 @@ cc.MenuItemToggle = cc.MenuItem.extend(/** @lends cc.MenuItemToggle# */{
* initializes a cc.MenuItemToggle with items
* @param {cc.MenuItem} args[0...last-2] the rest in the array are cc.MenuItems
* @param {function|String} args[last-1] the second item in the args array is the callback
- * @param {cc.Node} args[last] the first item in the args array is a target
+ * @param {_ccsg.Node} args[last] the first item in the args array is a target
* @return {Boolean}
*/
initWithItems: function (args) {
@@ -1320,7 +1320,7 @@ cc.MenuItemToggle = cc.MenuItem.extend(/** @lends cc.MenuItemToggle# */{
*
*/
onEnter: function () {
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
this.setSelectedIndex(this._selectedIndex);
}
});
diff --git a/cocos2d/motion-streak/CCMotionStreak.js b/cocos2d/motion-streak/CCMotionStreak.js
index 78fae3e0a4..0f850fe210 100644
--- a/cocos2d/motion-streak/CCMotionStreak.js
+++ b/cocos2d/motion-streak/CCMotionStreak.js
@@ -34,7 +34,7 @@
* length is the how many pixels the texture is stretched across. The texture
* is vertically aligned along the streak segment.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {cc.Texture2D} texture - Texture used for the motion streak.
* @property {Boolean} fastMode - Indicate whether use fast mode.
@@ -43,7 +43,7 @@
* //example
* new cc.MotionStreak(2, 3, 32, cc.Color.GREEN, s_streak);
*/
-cc.MotionStreak = cc.Node.extend(/** @lends cc.MotionStreak# */{
+cc.MotionStreak = _ccsg.Node.extend(/** @lends cc.MotionStreak# */{
texture:null,
fastMode:false,
startingPositionInitialized:false,
@@ -82,7 +82,7 @@ cc.MotionStreak = cc.Node.extend(/** @lends cc.MotionStreak# */{
* @param {string|cc.Texture2D} texture texture filename or texture
*/
ctor: function (fade, minSeg, stroke, color, texture) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._positionR = cc.p(0, 0);
this._blendFunc = new cc.BlendFunc(cc.SRC_ALPHA, cc.ONE_MINUS_SRC_ALPHA);
@@ -254,7 +254,7 @@ cc.MotionStreak = cc.Node.extend(/** @lends cc.MotionStreak# */{
if (cc.js.isString(texture))
texture = cc.textureCache.addImage(texture);
- cc.Node.prototype.setPosition.call(this, cc.p(0,0));
+ _ccsg.Node.prototype.setPosition.call(this, cc.p(0,0));
this.anchorX = 0;
this.anchorY = 0;
this.ignoreAnchor = true;
diff --git a/cocos2d/motion-streak/CCMotionStreakWebGLRenderCmd.js b/cocos2d/motion-streak/CCMotionStreakWebGLRenderCmd.js
index 45ab07cafd..cb782412dc 100644
--- a/cocos2d/motion-streak/CCMotionStreakWebGLRenderCmd.js
+++ b/cocos2d/motion-streak/CCMotionStreakWebGLRenderCmd.js
@@ -23,12 +23,12 @@
****************************************************************************/
cc.MotionStreak.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._shaderProgram = cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURECOLOR);
};
-cc.MotionStreak.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+cc.MotionStreak.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.MotionStreak.WebGLRenderCmd.prototype.constructor = cc.Sprite.WebGLRenderCmd;
cc.MotionStreak.WebGLRenderCmd.prototype.rendering = function(ctx){
diff --git a/cocos2d/node-grid/CCNodeGrid.js b/cocos2d/node-grid/CCNodeGrid.js
index f1cb9b4658..c9f6a58248 100644
--- a/cocos2d/node-grid/CCNodeGrid.js
+++ b/cocos2d/node-grid/CCNodeGrid.js
@@ -25,21 +25,21 @@
****************************************************************************/
/**
- * NodeGrid class is a class serves as a decorator of cc.Node,
+ *
NodeGrid class is a class serves as a decorator of ccsg.Node,
* Grid node can run grid actions over all its children (WebGL only)
*
* @type {Class}
*
* @property {cc.GridBase} grid - Grid object that is used when applying effects
- * @property {cc.Node} target - <@writeonly>Target
+ * @property {_ccsg.Node} target - <@writeonly>Target
*/
-cc.NodeGrid = cc.Node.extend({
+cc.NodeGrid = _ccsg.Node.extend({
grid: null,
_target: null,
_gridRect:null,
ctor: function (rect) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
if(rect === undefined) rect = cc.rect();
this._gridRect = rect;
},
@@ -76,7 +76,7 @@ cc.NodeGrid = cc.Node.extend({
/**
* Set the target
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
setTarget: function (target) {
this._target = target;
@@ -126,7 +126,7 @@ cc.NodeGrid = cc.Node.extend({
if (cc._renderType === cc.game.RENDER_TYPE_WEBGL)
return new cc.NodeGrid.WebGLRenderCmd(this);
else
- return new cc.Node.CanvasRenderCmd(this); // cc.NodeGrid doesn't support Canvas mode.
+ return new _ccsg.Node.CanvasRenderCmd(this); // cc.NodeGrid doesn't support Canvas mode.
}
});
diff --git a/cocos2d/node-grid/CCNodeGridWebGLRenderCmd.js b/cocos2d/node-grid/CCNodeGridWebGLRenderCmd.js
index 8c45377dfe..3bf8e9e7a4 100644
--- a/cocos2d/node-grid/CCNodeGridWebGLRenderCmd.js
+++ b/cocos2d/node-grid/CCNodeGridWebGLRenderCmd.js
@@ -24,13 +24,13 @@
(function(){
cc.NodeGrid.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = false;
this._gridBeginCommand = new cc.CustomRenderCmd(this, this.onGridBeginDraw);
this._gridEndCommand = new cc.CustomRenderCmd(this, this.onGridEndDraw);
};
- var proto = cc.NodeGrid.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.NodeGrid.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.NodeGrid.WebGLRenderCmd;
proto.visit = function(parentCmd) {
diff --git a/cocos2d/parallax/CCParallaxNode.js b/cocos2d/parallax/CCParallaxNode.js
index afa8e214e0..9595076a07 100644
--- a/cocos2d/parallax/CCParallaxNode.js
+++ b/cocos2d/parallax/CCParallaxNode.js
@@ -73,7 +73,7 @@ cc.PointObject = cc._Class.extend(/** @lends cc.PointObject# */{
/**
* Gets the child.
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getChild:function () {
return this._child;
@@ -81,7 +81,7 @@ cc.PointObject = cc._Class.extend(/** @lends cc.PointObject# */{
/**
* Set the child.
- * @param {cc.Node} value
+ * @param {_ccsg.Node} value
*/
setChild:function (value) {
this._child = value;
@@ -116,11 +116,11 @@ cc.PointObject.create = function (ratio, offset) {
* cc.ParallaxNode: A node that simulates a parallax scroller
* The children will be moved faster / slower than the parent according the the parallax ratio.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {Array} parallaxArray - Parallax nodes array
*/
-cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
+cc.ParallaxNode = _ccsg.Node.extend(/** @lends cc.ParallaxNode# */{
parallaxArray:null,
_lastPosition:null,
@@ -146,7 +146,7 @@ cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
* Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
*/
ctor:function () {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this.parallaxArray = [];
this._lastPosition = cc.p(-100, -100);
},
@@ -154,7 +154,7 @@ cc.ParallaxNode = cc.Node.extend(/** @lends 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.
- * @param {cc.Node} child
+ * @param {_ccsg.Node} child
* @param {Number} z
* @param {cc.Vec2} ratio
* @param {cc.Vec2} offset
@@ -175,12 +175,12 @@ cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
child.setPosition(this._position.x * ratio.x + offset.x, this._position.y * ratio.y + offset.y);
- cc.Node.prototype.addChild.call(this, child, z, child.tag);
+ _ccsg.Node.prototype.addChild.call(this, child, z, child.tag);
},
/**
* Remove Child
- * @param {cc.Node} child
+ * @param {_ccsg.Node} child
* @param {Boolean} cleanup
* @example
* //example
@@ -195,7 +195,7 @@ cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
break;
}
}
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
},
/**
@@ -204,7 +204,7 @@ cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
*/
removeAllChildren:function (cleanup) {
this.parallaxArray.length = 0;
- cc.Node.prototype.removeAllChildren.call(this, cleanup);
+ _ccsg.Node.prototype.removeAllChildren.call(this, cleanup);
},
_updateParallaxPosition: function(){
diff --git a/cocos2d/parallax/CCParallaxNodeRenderCmd.js b/cocos2d/parallax/CCParallaxNodeRenderCmd.js
index 985e7d0d31..a4467b3aed 100644
--- a/cocos2d/parallax/CCParallaxNodeRenderCmd.js
+++ b/cocos2d/parallax/CCParallaxNodeRenderCmd.js
@@ -26,21 +26,21 @@
(function(){
cc.ParallaxNode.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = false;
};
- var proto = cc.ParallaxNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ParallaxNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.ParallaxNode.CanvasRenderCmd;
proto.updateStatus = function(){
this._node._updateParallaxPosition();
- cc.Node.CanvasRenderCmd.prototype.updateStatus.call(this);
+ _ccsg.Node.CanvasRenderCmd.prototype.updateStatus.call(this);
};
proto._syncStatus = function(parentCmd){
this._node._updateParallaxPosition();
- cc.Node.CanvasRenderCmd.prototype._syncStatus.call(this, parentCmd);
+ _ccsg.Node.CanvasRenderCmd.prototype._syncStatus.call(this, parentCmd);
}
})();
@@ -49,21 +49,21 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
return;
cc.ParallaxNode.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = false;
};
- var proto = cc.ParallaxNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ParallaxNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.ParallaxNode.WebGLRenderCmd;
proto.updateStatus = function(){
this._node._updateParallaxPosition();
- cc.Node.WebGLRenderCmd.prototype.updateStatus.call(this);
+ _ccsg.Node.WebGLRenderCmd.prototype.updateStatus.call(this);
};
proto._syncStatus = function(parentCmd){
this._node._updateParallaxPosition();
- cc.Node.WebGLRenderCmd.prototype._syncStatus.call(this, parentCmd);
+ _ccsg.Node.WebGLRenderCmd.prototype._syncStatus.call(this, parentCmd);
}
});
diff --git a/cocos2d/particle/CCEParticleSystem.js b/cocos2d/particle/CCEParticleSystem.js
index c474ee082f..a4ccbc4082 100644
--- a/cocos2d/particle/CCEParticleSystem.js
+++ b/cocos2d/particle/CCEParticleSystem.js
@@ -816,7 +816,7 @@ var ParticleSystem = cc.Class({
cc.assert(!sgNode.onExit);
var self = this;
sgNode.onExit = function () {
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
self.node.destroy();
};
}
diff --git a/cocos2d/particle/CCParticleBatchNode.js b/cocos2d/particle/CCParticleBatchNode.js
index c63fcb658e..4c9e4ebc70 100644
--- a/cocos2d/particle/CCParticleBatchNode.js
+++ b/cocos2d/particle/CCParticleBatchNode.js
@@ -70,7 +70,7 @@ cc.PARTICLE_DEFAULT_CAPACITY = 500;
* var texture = cc.TextureCache.getInstance().addImage("res/grossini_dance.png");
* var particleBatchNode = new cc.ParticleBatchNode(texture, 30);
*/
-cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
+cc.ParticleBatchNode = _ccsg.Node.extend(/** @lends cc.ParticleBatchNode# */{
textureAtlas:null,
//the blend function used for drawing the quads
_blendFunc:null,
@@ -92,7 +92,7 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
* var particleBatchNode = new cc.ParticleBatchNode(texture, 30);
*/
ctor:function (fileImage, capacity) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._blendFunc = {src:cc.BLEND_SRC, dst:cc.BLEND_DST};
if (cc.js.isString(fileImage)) {
this.init(fileImage, capacity);
@@ -234,7 +234,7 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
return;
}
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
var locTextureAtlas = this.textureAtlas;
// remove child helper
@@ -318,7 +318,7 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
for (var i = 0; i < locChildren.length; i++) {
locChildren[i].setBatchNode(null);
}
- cc.Node.prototype.removeAllChildren.call(this, doCleanup);
+ _ccsg.Node.prototype.removeAllChildren.call(this, doCleanup);
this.textureAtlas.removeAllQuads();
},
diff --git a/cocos2d/particle/CCParticleBatchNodeCanvasRenderCmd.js b/cocos2d/particle/CCParticleBatchNodeCanvasRenderCmd.js
index 36da185ecb..e8b8ecd36c 100644
--- a/cocos2d/particle/CCParticleBatchNodeCanvasRenderCmd.js
+++ b/cocos2d/particle/CCParticleBatchNodeCanvasRenderCmd.js
@@ -27,11 +27,11 @@
* cc.ParticleBatchNode's rendering objects of Canvas
*/
cc.ParticleBatchNode.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = false;
};
- var proto = cc.ParticleBatchNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ParticleBatchNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.ParticleBatchNode.CanvasRenderCmd;
proto._initWithTexture = function(){};
diff --git a/cocos2d/particle/CCParticleBatchNodeWebGLRenderCmd.js b/cocos2d/particle/CCParticleBatchNodeWebGLRenderCmd.js
index 16da24b496..2805adfddf 100644
--- a/cocos2d/particle/CCParticleBatchNodeWebGLRenderCmd.js
+++ b/cocos2d/particle/CCParticleBatchNodeWebGLRenderCmd.js
@@ -27,11 +27,11 @@
* cc.ParticleBatchNode's rendering objects of WebGL
*/
cc.ParticleBatchNode.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = true;
};
- var proto = cc.ParticleBatchNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ParticleBatchNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.ParticleBatchNode.WebGLRenderCmd;
proto.rendering = function (ctx) {
@@ -52,7 +52,7 @@
proto.visit = function(parentCmd){
var node = this._node;
// CAREFUL:
- // This visit is almost identical to cc.Node#visit
+ // This visit is almost identical to _ccsg.Node#visit
// with the exception that it doesn't call visit on it's children
//
// The alternative is to have a void cc.Sprite#visit, but
diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js
index 661fdaa22f..004d221d5b 100644
--- a/cocos2d/particle/CCParticleSystem.js
+++ b/cocos2d/particle/CCParticleSystem.js
@@ -158,7 +158,7 @@ cc.Particle.TemporaryPoints = [
* It is possible to customize any of the above mentioned properties in runtime. Example:
*
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {Boolean} opacityModifyRGB - Indicate whether the alpha value modify color.
* @property {cc.SpriteBatchNode} batchNode - Weak reference to the sprite batch node.
@@ -210,7 +210,7 @@ cc.Particle.TemporaryPoints = [
* emitter.radialAccel = 15;
* emitter.startSpin = 0;
*/
-cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
+cc.ParticleSystem = _ccsg.Node.extend(/** @lends cc.ParticleSystem# */{
_className:"ParticleSystem",
//***********variables*************
_plistFile: "",
@@ -286,7 +286,7 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
* @param {String|Number} plistFile
*/
ctor:function (plistFile) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this.emitterMode = cc.ParticleSystem.Mode.GRAVITY;
this.modeA = new cc.ParticleSystem.ModeA();
this.modeB = new cc.ParticleSystem.ModeB();
@@ -805,22 +805,22 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
//don't use a transform matrix, this is faster
setScale:function (scale, scaleY) {
this._transformSystemDirty = true;
- cc.Node.prototype.setScale.call(this, scale, scaleY);
+ _ccsg.Node.prototype.setScale.call(this, scale, scaleY);
},
setRotation:function (newRotation) {
this._transformSystemDirty = true;
- cc.Node.prototype.setRotation.call(this, newRotation);
+ _ccsg.Node.prototype.setRotation.call(this, newRotation);
},
setScaleX:function (newScaleX) {
this._transformSystemDirty = true;
- cc.Node.prototype.setScaleX.call(this, newScaleX);
+ _ccsg.Node.prototype.setScaleX.call(this, newScaleX);
},
setScaleY:function (newScaleY) {
this._transformSystemDirty = true;
- cc.Node.prototype.setScaleY.call(this, newScaleY);
+ _ccsg.Node.prototype.setScaleY.call(this, newScaleY);
},
/**
diff --git a/cocos2d/particle/CCParticleSystemCanvasRenderCmd.js b/cocos2d/particle/CCParticleSystemCanvasRenderCmd.js
index de78252346..b57dc79f65 100644
--- a/cocos2d/particle/CCParticleSystemCanvasRenderCmd.js
+++ b/cocos2d/particle/CCParticleSystemCanvasRenderCmd.js
@@ -27,7 +27,7 @@
*/
(function(){
cc.ParticleSystem.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = true;
this._drawMode = cc.ParticleSystem.TEXTURE_MODE;
@@ -36,7 +36,7 @@
this._pointRect = cc.rect(0, 0, 0, 0);
this._tintCache = document.createElement("canvas");
};
- var proto = cc.ParticleSystem.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ParticleSystem.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.ParticleSystem.CanvasRenderCmd;
proto.getDrawMode = function(){
diff --git a/cocos2d/particle/CCParticleSystemWebGLRenderCmd.js b/cocos2d/particle/CCParticleSystemWebGLRenderCmd.js
index 7811947122..a4b8439b2d 100644
--- a/cocos2d/particle/CCParticleSystemWebGLRenderCmd.js
+++ b/cocos2d/particle/CCParticleSystemWebGLRenderCmd.js
@@ -27,7 +27,7 @@
* ParticleSystem's WebGL render command
*/
cc.ParticleSystem.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = true;
this._buffersVBO = [0, 0];
@@ -35,7 +35,7 @@
this._indices = [];
this._quadsArrayBuffer = null;
};
- var proto = cc.ParticleSystem.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ParticleSystem.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.ParticleSystem.WebGLRenderCmd;
proto.getDrawMode = function(){};
diff --git a/cocos2d/physics/CCPhysicsDebugNodeCanvasRenderCmd.js b/cocos2d/physics/CCPhysicsDebugNodeCanvasRenderCmd.js
index be1f6f14ba..420459362b 100644
--- a/cocos2d/physics/CCPhysicsDebugNodeCanvasRenderCmd.js
+++ b/cocos2d/physics/CCPhysicsDebugNodeCanvasRenderCmd.js
@@ -27,12 +27,12 @@
*/
(function(){
cc.PhysicsDebugNode.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._buffer = renderableObject._buffer;
this._needDraw = true;
};
- var proto = cc.PhysicsDebugNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.PhysicsDebugNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.PhysicsDebugNode.CanvasRenderCmd;
proto.rendering = function(ctx, scaleX, scaleY){
diff --git a/cocos2d/physics/CCPhysicsDebugNodeWebGLRenderCmd.js b/cocos2d/physics/CCPhysicsDebugNodeWebGLRenderCmd.js
index 38ddf9f630..0e5c427611 100644
--- a/cocos2d/physics/CCPhysicsDebugNodeWebGLRenderCmd.js
+++ b/cocos2d/physics/CCPhysicsDebugNodeWebGLRenderCmd.js
@@ -27,11 +27,11 @@
*/
(function(){
cc.PhysicsDebugNode.WebGLRenderCmd = function (renderableObject) {
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
};
- cc.PhysicsDebugNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ cc.PhysicsDebugNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.PhysicsDebugNode.WebGLRenderCmd.prototype.constructor = cc.PhysicsDebugNode.WebGLRenderCmd;
cc.PhysicsDebugNode.WebGLRenderCmd.prototype.rendering = function (ctx) {
diff --git a/cocos2d/progress-timer/CCActionProgressTimer.js b/cocos2d/progress-timer/CCActionProgressTimer.js
index 026af89750..2d1394939e 100644
--- a/cocos2d/progress-timer/CCActionProgressTimer.js
+++ b/cocos2d/progress-timer/CCActionProgressTimer.js
@@ -84,7 +84,7 @@ cc.ProgressTo = cc.ActionInterval.extend(/** @lends cc.ProgressTo# */{
/**
* start with a target
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
@@ -187,7 +187,7 @@ cc.ProgressFromTo = cc.ActionInterval.extend(/** @lends cc.ProgressFromTo# */{
/**
* start with a target
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget:function (target) {
cc.ActionInterval.prototype.startWithTarget.call(this, target);
diff --git a/cocos2d/progress-timer/CCProgressTimer.js b/cocos2d/progress-timer/CCProgressTimer.js
index 65f103744b..8450267b7a 100644
--- a/cocos2d/progress-timer/CCProgressTimer.js
+++ b/cocos2d/progress-timer/CCProgressTimer.js
@@ -26,11 +26,11 @@
****************************************************************************/
/**
- * cc.Progresstimer is a subclass of cc.Node.
+ * cc.Progresstimer is a subclass of ccsg.Node.
* It renders the inner sprite according to the percentage.
* The progress can be Radial, Horizontal or vertical.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {cc.Vec2} midPoint - Midpoint is used to modify the progress start position.
* If you're using radials type then the midpoint changes the center point
@@ -47,7 +47,7 @@
* @property {Boolean} reverseDir - Indicate whether the direction is reversed.
*
*/
-cc.ProgressTimer = cc.Node.extend(/** @lends cc.ProgressTimer# */{
+cc.ProgressTimer = _ccsg.Node.extend(/** @lends cc.ProgressTimer# */{
_type:null,
_percentage:0.0,
_sprite:null,
@@ -63,7 +63,7 @@ cc.ProgressTimer = cc.Node.extend(/** @lends cc.ProgressTimer# */{
* @param {cc.Sprite} sprite
*/
ctor: function(sprite){
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._type = cc.ProgressTimer.Type.RADIAL;
this._percentage = 0.0;
@@ -177,7 +177,7 @@ cc.ProgressTimer = cc.Node.extend(/** @lends cc.ProgressTimer# */{
*/
setColor:function (color) {
this._sprite.color = color;
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
},
/**
@@ -187,7 +187,7 @@ cc.ProgressTimer = cc.Node.extend(/** @lends cc.ProgressTimer# */{
setOpacity:function (opacity) {
this._sprite.opacity = opacity;
//this._renderCmd._updateColor();
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.opacityDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.opacityDirty);
},
/**
diff --git a/cocos2d/progress-timer/CCProgressTimerCanvasRenderCmd.js b/cocos2d/progress-timer/CCProgressTimerCanvasRenderCmd.js
index 7015d944ea..e31114bb29 100644
--- a/cocos2d/progress-timer/CCProgressTimerCanvasRenderCmd.js
+++ b/cocos2d/progress-timer/CCProgressTimerCanvasRenderCmd.js
@@ -27,7 +27,7 @@
*/
(function(){
cc.ProgressTimer.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._PI180 = Math.PI / 180;
@@ -39,7 +39,7 @@
this._counterClockWise = false;
};
- var proto = cc.ProgressTimer.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ProgressTimer.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.ProgressTimer.CanvasRenderCmd;
proto.rendering = function (ctx, scaleX, scaleY) {
@@ -198,7 +198,7 @@
var node = this._node;
if(!node._sprite)
return;
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
if(parentNode && parentNode._cascadeColorEnabled && (parentCmd._dirtyFlag & flags.colorDirty))
@@ -241,7 +241,7 @@
var node = this._node;
if(!node._sprite)
return;
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var spriteCmd = node._sprite._renderCmd;
var spriteFlag = spriteCmd._dirtyFlag;
diff --git a/cocos2d/progress-timer/CCProgressTimerWebGLRenderCmd.js b/cocos2d/progress-timer/CCProgressTimerWebGLRenderCmd.js
index cc14d703d5..4c829203c2 100644
--- a/cocos2d/progress-timer/CCProgressTimerWebGLRenderCmd.js
+++ b/cocos2d/progress-timer/CCProgressTimerWebGLRenderCmd.js
@@ -27,7 +27,7 @@
*/
(function(){
cc.ProgressTimer.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._vertexWebGLBuffer = cc._renderContext.createBuffer();
@@ -37,7 +37,7 @@
this._vertexDataDirty = false;
};
- var proto = cc.ProgressTimer.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ProgressTimer.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.ProgressTimer.WebGLRenderCmd;
proto.rendering = function (ctx) {
@@ -84,7 +84,7 @@
var node = this._node;
if(!node._sprite)
return;
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
if(parentNode && parentNode._cascadeColorEnabled && (parentCmd._dirtyFlag & flags.colorDirty))
@@ -126,7 +126,7 @@
var node = this._node;
if(!node._sprite)
return;
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var spriteCmd = node._sprite._renderCmd;
var spriteFlag = spriteCmd._dirtyFlag;
diff --git a/cocos2d/render-texture/CCRenderTexture.js b/cocos2d/render-texture/CCRenderTexture.js
index 24c8d7ea07..bae59d8a31 100644
--- a/cocos2d/render-texture/CCRenderTexture.js
+++ b/cocos2d/render-texture/CCRenderTexture.js
@@ -67,7 +67,7 @@ cc.NextPOT = function (x) {
* the render texture to your scene and treat it like any other CocosNode.
* There are also functions for saving the render texture to disk in PNG or JPG format.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {cc.Sprite} sprite - The sprite.
* @property {cc.Sprite} clearFlags - Code for "auto" update.
@@ -76,7 +76,7 @@ cc.NextPOT = function (x) {
* @property {Number} clearStencilVal - Clear stencil value.
* @property {cc.Color} clearColorVal - Clear color value, valid only when "autoDraw" is true.
*/
-cc.RenderTexture = cc.Node.extend(/** @lends cc.RenderTexture# */{
+cc.RenderTexture = _ccsg.Node.extend(/** @lends cc.RenderTexture# */{
sprite:null,
//
@@ -111,7 +111,7 @@ cc.RenderTexture = cc.Node.extend(/** @lends cc.RenderTexture# */{
* @function
*/
ctor: function(width, height, format, depthStencilFormat){
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._cascadeColorEnabled = true;
this._cascadeOpacityEnabled = true;
this._pixelFormat = cc.Texture2D.PIXEL_FORMAT_RGBA8888;
@@ -137,7 +137,7 @@ cc.RenderTexture = cc.Node.extend(/** @lends cc.RenderTexture# */{
* @function
*/
cleanup: function(){
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
this._renderCmd.cleanup();
},
diff --git a/cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js b/cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js
index 854ebba1cc..f1db7cc172 100644
--- a/cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js
+++ b/cocos2d/render-texture/CCRenderTextureCanvasRenderCmd.js
@@ -24,7 +24,7 @@
(function(){
cc.RenderTexture.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._clearColorStr = "rgba(255,255,255,1)";
@@ -32,7 +32,7 @@
this._cacheContext = new cc.CanvasContextWrapper(this._cacheCanvas.getContext('2d'));
};
- var proto = cc.RenderTexture.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.RenderTexture.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = cc.RenderTexture.CanvasRenderCmd;
proto.cleanup = function(){
diff --git a/cocos2d/render-texture/CCRenderTextureWebGLRenderCmd.js b/cocos2d/render-texture/CCRenderTextureWebGLRenderCmd.js
index 50bed35f16..3d4b5b516e 100644
--- a/cocos2d/render-texture/CCRenderTextureWebGLRenderCmd.js
+++ b/cocos2d/render-texture/CCRenderTextureWebGLRenderCmd.js
@@ -24,7 +24,7 @@
(function(){
cc.RenderTexture.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._fBO = null;
@@ -37,7 +37,7 @@
this._fullViewport = new cc.Rect();
};
- var proto = cc.RenderTexture.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.RenderTexture.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = cc.RenderTexture.WebGLRenderCmd;
proto.setVirtualViewport = function(rtBegin, fullRect, fullViewport) {
diff --git a/cocos2d/shaders/CCGLProgram.js b/cocos2d/shaders/CCGLProgram.js
index 3eb4f505ad..70eae0eb69 100644
--- a/cocos2d/shaders/CCGLProgram.js
+++ b/cocos2d/shaders/CCGLProgram.js
@@ -750,7 +750,7 @@ cc.GLProgram._isHighpSupported = function(){
* It should be set in initialize phase.
*
* @function
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @param {cc.GLProgram} program The shader program which fetches from CCShaderCache.
* @example
* cc.setGLProgram(node, cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURECOLOR));
diff --git a/cocos2d/shape-nodes/CCDrawNode.js b/cocos2d/shape-nodes/CCDrawNode.js
index 7eb69935ef..4c1294d9bb 100644
--- a/cocos2d/shape-nodes/CCDrawNode.js
+++ b/cocos2d/shape-nodes/CCDrawNode.js
@@ -86,9 +86,9 @@ cc.__t = function (v) {
* Faster than the "drawing primitives" since they it draws everything in one single batch.
* @class
* @name cc.DrawNode
- * @extends cc.Node
+ * @extends _ccsg.Node
*/
-cc.DrawNode = cc.Node.extend(/** @lends cc.DrawNode# */{
+cc.DrawNode = _ccsg.Node.extend(/** @lends cc.DrawNode# */{
//TODO need refactor
_buffer:null,
@@ -194,7 +194,7 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
* Override it to extend its behavior, remember to call "this._super()" in the extended "ctor" function.
*/
ctor: function () {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
var locCmd = this._renderCmd;
locCmd._buffer = this._buffer = [];
locCmd._drawColor = this._drawColor = cc.color(255, 255, 255, 255);
@@ -525,7 +525,7 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
_className:"DrawNodeWebGL",
ctor:function () {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._buffer = [];
this._blendFunc = new cc.BlendFunc(cc.SRC_ALPHA, cc.ONE_MINUS_SRC_ALPHA);
this._drawColor = new cc.WebGLColor(255,255,255,255);
@@ -534,7 +534,7 @@ cc.game.once(cc.game.EVENT_RENDERER_INITED, function () {
},
init:function () {
- if (cc.Node.prototype.init.call(this)) {
+ if (_ccsg.Node.prototype.init.call(this)) {
this.shaderProgram = cc.shaderCache.programForKey(cc.SHADER_POSITION_LENGTHTEXTURECOLOR);
this._ensureCapacity(64);
this._trianglesWebBuffer = cc._renderContext.createBuffer();
diff --git a/cocos2d/shape-nodes/CCDrawNodeCanvasRenderCmd.js b/cocos2d/shape-nodes/CCDrawNodeCanvasRenderCmd.js
index 4cf153766e..02bc6ce7d4 100644
--- a/cocos2d/shape-nodes/CCDrawNodeCanvasRenderCmd.js
+++ b/cocos2d/shape-nodes/CCDrawNodeCanvasRenderCmd.js
@@ -25,14 +25,14 @@
(function(){
cc.DrawNode.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._buffer = null;
this._drawColor = null;
this._blendFunc = null;
};
- cc.DrawNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ cc.DrawNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
cc.DrawNode.CanvasRenderCmd.prototype.constructor = cc.DrawNode.CanvasRenderCmd;
cc.js.mixin( cc.DrawNode.CanvasRenderCmd.prototype, {
rendering: function (ctx, scaleX, scaleY) {
diff --git a/cocos2d/shape-nodes/CCDrawNodeWebGLRenderCmd.js b/cocos2d/shape-nodes/CCDrawNodeWebGLRenderCmd.js
index 2c393c6cdb..fe80c5bd27 100644
--- a/cocos2d/shape-nodes/CCDrawNodeWebGLRenderCmd.js
+++ b/cocos2d/shape-nodes/CCDrawNodeWebGLRenderCmd.js
@@ -24,11 +24,11 @@
(function(){
cc.DrawNode.WebGLRenderCmd = function (renderableObject) {
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
};
- cc.DrawNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ cc.DrawNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.DrawNode.WebGLRenderCmd.prototype.constructor = cc.DrawNode.WebGLRenderCmd;
cc.DrawNode.WebGLRenderCmd.prototype.rendering = function (ctx) {
diff --git a/cocos2d/text-input/CCTextFieldTTF.js b/cocos2d/text-input/CCTextFieldTTF.js
index cca8793964..9a157e6de9 100644
--- a/cocos2d/text-input/CCTextFieldTTF.js
+++ b/cocos2d/text-input/CCTextFieldTTF.js
@@ -85,7 +85,7 @@ cc.TextFieldDelegate = cc._Class.extend(/** @lends cc.TextFieldDelegate# */{
* @class
* @extends cc.LabelTTF
*
- * @property {cc.Node} delegate - Delegate
+ * @property {_ccsg.Node} delegate - Delegate
* @property {Number} charCount - <@readonly> Characators count
* @property {String} placeHolder - Place holder for the field
* @property {cc.Color} colorSpaceHolder
@@ -151,7 +151,7 @@ cc.TextFieldTTF = cc.LabelTTF.extend(/** @lends cc.TextFieldTTF# */{
/**
* Gets the delegate.
- * @return {cc.Node}
+ * @return {_ccsg.Node}
*/
getDelegate:function () {
return this.delegate;
@@ -159,7 +159,7 @@ cc.TextFieldTTF = cc.LabelTTF.extend(/** @lends cc.TextFieldTTF# */{
/**
* Set the delegate.
- * @param {cc.Node} value
+ * @param {_ccsg.Node} value
*/
setDelegate:function (value) {
this.delegate = value;
diff --git a/cocos2d/tilemap/CCTMXLayer.js b/cocos2d/tilemap/CCTMXLayer.js
index e0c88cba97..3b036a22e0 100644
--- a/cocos2d/tilemap/CCTMXLayer.js
+++ b/cocos2d/tilemap/CCTMXLayer.js
@@ -112,7 +112,7 @@ cc.TMXLayer = cc.SpriteBatchNode.extend(/** @lends cc.TMXLayer# */{
* @param {Number} [height] The untransformed size's height of the TMXLayer.
*/
setContentSize:function (size, height) {
- cc.Node.prototype.setContentSize.call(this, size, height);
+ _ccsg.Node.prototype.setContentSize.call(this, size, height);
this._renderCmd._updateCacheContext(size, height);
},
@@ -602,7 +602,7 @@ cc.TMXLayer = cc.SpriteBatchNode.extend(/** @lends cc.TMXLayer# */{
/**
* cc.TMXLayer doesn't support adding a cc.Sprite manually.
* @warning addChild(child); is not supported on cc.TMXLayer. Instead of setTileGID.
- * @param {cc.Node} child
+ * @param {_ccsg.Node} child
* @param {number} zOrder
* @param {number} tag
*/
diff --git a/cocos2d/tilemap/CCTMXTiledMap.js b/cocos2d/tilemap/CCTMXTiledMap.js
index fe14fa788f..708f90b4d7 100644
--- a/cocos2d/tilemap/CCTMXTiledMap.js
+++ b/cocos2d/tilemap/CCTMXTiledMap.js
@@ -96,7 +96,7 @@ cc.TMX_ORIENTATION_ISO = 2;
* objectGroup.getProperty(name_of_the_property);
* object.getProperty(name_of_the_property);
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
* @param {String} tmxFile tmxFile fileName or content string
* @param {String} resourcePath If tmxFile is a file name ,it is not required.If tmxFile is content string ,it is must required.
@@ -121,7 +121,7 @@ cc.TMX_ORIENTATION_ISO = 2;
* var xmlStr = cc.loader.getRes(filePath);
* var tmxTiledMap = new cc.TMXTiledMap(xmlStr, resources);
*/
-cc.TMXTiledMap = cc.Node.extend(/** @lends cc.TMXTiledMap# */{
+cc.TMXTiledMap = _ccsg.Node.extend(/** @lends cc.TMXTiledMap# */{
properties: null,
mapOrientation: null,
objectGroups: null,
@@ -140,7 +140,7 @@ cc.TMXTiledMap = cc.Node.extend(/** @lends cc.TMXTiledMap# */{
* @param {String} resourcePath If tmxFile is a file name ,it is not required.If tmxFile is content string ,it is must required.
*/
ctor:function(tmxFile,resourcePath){
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._mapSize = cc.size(0, 0);
this._tileSize = cc.size(0, 0);
diff --git a/cocos2d/transitions/CCTransition.js b/cocos2d/transitions/CCTransition.js
index 949893ba2f..0a818196a9 100644
--- a/cocos2d/transitions/CCTransition.js
+++ b/cocos2d/transitions/CCTransition.js
@@ -57,13 +57,13 @@ cc.TRANSITION_ORIENTATION_DOWN_OVER = 1;
/**
* @class
- * @extends cc.Scene
+ * @extends _ccsg.Scene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene the scene to transit with
+ * @param {_ccsg.Scene} scene the scene to transit with
* @example
* var trans = new TransitionScene(time,scene);
*/
-cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
+cc.TransitionScene = _ccsg.Scene.extend(/** @lends cc.TransitionScene# */{
_inScene:null,
_outScene:null,
_duration:null,
@@ -75,10 +75,10 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
* creates a base transition with duration and incoming scene
* Constructor of cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene the scene to transit with
+ * @param {_ccsg.Scene} scene the scene to transit with
*/
ctor:function (t, scene) {
- cc.Scene.prototype.ctor.call(this);
+ _ccsg.Scene.prototype.ctor.call(this);
if(t !== undefined && scene !== undefined)
this.initWithDuration(t, scene);
},
@@ -114,7 +114,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
this._inScene.visit();
this._outScene.visit();
}
- cc.Node.prototype.visit.call(this);
+ _ccsg.Node.prototype.visit.call(this);
},
/**
@@ -126,7 +126,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
*
*/
onEnter:function () {
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
// disable events while transitions
cc.eventManager.setEnabled(false);
@@ -147,7 +147,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
*
*/
onExit:function () {
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
// enable events while transitions
cc.eventManager.setEnabled(true);
@@ -163,7 +163,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
* custom cleanup
*/
cleanup:function () {
- cc.Node.prototype.cleanup.call(this);
+ _ccsg.Node.prototype.cleanup.call(this);
if (this._isSendCleanupToScene)
this._outScene.cleanup();
@@ -172,7 +172,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
/**
* initializes a transition with duration and incoming scene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene a scene to transit to
+ * @param {_ccsg.Scene} scene a scene to transit to
* @return {Boolean} return false if error
*/
initWithDuration:function (t, scene) {
@@ -191,7 +191,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
this._inScene = scene;
this._outScene = cc.director.getRunningScene();
if (!this._outScene) {
- this._outScene = new cc.Scene();
+ this._outScene = new _ccsg.Scene();
this._outScene.init();
}
@@ -246,7 +246,7 @@ cc.TransitionScene = cc.Scene.extend(/** @lends cc.TransitionScene# */{
* creates a base transition with duration and incoming scene
* @deprecated since v3.0, please use new cc.TransitionScene(t,scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene the scene to transit with
+ * @param {_ccsg.Scene} scene the scene to transit with
* @return {cc.TransitionScene|Null}
*/
cc.TransitionScene.create = function (t, scene) {
@@ -260,7 +260,7 @@ cc.TransitionScene.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
* @example
* var trans = new cc.TransitionSceneOriented(time,scene,orientation);
@@ -271,7 +271,7 @@ cc.TransitionSceneOriented = cc.TransitionScene.extend(/** @lends cc.TransitionS
/**
* Constructor of TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
*/
ctor:function (t, scene, orientation) {
@@ -281,7 +281,7 @@ cc.TransitionSceneOriented = cc.TransitionScene.extend(/** @lends cc.TransitionS
/**
* initialize the transition
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
* @return {Boolean}
*/
@@ -297,7 +297,7 @@ cc.TransitionSceneOriented = cc.TransitionScene.extend(/** @lends cc.TransitionS
* creates a base transition with duration and incoming scene
* @deprecated since v3.0 ,please use new cc.TransitionSceneOriented(t, scene, orientation) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} orientation
* @return {cc.TransitionSceneOriented}
*/
@@ -310,7 +310,7 @@ cc.TransitionSceneOriented.create = function (t, scene, orientation) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionRotoZoom(t, scene);
*/
@@ -320,7 +320,7 @@ cc.TransitionRotoZoom = cc.TransitionScene.extend(/** @lends cc.TransitionRotoZo
* Constructor of TransitionRotoZoom
* @function
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -360,7 +360,7 @@ cc.TransitionRotoZoom = cc.TransitionScene.extend(/** @lends cc.TransitionRotoZo
* Creates a Transtion rotation and zoom
* @deprecated since v3.0,please use new cc.TransitionRotoZoom(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene the scene to work with
+ * @param {_ccsg.Scene} scene the scene to work with
* @return {cc.TransitionRotoZoom}
*/
cc.TransitionRotoZoom.create = function (t, scene) {
@@ -372,7 +372,7 @@ cc.TransitionRotoZoom.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionJumpZoom(t, scene);
*/
@@ -380,7 +380,7 @@ cc.TransitionJumpZoom = cc.TransitionScene.extend(/** @lends cc.TransitionJumpZo
/**
* Constructor of TransitionJumpZoom
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -420,7 +420,7 @@ cc.TransitionJumpZoom = cc.TransitionScene.extend(/** @lends cc.TransitionJumpZo
* creates a scene transition that zooms then jump across the screen, the same for the incoming scene
* @deprecated since v3.0,please use new cc.TransitionJumpZoom(t, scene);
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionJumpZoom}
*/
cc.TransitionJumpZoom.create = function (t, scene) {
@@ -432,7 +432,7 @@ cc.TransitionJumpZoom.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionMoveInL(time,scene);
*/
@@ -440,7 +440,7 @@ cc.TransitionMoveInL = cc.TransitionScene.extend(/** @lends cc.TransitionMoveInL
/**
* Constructor of TransitionMoveInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -487,7 +487,7 @@ cc.TransitionMoveInL = cc.TransitionScene.extend(/** @lends cc.TransitionMoveInL
* creates an action that Move in from to the left the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionMoveInL(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionMoveInL}
*/
cc.TransitionMoveInL.create = function (t, scene) {
@@ -499,7 +499,7 @@ cc.TransitionMoveInL.create = function (t, scene) {
* @class
* @extends cc.TransitionMoveInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionMoveInR(time,scene);
*/
@@ -507,7 +507,7 @@ cc.TransitionMoveInR = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
/**
* Constructor of TransitionMoveInR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionMoveInL.prototype.ctor.call(this);
@@ -525,7 +525,7 @@ cc.TransitionMoveInR = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
* create a scene transition that Move in from to the right the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionMoveInR(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionMoveInR}
*/
cc.TransitionMoveInR.create = function (t, scene) {
@@ -537,7 +537,7 @@ cc.TransitionMoveInR.create = function (t, scene) {
* @class
* @extends cc.TransitionMoveInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionMoveInT(time,scene);
*/
@@ -545,7 +545,7 @@ cc.TransitionMoveInT = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
/**
* Constructor of TransitionMoveInT
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionMoveInL.prototype.ctor.call(this);
@@ -563,7 +563,7 @@ cc.TransitionMoveInT = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
* Move in from to the top the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionMoveInT(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionMoveInT}
*/
cc.TransitionMoveInT.create = function (t, scene) {
@@ -575,7 +575,7 @@ cc.TransitionMoveInT.create = function (t, scene) {
* @class
* @extends cc.TransitionMoveInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionMoveInB(time,scene);
*/
@@ -583,7 +583,7 @@ cc.TransitionMoveInB = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
/**
* Constructor of TransitionMoveInB
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionMoveInL.prototype.ctor.call(this);
@@ -602,7 +602,7 @@ cc.TransitionMoveInB = cc.TransitionMoveInL.extend(/** @lends cc.TransitionMoveI
* create a scene transition that Move in from to the bottom the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionMoveInB(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionMoveInB}
*/
cc.TransitionMoveInB.create = function (t, scene) {
@@ -624,7 +624,7 @@ cc.ADJUST_FACTOR = 0.5;
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = cc.TransitionSlideInL(time,scene);
*/
@@ -632,7 +632,7 @@ cc.TransitionSlideInL = cc.TransitionScene.extend(/** @lends cc.TransitionSlideI
/**
* Constructor of TransitionSlideInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -685,7 +685,7 @@ cc.TransitionSlideInL = cc.TransitionScene.extend(/** @lends cc.TransitionSlideI
* create a transition that a new scene is slided from left
* @deprecated since v3.0,please use new cc.TransitionSlideInL(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSlideInL}
*/
cc.TransitionSlideInL.create = function (t, scene) {
@@ -697,7 +697,7 @@ cc.TransitionSlideInL.create = function (t, scene) {
* @class
* @extends cc.TransitionSlideInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionSlideInR(time,scene);
*/
@@ -705,7 +705,7 @@ cc.TransitionSlideInR = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
/**
* Constructor of TransitionSlideInR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionSlideInL.prototype.ctor.call(this);
@@ -733,7 +733,7 @@ cc.TransitionSlideInR = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
* create Slide in the incoming scene from the right border.
* @deprecated since v3.0,please use new cc.TransitionSlideInR(t, scene) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSlideInR}
*/
cc.TransitionSlideInR.create = function (t, scene) {
@@ -745,7 +745,7 @@ cc.TransitionSlideInR.create = function (t, scene) {
* @class
* @extends cc.TransitionSlideInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionSlideInB(time,scene);
*/
@@ -753,7 +753,7 @@ cc.TransitionSlideInB = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
/**
* Constructor of TransitionSlideInB
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionSlideInL.prototype.ctor.call(this);
@@ -783,7 +783,7 @@ cc.TransitionSlideInB = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
* create a Slide in the incoming scene from the bottom border.
* @deprecated since v3.0,please use new cc.TransitionSlideInB(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSlideInB}
*/
cc.TransitionSlideInB.create = function (t, scene) {
@@ -795,7 +795,7 @@ cc.TransitionSlideInB.create = function (t, scene) {
* @class
* @extends cc.TransitionSlideInL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionSlideInT(time,scene);
*/
@@ -803,7 +803,7 @@ cc.TransitionSlideInT = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
/**
* Constructor of TransitionSlideInT
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionSlideInL.prototype.ctor.call(this);
@@ -833,7 +833,7 @@ cc.TransitionSlideInT = cc.TransitionSlideInL.extend(/** @lends cc.TransitionSli
* create a Slide in the incoming scene from the top border.
* @deprecated since v3.0,please use new cc.TransitionSlideInT(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSlideInT}
*/
cc.TransitionSlideInT.create = function (t, scene) {
@@ -845,7 +845,7 @@ cc.TransitionSlideInT.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionShrinkGrow(time,scene);
*/
@@ -853,7 +853,7 @@ cc.TransitionShrinkGrow = cc.TransitionScene.extend(/** @lends cc.TransitionShri
/**
* Constructor of TransitionShrinkGrow
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -896,7 +896,7 @@ cc.TransitionShrinkGrow = cc.TransitionScene.extend(/** @lends cc.TransitionShri
* Shrink the outgoing scene while grow the incoming scene
* @deprecated since v3.0,please use new cc.TransitionShrinkGrow(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionShrinkGrow}
*/
cc.TransitionShrinkGrow.create = function (t, scene) {
@@ -909,7 +909,7 @@ cc.TransitionShrinkGrow.create = function (t, scene) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionFlipX(t,scene,o);
@@ -919,7 +919,7 @@ cc.TransitionFlipX = cc.TransitionSceneOriented.extend(/** @lends cc.TransitionF
* Constructor of TransitionFlipX
* @function
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -973,7 +973,7 @@ cc.TransitionFlipX = cc.TransitionSceneOriented.extend(/** @lends cc.TransitionF
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionFlipX(t, scene,o) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionFlipX}
*/
@@ -987,7 +987,7 @@ cc.TransitionFlipX.create = function (t, scene, o) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionFlipY(time,scene,0);
@@ -997,7 +997,7 @@ cc.TransitionFlipY = cc.TransitionSceneOriented.extend(/** @lends cc.TransitionF
/**
* Constructor of TransitionFlipY
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -1049,7 +1049,7 @@ cc.TransitionFlipY = cc.TransitionSceneOriented.extend(/** @lends cc.TransitionF
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionFlipY(t, scene,o) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionFlipY}
*/
@@ -1063,7 +1063,7 @@ cc.TransitionFlipY.create = function (t, scene, o) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = cc.TransitionFlipAngular(time,scene,o);
@@ -1072,7 +1072,7 @@ cc.TransitionFlipAngular = cc.TransitionSceneOriented.extend(/** @lends cc.Trans
/**
* Constructor of TransitionFlipAngular
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -1124,7 +1124,7 @@ cc.TransitionFlipAngular = cc.TransitionSceneOriented.extend(/** @lends cc.Trans
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new new cc.TransitionFlipAngular(t, scene, o) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionFlipAngular}
*/
@@ -1138,7 +1138,7 @@ cc.TransitionFlipAngular.create = function (t, scene, o) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionZoomFlipX(time,scene,o);
@@ -1148,7 +1148,7 @@ cc.TransitionZoomFlipX = cc.TransitionSceneOriented.extend(/** @lends cc.Transit
/**
* Constructor of TransitionZoomFlipX
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -1206,7 +1206,7 @@ cc.TransitionZoomFlipX = cc.TransitionSceneOriented.extend(/** @lends cc.Transit
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new new cc.TransitionZoomFlipX(t, scene, o) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionZoomFlipX}
*/
@@ -1220,7 +1220,7 @@ cc.TransitionZoomFlipX.create = function (t, scene, o) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionZoomFlipY(t,scene,o);
@@ -1230,7 +1230,7 @@ cc.TransitionZoomFlipY = cc.TransitionSceneOriented.extend(/** @lends cc.Transit
/**
* Constructor of TransitionZoomFlipY
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -1286,7 +1286,7 @@ cc.TransitionZoomFlipY = cc.TransitionSceneOriented.extend(/** @lends cc.Transit
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new new cc.TransitionZoomFlipY(t, scene, o) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionZoomFlipY}
*/
@@ -1300,7 +1300,7 @@ cc.TransitionZoomFlipY.create = function (t, scene, o) {
* @class
* @extends cc.TransitionSceneOriented
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionZoomFlipAngular(time,scene,o);
@@ -1310,7 +1310,7 @@ cc.TransitionZoomFlipAngular = cc.TransitionSceneOriented.extend(/** @lends cc.T
/**
* Constructor of TransitionZoomFlipAngular
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, o) {
@@ -1365,7 +1365,7 @@ cc.TransitionZoomFlipAngular = cc.TransitionSceneOriented.extend(/** @lends cc.T
* The front face is the outgoing scene and the back face is the incoming scene.
* @deprecated since v3.0,please use new new cc.TransitionZoomFlipAngular(t, scene, o) instead
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @return {cc.TransitionZoomFlipAngular}
*/
@@ -1378,7 +1378,7 @@ cc.TransitionZoomFlipAngular.create = function (t, scene, o) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
* @example
* var trans = new cc.TransitionFade(time,scene,color)
@@ -1389,7 +1389,7 @@ cc.TransitionFade = cc.TransitionScene.extend(/** @lends cc.TransitionFade# */{
/**
* Constructor of TransitionFade
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
*/
ctor:function (t, scene, color) {
@@ -1430,7 +1430,7 @@ cc.TransitionFade = cc.TransitionScene.extend(/** @lends cc.TransitionFade# */{
/**
* initializes the transition with a duration and with an RGB color
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.Color} color
* @return {Boolean}
*/
@@ -1451,7 +1451,7 @@ cc.TransitionFade = cc.TransitionScene.extend(/** @lends cc.TransitionFade# */{
* Fade out the outgoing scene and then fade in the incoming scene.
* @deprecated since v3.0,please use new cc.TransitionFade(time,scene,color) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {cc.Color} color
* @return {cc.TransitionFade}
*/
@@ -1464,7 +1464,7 @@ cc.TransitionFade.create = function (t, scene, color) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionCrossFade(time,scene);
*/
@@ -1472,7 +1472,7 @@ cc.TransitionCrossFade = cc.TransitionScene.extend(/** @lends cc.TransitionCross
/**
* Constructor of TransitionCrossFade
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -1554,7 +1554,7 @@ cc.TransitionCrossFade = cc.TransitionScene.extend(/** @lends cc.TransitionCross
* stuff gets drawn here
*/
visit:function () {
- cc.Node.prototype.visit.call(this);
+ _ccsg.Node.prototype.visit.call(this);
},
/**
@@ -1569,7 +1569,7 @@ cc.TransitionCrossFade = cc.TransitionScene.extend(/** @lends cc.TransitionCross
* Cross fades two scenes using the cc.RenderTexture object.
* @deprecated since v3.0,please use new cc.TransitionCrossFade(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionCrossFade}
*/
cc.TransitionCrossFade.create = function (t, scene) {
@@ -1581,7 +1581,7 @@ cc.TransitionCrossFade.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionTurnOffTiles(time,scene);
*/
@@ -1590,7 +1590,7 @@ cc.TransitionTurnOffTiles = cc.TransitionScene.extend(/** @lends cc.TransitionTu
/**
* Constructor of TransitionCrossFade
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -1637,7 +1637,7 @@ cc.TransitionTurnOffTiles = cc.TransitionScene.extend(/** @lends cc.TransitionTu
* Turn off the tiles of the outgoing scene in random order
* @deprecated since v3.0,please use new cc.TransitionTurnOffTiles(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionTurnOffTiles}
*/
cc.TransitionTurnOffTiles.create = function (t, scene) {
@@ -1649,7 +1649,7 @@ cc.TransitionTurnOffTiles.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionSplitCols(time,scene);
*/
@@ -1663,7 +1663,7 @@ cc.TransitionSplitCols = cc.TransitionScene.extend(/** @lends cc.TransitionSplit
/**
* Constructor of TransitionSplitCols
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -1718,7 +1718,7 @@ cc.TransitionSplitCols = cc.TransitionScene.extend(/** @lends cc.TransitionSplit
* The odd columns goes upwards while the even columns goes downwards.
* @deprecated since v3.0,please use new cc.TransitionSplitCols(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSplitCols}
*/
cc.TransitionSplitCols.create = function (t, scene) {
@@ -1730,7 +1730,7 @@ cc.TransitionSplitCols.create = function (t, scene) {
* @class
* @extends cc.TransitionSplitCols
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionSplitRows(time,scene);
*/
@@ -1739,7 +1739,7 @@ cc.TransitionSplitRows = cc.TransitionSplitCols.extend(/** @lends cc.TransitionS
/**
* Constructor of TransitionSplitRows
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionSplitCols.prototype.ctor.call(this);
@@ -1757,7 +1757,7 @@ cc.TransitionSplitRows = cc.TransitionSplitCols.extend(/** @lends cc.TransitionS
* The odd rows goes to the left while the even rows goes to the right.
* @deprecated since v3.0,please use new cc.TransitionSplitRows(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionSplitRows}
*/
cc.TransitionSplitRows.create = function (t, scene) {
@@ -1769,7 +1769,7 @@ cc.TransitionSplitRows.create = function (t, scene) {
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionFadeTR(time,scene);
*/
@@ -1778,7 +1778,7 @@ cc.TransitionFadeTR = cc.TransitionScene.extend(/** @lends cc.TransitionFadeTR#
/**
* Constructor of TransitionFadeTR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -1835,7 +1835,7 @@ cc.TransitionFadeTR = cc.TransitionScene.extend(/** @lends cc.TransitionFadeTR#
* Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner.
* @deprecated since v3.0 please use new cc.TransitionFadeTR(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionFadeTR}
*/
cc.TransitionFadeTR.create = function (t, scene) {
@@ -1847,7 +1847,7 @@ cc.TransitionFadeTR.create = function (t, scene) {
* @class
* @extends cc.TransitionFadeTR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionFadeBL(time,scene)
*/
@@ -1855,7 +1855,7 @@ cc.TransitionFadeBL = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeBL#
/**
* Constructor of TransitionFadeBL
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionFadeTR.prototype.ctor.call(this);
@@ -1875,7 +1875,7 @@ cc.TransitionFadeBL = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeBL#
* Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner.
* @deprecated since v3.0,please use new cc.TransitionFadeBL(t, scene);
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionFadeBL}
*/
cc.TransitionFadeBL.create = function (t, scene) {
@@ -1887,7 +1887,7 @@ cc.TransitionFadeBL.create = function (t, scene) {
* @class
* @extends cc.TransitionFadeTR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionFadeUp(time,scene);
*/
@@ -1897,7 +1897,7 @@ cc.TransitionFadeUp = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeUp#
* Constructor of TransitionFadeUp
* @function
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionFadeTR.prototype.ctor.call(this);
@@ -1917,7 +1917,7 @@ cc.TransitionFadeUp = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeUp#
* Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner.
* @deprecated since v3.0,please use new cc.TransitionFadeUp(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionFadeUp}
*/
cc.TransitionFadeUp.create = function (t, scene) {
@@ -1929,7 +1929,7 @@ cc.TransitionFadeUp.create = function (t, scene) {
* @class
* @extends cc.TransitionFadeTR
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionFadeDown(time,scene);
*/
@@ -1938,7 +1938,7 @@ cc.TransitionFadeDown = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeD
/**
* Constructor of TransitionFadeDown
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionFadeTR.prototype.ctor.call(this);
@@ -1958,7 +1958,7 @@ cc.TransitionFadeDown = cc.TransitionFadeTR.extend(/** @lends cc.TransitionFadeD
* Fade the tiles of the outgoing scene from the top to the bottom.
* @deprecated since v3.0,please use new cc.TransitionFadeDown(t, scene) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionFadeDown}
*/
cc.TransitionFadeDown.create = function (t, scene) {
diff --git a/cocos2d/transitions/CCTransitionPageTurn.js b/cocos2d/transitions/CCTransitionPageTurn.js
index 6b71fd848b..2008d032ce 100644
--- a/cocos2d/transitions/CCTransitionPageTurn.js
+++ b/cocos2d/transitions/CCTransitionPageTurn.js
@@ -35,7 +35,7 @@
* @class
* @extends cc.TransitionScene
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {Boolean} backwards
* @example
* var trans = new cc.TransitionPageTurn(t, scene, backwards);
@@ -44,7 +44,7 @@ cc.TransitionPageTurn = cc.TransitionScene.extend(/** @lends cc.TransitionPageTu
/**
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {Boolean} backwards
*/
ctor:function (t, scene, backwards) {
@@ -65,7 +65,7 @@ cc.TransitionPageTurn = cc.TransitionScene.extend(/** @lends cc.TransitionPageTu
* If back is true then the effect is reversed to appear as if the incoming
* scene is being turned from left over the outgoing scene.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {Boolean} backwards
* @return {Boolean}
*/
@@ -143,7 +143,7 @@ cc.TransitionPageTurn = cc.TransitionScene.extend(/** @lends cc.TransitionPageTu
* scene is being turned from left over the outgoing scene.
* @deprecated since v3.0,please use new cc.TransitionPageTurn(t, scene, backwards) instead.
* @param {Number} t time in seconds
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @param {Boolean} backwards
* @return {cc.TransitionPageTurn}
*/
diff --git a/cocos2d/transitions/CCTransitionProgress.js b/cocos2d/transitions/CCTransitionProgress.js
index 4d4a077516..bb172d7ed0 100644
--- a/cocos2d/transitions/CCTransitionProgress.js
+++ b/cocos2d/transitions/CCTransitionProgress.js
@@ -36,7 +36,7 @@ cc.SCENE_RADIAL = 0xc001;
* @class
* @extends cc.TransitionScene
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionProgress(time,scene);
*/
@@ -48,7 +48,7 @@ cc.TransitionProgress = cc.TransitionScene.extend(/** @lends cc.TransitionProgre
/**
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionScene.prototype.ctor.call(this);
@@ -137,7 +137,7 @@ cc.TransitionProgress = cc.TransitionScene.extend(/** @lends cc.TransitionProgre
* @deprecated since v3.0,please use new cc.TransitionProgress(t, scene) instead.
* @function
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgress}
*/
cc.TransitionProgress.create = function (t, scene) {
@@ -150,7 +150,7 @@ cc.TransitionProgress.create = function (t, scene) {
* @class
* @extends cc.TransitionProgress
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionProgressRadialCCW(t, scene);
*/
@@ -158,7 +158,7 @@ cc.TransitionProgressRadialCCW = cc.TransitionProgress.extend(/** @lends cc.Tran
/**
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -188,7 +188,7 @@ cc.TransitionProgressRadialCCW = cc.TransitionProgress.extend(/** @lends cc.Tran
* create a cc.TransitionProgressRadialCCW object
* @deprecated since v3.0,please use new cc.TransitionProgressRadialCCW(t, scene) instead.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressRadialCCW}
* @example
* var trans = new cc.TransitionProgressRadialCCW(time,scene);
@@ -203,14 +203,14 @@ cc.TransitionProgressRadialCCW.create = function (t, scene) {
* @class
* @extends cc.TransitionProgress
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionProgressRadialCW(t, scene);
*/
cc.TransitionProgressRadialCW = cc.TransitionProgress.extend(/** @lends cc.TransitionProgressRadialCW# */{
/**
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -240,7 +240,7 @@ cc.TransitionProgressRadialCW = cc.TransitionProgress.extend(/** @lends cc.Trans
* create a cc.TransitionProgressRadialCW object
* @deprecated since v3.0,please use cc.TransitionProgressRadialCW(t, scene) instead.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressRadialCW}
*/
cc.TransitionProgressRadialCW.create = function (t, scene) {
@@ -257,14 +257,14 @@ cc.TransitionProgressRadialCW.create = function (t, scene) {
* @class
* @extends cc.TransitionProgress
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionProgressHorizontal(t, scene);
*/
cc.TransitionProgressHorizontal = cc.TransitionProgress.extend(/** @lends cc.TransitionProgressHorizontal# */{
/**
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -295,7 +295,7 @@ cc.TransitionProgressHorizontal = cc.TransitionProgress.extend(/** @lends cc.Tra
* create a cc.TransitionProgressHorizontal object
* @deprecated since v3.0,please use new cc.TransitionProgressHorizontal(t, scene) instead.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressHorizontal}
*/
cc.TransitionProgressHorizontal.create = function (t, scene) {
@@ -307,7 +307,7 @@ cc.TransitionProgressHorizontal.create = function (t, scene) {
* @class
* @extends cc.TransitionProgress
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @example
* var trans = new cc.TransitionProgressVertical(t, scene);
*/
@@ -315,7 +315,7 @@ cc.TransitionProgressVertical = cc.TransitionProgress.extend(/** @lends cc.Trans
/**
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -346,7 +346,7 @@ cc.TransitionProgressVertical = cc.TransitionProgress.extend(/** @lends cc.Trans
* create a cc.TransitionProgressVertical object
* @deprecated since v3.0,please use new cc.TransitionProgressVertical(t, scene) instead.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressVertical}
*/
cc.TransitionProgressVertical.create = function (t, scene) {
@@ -363,7 +363,7 @@ cc.TransitionProgressInOut = cc.TransitionProgress.extend(/** @lends cc.Transiti
/**
* The constructor of cc.TransitionProgressInOut. override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -402,7 +402,7 @@ cc.TransitionProgressInOut = cc.TransitionProgress.extend(/** @lends cc.Transiti
* @function
* @deprecated
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressInOut}
*/
cc.TransitionProgressInOut.create = function (t, scene) {
@@ -419,7 +419,7 @@ cc.TransitionProgressOutIn = cc.TransitionProgress.extend(/** @lends cc.Transiti
/**
* The constructor of cc.TransitionProgressOutIn. override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
*/
ctor:function (t, scene) {
cc.TransitionProgress.prototype.ctor.call(this);
@@ -450,7 +450,7 @@ cc.TransitionProgressOutIn = cc.TransitionProgress.extend(/** @lends cc.Transiti
* @function
* @deprecated
* @param {Number} t time
- * @param {cc.Scene} scene
+ * @param {_ccsg.Scene} scene
* @return {cc.TransitionProgressOutIn}
*/
cc.TransitionProgressOutIn.create = function (t, scene) {
diff --git a/extensions/ccb-reader/CCBReader.js b/extensions/ccb-reader/CCBReader.js
index 0a7af84bbe..577a1e0ccc 100644
--- a/extensions/ccb-reader/CCBReader.js
+++ b/extensions/ccb-reader/CCBReader.js
@@ -102,7 +102,7 @@ var CCB_SIZETYPE_MULTIPLY_RESOLUTION = 5;
var CCB_SCALETYPE_ABSOLUTE = 0;
var CCB_SCALETYPE_MULTIPLY_RESOLUTION = 1;
-cc.BuilderFile = cc.Node.extend({
+cc.BuilderFile = _ccsg.Node.extend({
_ccbFileNode:null,
getCCBFileNode:function () {
@@ -305,7 +305,7 @@ cc.BuilderReader = cc._Class.extend({
createSceneWithNodeGraphFromFile:function (ccbFileName, owner, parentSize, animationManager) {
var node = this.readNodeGraphFromFile(ccbFileName, owner, parentSize, animationManager);
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
scene.addChild(node);
return scene;
},
@@ -964,7 +964,7 @@ cc.BuilderReader.loadAsScene = function (ccbFilePath, owner, parentSize, ccbRoot
var getNode = cc.BuilderReader.load(ccbFilePath, owner, parentSize, ccbRootPath);
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
scene.addChild(getNode);
return scene;
};
diff --git a/extensions/ccb-reader/CCBReaderUtil.js b/extensions/ccb-reader/CCBReaderUtil.js
index d992f14520..c00967810e 100644
--- a/extensions/ccb-reader/CCBReaderUtil.js
+++ b/extensions/ccb-reader/CCBReaderUtil.js
@@ -44,7 +44,7 @@ cc.BuilderMemberVariableAssigner = cc._Class.extend({
* @note The member variable must be CCNode or its subclass.
* @param {Object} target The custom class
* @param {string} memberVariableName The name of the member variable.
- * @param {cc.Node} node The member variable.
+ * @param {_ccsg.Node} node The member variable.
* @return {Boolean} Whether the assignment was successful.
*/
onAssignCCBMemberVariable:function(target,memberVariableName, node){ return false;},
diff --git a/extensions/ccb-reader/CCNodeLoader.js b/extensions/ccb-reader/CCNodeLoader.js
index cbfb833aec..a00117f193 100644
--- a/extensions/ccb-reader/CCNodeLoader.js
+++ b/extensions/ccb-reader/CCNodeLoader.js
@@ -332,7 +332,7 @@ cc.NodeLoader = cc._Class.extend({
},
_createCCNode:function (parent, ccbReader) {
- return new cc.Node();
+ return new _ccsg.Node();
},
parsePropTypePosition:function (node, parent, ccbReader, propertyName) {
diff --git a/extensions/ccui/base-classes/CCProtectedNode.js b/extensions/ccui/base-classes/CCProtectedNode.js
index e3b1d976f0..09967df2b7 100644
--- a/extensions/ccui/base-classes/CCProtectedNode.js
+++ b/extensions/ccui/base-classes/CCProtectedNode.js
@@ -23,11 +23,11 @@
****************************************************************************/
/**
- * A class inhert from cc.Node, use for saving some protected children in other list.
+ * A class inhert from ccsg.Node, use for saving some protected children in other list.
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*/
-cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
+cc.ProtectedNode = _ccsg.Node.extend(/** @lends cc.ProtectedNode# */{
_protectedChildren: null,
_reorderProtectedChildDirty: false,
@@ -42,7 +42,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* @function
*/
ctor: function(){
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._protectedChildren = [];
},
@@ -51,7 +51,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* Adds a child to the container with z order and tag
* If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately.
*
- * @param {cc.Node} child A child node
+ * @param {_ccsg.Node} child A child node
* @param {Number} [localZOrder] Z order for drawing priority. Please refer to `setLocalZOrder(int)`
* @param {Number} [tag] An integer to identify the node easily. Please refer to `setTag(int)`
*/
@@ -82,7 +82,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
/**
* Gets a child from the container with its tag
* @param {Number} tag An identifier to find the child node.
- * @return {cc.Node} a Node object whose tag equals to the input parameter
+ * @return {_ccsg.Node} a Node object whose tag equals to the input parameter
*/
getProtectedChildByTag: function(tag){
cc.assert(tag !== cc.NODE_TAG_INVALID, "Invalid tag");
@@ -95,7 +95,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
/**
* Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter.
- * @param {cc.Node} child The child node which will be removed.
+ * @param {_ccsg.Node} child The child node which will be removed.
* @param {Boolean} [cleanup=true] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
*/
removeProtectedChild: function(child, cleanup){
@@ -179,7 +179,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
/**
* Reorders a child according to a new z value.
- * @param {cc.Node} child An already added child node. It MUST be already added.
+ * @param {_ccsg.Node} child An already added child node. It MUST be already added.
* @param {Number} localZOrder Z order for drawing priority. Please refer to setLocalZOrder(int)
*/
reorderProtectedChild: function(child, localZOrder){
@@ -231,7 +231,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* @override
*/
cleanup: function(){
- cc.Node.prototype.cleanup.call(this);
+ _ccsg.Node.prototype.cleanup.call(this);
var locChildren = this._protectedChildren;
for(var i = 0 , len = locChildren.length; i < len; i++)
locChildren[i].cleanup();
@@ -242,7 +242,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* @override
*/
onEnter: function(){
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
var locChildren = this._protectedChildren;
for(var i = 0, len = locChildren.length;i< len;i++)
locChildren[i].onEnter();
@@ -257,7 +257,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* @override
*/
onEnterTransitionDidFinish: function(){
- cc.Node.prototype.onEnterTransitionDidFinish.call(this);
+ _ccsg.Node.prototype.onEnterTransitionDidFinish.call(this);
var locChildren = this._protectedChildren;
for(var i = 0, len = locChildren.length;i< len;i++)
locChildren[i].onEnterTransitionDidFinish();
@@ -268,7 +268,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
* @override
*/
onExit:function(){
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
var locChildren = this._protectedChildren;
for(var i = 0, len = locChildren.length;i< len;i++)
locChildren[i].onExit();
@@ -281,7 +281,7 @@ cc.ProtectedNode = cc.Node.extend(/** @lends cc.ProtectedNode# */{
*
*/
onExitTransitionDidStart: function(){
- cc.Node.prototype.onExitTransitionDidStart.call(this);
+ _ccsg.Node.prototype.onExitTransitionDidStart.call(this);
var locChildren = this._protectedChildren;
for(var i = 0, len = locChildren.length;i< len;i++)
locChildren[i].onExitTransitionDidStart();
diff --git a/extensions/ccui/base-classes/CCProtectedNodeCanvasRenderCmd.js b/extensions/ccui/base-classes/CCProtectedNodeCanvasRenderCmd.js
index 351438ae36..ca9831b742 100644
--- a/extensions/ccui/base-classes/CCProtectedNodeCanvasRenderCmd.js
+++ b/extensions/ccui/base-classes/CCProtectedNodeCanvasRenderCmd.js
@@ -70,7 +70,7 @@
}
}
}
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.colorDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.colorDirty ^ this._dirtyFlag;
},
_updateDisplayOpacity: function (parentOpacity) {
@@ -112,13 +112,13 @@
}
}
}
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.opacityDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.opacityDirty ^ this._dirtyFlag;
},
_changeProtectedChild: function (child) {
var cmd = child._renderCmd,
dirty = cmd._dirtyFlag,
- flags = cc.Node._dirtyFlags;
+ flags = _ccsg.Node._dirtyFlags;
if (this._dirtyFlag & flags.colorDirty)
dirty |= flags.colorDirty;
@@ -139,12 +139,12 @@
};
cc.ProtectedNode.CanvasRenderCmd = function (renderable) {
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._cachedParent = null;
this._cacheDirty = false;
};
- var proto = cc.ProtectedNode.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = cc.ProtectedNode.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
cc.js.mixin(proto, cc.ProtectedNode.RenderCmd);
proto.constructor = cc.ProtectedNode.CanvasRenderCmd;
diff --git a/extensions/ccui/base-classes/CCProtectedNodeWebGLRenderCmd.js b/extensions/ccui/base-classes/CCProtectedNodeWebGLRenderCmd.js
index deb34b2227..66e763a55b 100644
--- a/extensions/ccui/base-classes/CCProtectedNodeWebGLRenderCmd.js
+++ b/extensions/ccui/base-classes/CCProtectedNodeWebGLRenderCmd.js
@@ -23,13 +23,13 @@
****************************************************************************/
(function(){
- if(!cc.Node.WebGLRenderCmd)
+ if(!_ccsg.Node.WebGLRenderCmd)
return;
cc.ProtectedNode.WebGLRenderCmd = function (renderable) {
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
};
- var proto = cc.ProtectedNode.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = cc.ProtectedNode.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.js.mixin(proto, cc.ProtectedNode.RenderCmd);
proto.constructor = cc.ProtectedNode.WebGLRenderCmd;
diff --git a/extensions/ccui/base-classes/UIScale9Sprite.js b/extensions/ccui/base-classes/UIScale9Sprite.js
index ff2d12c913..e51d7d9e88 100644
--- a/extensions/ccui/base-classes/UIScale9Sprite.js
+++ b/extensions/ccui/base-classes/UIScale9Sprite.js
@@ -41,7 +41,7 @@ EventTarget = require("../cocos2d/core/event/event-target");
* @see http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCScale9Sprite.html
*
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {cc.Size} preferredSize - The preferred size of the 9-slice sprite
* @property {cc.Rect} capInsets - The cap insets of the 9-slice sprite
@@ -51,7 +51,7 @@ EventTarget = require("../cocos2d/core/event/event-target");
* @property {Number} insetBottom - The bottom inset of the 9-slice sprite
*/
-ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprite# */{
+ccui.Scale9Sprite = cc.Scale9Sprite = _ccsg.Node.extend(/** @lends ccui.Scale9Sprite# */{
_textureInited:false,
_spriteRect: null,
@@ -94,7 +94,7 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
_quadsDirty : true,
ctor: function(file, rect, capInsets) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._nonSliceSpriteAnchor = cc.p(0.5,0.5);
this._originalSize = cc.size(0,0);
this._preferredSize = cc.rect(0,0,0,0);
@@ -409,14 +409,14 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
{
return;
}
- cc.Node.prototype.setContentSize.call(this, size);
+ _ccsg.Node.prototype.setContentSize.call(this, size);
this._preferredSize = size;
this._quadsDirty = true;
this._adjustScale9ImagePosition();
},
setAnchorPoint : function(anchorPoint){
- cc.Node.prototype.setAnchorPoint.call(this, anchorPoint);
+ _ccsg.Node.prototype.setAnchorPoint.call(this, anchorPoint);
if (!this._scale9Enabled)
{
if (this._scale9Image !== null)
@@ -688,14 +688,14 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
if (this._flippedX) {
scaleX = scaleX * -1;
}
- cc.Node.prototype.setScaleX.call(this,scaleX);
+ _ccsg.Node.prototype.setScaleX.call(this,scaleX);
},
setScaleY : function(scaleY){
if (this._flippedY) {
scaleY = scaleY * -1;
}
- cc.Node.prototype.setScaleY.call(this,scaleY);
+ _ccsg.Node.prototype.setScaleY.call(this,scaleY);
},
setScale : function(scaleX, scaleY){
@@ -705,7 +705,7 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
},
getScaleX : function(){
- var originalScale = cc.Node.prototype.getScaleX.call(this);
+ var originalScale = _ccsg.Node.prototype.getScaleX.call(this);
if (this._flippedX)
{
originalScale = originalScale * -1.0;
@@ -714,7 +714,7 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
},
getScaleY : function() {
- var originalScale = cc.Node.prototype.getScaleY.call(this);
+ var originalScale = _ccsg.Node.prototype.getScaleY.call(this);
if (this._flippedY)
{
originalScale = originalScale * -1.0;
@@ -727,7 +727,7 @@ ccui.Scale9Sprite = cc.Scale9Sprite = cc.Node.extend(/** @lends ccui.Scale9Sprit
},
setCameraMask : function(mask,applyChildren/** = true**/){
- cc.Node.prototype.setCameraMask.call(this,mask,applyChildren);
+ _ccsg.Node.prototype.setCameraMask.call(this,mask,applyChildren);
if(this._scale9Image)
this._scale9Image.setCameraMask(mask,applyChildren);
},
diff --git a/extensions/ccui/base-classes/UIScale9SpriteCanvasRenderCmd.js b/extensions/ccui/base-classes/UIScale9SpriteCanvasRenderCmd.js
index 2167c3ae07..0c5bd5b124 100644
--- a/extensions/ccui/base-classes/UIScale9SpriteCanvasRenderCmd.js
+++ b/extensions/ccui/base-classes/UIScale9SpriteCanvasRenderCmd.js
@@ -24,17 +24,17 @@
(function() {
ccui.Scale9Sprite.CanvasRenderCmd = function (renderable) {
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = true;
this._state = ccui.Scale9Sprite.state.NORMAL;
this._textureToRender = null;
};
- var proto = ccui.Scale9Sprite.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = ccui.Scale9Sprite.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = ccui.Scale9Sprite.CanvasRenderCmd;
proto._updateDisplayOpacity = function(parentOpacity){
- cc.Node.WebGLRenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
+ _ccsg.Node.WebGLRenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
var node = this._node;
var scale9Image = node._scale9Image;
if(scale9Image) {
@@ -45,7 +45,7 @@
};
proto._updateDisplayColor = function(parentColor){
- cc.Node.WebGLRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
+ _ccsg.Node.WebGLRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
var node = this._node;
var scale9Image = node._scale9Image;
if(scale9Image){
diff --git a/extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js b/extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js
index cbf1aa0d41..4b559d2a1d 100644
--- a/extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js
+++ b/extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js
@@ -23,10 +23,10 @@
****************************************************************************/
(function() {
- if(!cc.Node.WebGLRenderCmd)
+ if(!_ccsg.Node.WebGLRenderCmd)
return;
ccui.Scale9Sprite.WebGLRenderCmd = function (renderable) {
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = true;
this._cachedParent = null;
this._cacheDirty = false;
@@ -34,7 +34,7 @@
this._colorOpacityDirty = false;
};
- var proto = ccui.Scale9Sprite.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = ccui.Scale9Sprite.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = ccui.Scale9Sprite.WebGLRenderCmd;
proto.rendering = function (ctx){
@@ -102,7 +102,7 @@
};
proto._updateDisplayOpacity = function(parentOpacity){
- cc.Node.WebGLRenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
+ _ccsg.Node.WebGLRenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
var node = this._node;
var scale9Image = node._scale9Image;
if(scale9Image) {
@@ -115,7 +115,7 @@
};
proto._updateDisplayColor = function(parentColor){
- cc.Node.WebGLRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
+ _ccsg.Node.WebGLRenderCmd.prototype._updateDisplayColor.call(this, parentColor);
var node = this._node;
var scale9Image = node._scale9Image;
if(scale9Image){
diff --git a/extensions/ccui/base-classes/UIWidget.js b/extensions/ccui/base-classes/UIWidget.js
index d46cdaa8e6..59af44235f 100644
--- a/extensions/ccui/base-classes/UIWidget.js
+++ b/extensions/ccui/base-classes/UIWidget.js
@@ -365,7 +365,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
setContentSize: function(contentSize, height){
var locWidth = (height === undefined) ? contentSize.width : contentSize;
var locHeight = (height === undefined) ? contentSize.height : height;
- cc.Node.prototype.setContentSize.call(this, locWidth, locHeight);
+ _ccsg.Node.prototype.setContentSize.call(this, locWidth, locHeight);
this._customSize.width = locWidth;
this._customSize.height = locHeight;
@@ -384,7 +384,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
},
_setWidth: function (w) {
- cc.Node.prototype._setWidth.call(this, w);
+ _ccsg.Node.prototype._setWidth.call(this, w);
this._customSize.width = w;
if(this._unifySize){
//unify size logic
@@ -400,7 +400,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
this._onSizeChanged();
},
_setHeight: function (h) {
- cc.Node.prototype._setHeight.call(this, h);
+ _ccsg.Node.prototype._setHeight.call(this, h);
this._customSize.height = h;
if(this._unifySize){
//unify size logic
@@ -1155,7 +1155,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
}
}
- cc.Node.prototype.setPosition.call(this, pos, posY);
+ _ccsg.Node.prototype.setPosition.call(this, pos, posY);
//this._positionType = ccui.Widget.POSITION_ABSOLUTE;
},
@@ -1171,7 +1171,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
}
}
- cc.Node.prototype.setPositionX.call(this, x);
+ _ccsg.Node.prototype.setPositionX.call(this, x);
},
setPositionY: function (y) {
if (this._running) {
@@ -1185,7 +1185,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
}
}
- cc.Node.prototype.setPositionY.call(this, y);
+ _ccsg.Node.prototype.setPositionY.call(this, y);
},
/**
@@ -1203,7 +1203,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
this._setXPercent(percent.x);
this._setYPercent(percent.y);
}
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
_setXPercent: function (percent) {
if (this._usingLayoutComponent){
@@ -1270,7 +1270,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
component.setPositionPercentYEnabled(true);
}
}
- this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this._renderCmd.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
/**
@@ -1629,7 +1629,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Adds a node for widget (this function is deleted in -x)
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @param {Number} zOrder
* @param {Number} tag
* @deprecated since v3.0, please use addChild instead.
@@ -1639,7 +1639,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
cc.log("Please use addChild to add a Widget.");
return;
}
- cc.Node.prototype.addChild.call(this, node, zOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, node, zOrder, tag);
this._nodes.push(node);
},
@@ -1647,7 +1647,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
* Gets node by tag
* @deprecated since v3.0, please use getChildByTag instead.
* @param {Number} tag
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getNodeByTag: function (tag) {
var _nodes = this._nodes;
@@ -1672,11 +1672,11 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
/**
* Removes a node from ccui.Widget
* @deprecated since v3.0, please use removeChild instead.
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @param {Boolean} cleanup
*/
removeNode: function (node, cleanup) {
- cc.Node.prototype.removeChild.call(this, node, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, node, cleanup);
cc.js.array.remove(this._nodes, node);
},
@@ -1701,7 +1701,7 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
removeAllNodes: function () {
for (var i = 0; i < this._nodes.length; i++) {
var node = this._nodes[i];
- cc.Node.prototype.removeChild.call(this, node);
+ _ccsg.Node.prototype.removeChild.call(this, node);
}
this._nodes.length = 0;
},
@@ -1749,12 +1749,12 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
setScaleX: function(scaleX){
if (this._flippedX)
scaleX = scaleX * -1;
- cc.Node.prototype.setScaleX.call(this, scaleX);
+ _ccsg.Node.prototype.setScaleX.call(this, scaleX);
},
setScaleY: function(scaleY){
if (this._flippedY)
scaleY = scaleY * -1;
- cc.Node.prototype.setScaleY.call(this, scaleY);
+ _ccsg.Node.prototype.setScaleY.call(this, scaleY);
},
setScale: function(scaleX, scaleY){
if(scaleY === undefined)
@@ -1764,13 +1764,13 @@ ccui.Widget = ccui.ProtectedNode.extend(/** @lends ccui.Widget# */{
},
getScaleX: function(){
- var originalScale = cc.Node.prototype.getScaleX.call(this);
+ var originalScale = _ccsg.Node.prototype.getScaleX.call(this);
if (this._flippedX)
originalScale = originalScale * -1.0;
return originalScale;
},
getScaleY: function(){
- var originalScale = cc.Node.prototype.getScaleY.call(this);
+ var originalScale = _ccsg.Node.prototype.getScaleY.call(this);
if (this._flippedY)
originalScale = originalScale * -1.0;
return originalScale;
diff --git a/extensions/ccui/layouts/UILayout.js b/extensions/ccui/layouts/UILayout.js
index 77eb4f9fb7..6c0d302234 100644
--- a/extensions/ccui/layouts/UILayout.js
+++ b/extensions/ccui/layouts/UILayout.js
@@ -310,7 +310,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{
* If clippingEnabled is true, it will clip/scissor area.
*
* @override
- * @param {cc.Node.RenderCmd} [parentCmd]
+ * @param {_ccsg.Node.RenderCmd} [parentCmd]
*/
visit: function (parentCmd) {
if (!this._visible)
diff --git a/extensions/ccui/layouts/UILayoutWebGLRenderCmd.js b/extensions/ccui/layouts/UILayoutWebGLRenderCmd.js
index baf4773fca..9336076844 100644
--- a/extensions/ccui/layouts/UILayoutWebGLRenderCmd.js
+++ b/extensions/ccui/layouts/UILayoutWebGLRenderCmd.js
@@ -180,7 +180,7 @@
ccui.Layout.WebGLRenderCmd._visit_once = false;
}
// draw everything, as if there where no stencil
- cc.Node.prototype.visit.call(node, parentCmd);
+ _ccsg.Node.prototype.visit.call(node, parentCmd);
return;
}
diff --git a/extensions/ccui/system/CocosGUI.js b/extensions/ccui/system/CocosGUI.js
index 022c32430a..f9c36d71b9 100644
--- a/extensions/ccui/system/CocosGUI.js
+++ b/extensions/ccui/system/CocosGUI.js
@@ -39,16 +39,16 @@ ccui.Class = ccui.Class || cc._Class;
ccui.Class.extend = ccui.Class.extend || cc._Class.extend;
/**
- * that same as cc.Node
+ * that same as _ccsg.Node
* @class
* @extends ccui.Class
*/
-ccui.Node = ccui.Node || cc.Node;
-ccui.Node.extend = ccui.Node.extend || cc.Node.extend;
+ccui.Node = ccui.Node || _ccsg.Node;
+ccui.Node.extend = ccui.Node.extend || _ccsg.Node.extend;
/**
- * that same as cc.Node
+ * that same as _ccsg.Node
* @class
* @extends ccui.Node
*/
diff --git a/extensions/ccui/system/UIHelper.js b/extensions/ccui/system/UIHelper.js
index 70d82c9b84..260d61d5dc 100644
--- a/extensions/ccui/system/UIHelper.js
+++ b/extensions/ccui/system/UIHelper.js
@@ -122,7 +122,7 @@ ccui.helper = {
_activeLayout: true,
/**
* Refresh object and it's children layout state
- * @param {cc.Node} rootNode
+ * @param {_ccsg.Node} rootNode
*/
doLayout: function(rootNode){
if(!this._activeLayout)
diff --git a/extensions/ccui/uiwidgets/UIButton.js b/extensions/ccui/uiwidgets/UIButton.js
index e857e86b68..fa01540e52 100644
--- a/extensions/ccui/uiwidgets/UIButton.js
+++ b/extensions/ccui/uiwidgets/UIButton.js
@@ -613,7 +613,7 @@ ccui.Button = ccui.Widget.extend(/** @lends ccui.Button# */{
/**
* Gets the Virtual Renderer of widget.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
if (this._bright) {
diff --git a/extensions/ccui/uiwidgets/UICheckBox.js b/extensions/ccui/uiwidgets/UICheckBox.js
index d5240daaff..7509c73a72 100644
--- a/extensions/ccui/uiwidgets/UICheckBox.js
+++ b/extensions/ccui/uiwidgets/UICheckBox.js
@@ -511,7 +511,7 @@ ccui.CheckBox = ccui.Widget.extend(/** @lends ccui.CheckBox# */{
/**
* override "getVirtualRenderer" method of widget.
* @override
- * @returns {cc.Node} the renderer of ccui.CheckBox.
+ * @returns {_ccsg.Node} the renderer of ccui.CheckBox.
*/
getVirtualRenderer: function () {
return this._backGroundBoxRenderer;
diff --git a/extensions/ccui/uiwidgets/UIImageView.js b/extensions/ccui/uiwidgets/UIImageView.js
index f97232af65..1d244af39f 100644
--- a/extensions/ccui/uiwidgets/UIImageView.js
+++ b/extensions/ccui/uiwidgets/UIImageView.js
@@ -238,7 +238,7 @@ ccui.ImageView = ccui.Widget.extend(/** @lends ccui.ImageView# */{
/**
* Returns the renderer of ccui.ImageView
* @override
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._imageRenderer;
diff --git a/extensions/ccui/uiwidgets/UILoadingBar.js b/extensions/ccui/uiwidgets/UILoadingBar.js
index d984ac3c4e..e0b280254a 100644
--- a/extensions/ccui/uiwidgets/UILoadingBar.js
+++ b/extensions/ccui/uiwidgets/UILoadingBar.js
@@ -320,7 +320,7 @@ ccui.LoadingBar = ccui.Widget.extend(/** @lends ccui.LoadingBar# */{
/**
* Returns the renderer of ccui.LoadingBar
* @override
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._barRenderer;
diff --git a/extensions/ccui/uiwidgets/UIRichText.js b/extensions/ccui/uiwidgets/UIRichText.js
index fd3d57853f..ec89d0122c 100644
--- a/extensions/ccui/uiwidgets/UIRichText.js
+++ b/extensions/ccui/uiwidgets/UIRichText.js
@@ -214,7 +214,7 @@ ccui.RichElementCustomNode = ccui.RichElement.extend(/** @lends ccui.RichElement
* @param {Number} tag
* @param {cc.Color} color
* @param {Number} opacity
- * @param {cc.Node} customNode
+ * @param {_ccsg.Node} customNode
*/
ctor: function (tag, color, opacity, customNode) {
ccui.RichElement.prototype.ctor.call(this);
@@ -229,7 +229,7 @@ ccui.RichElementCustomNode = ccui.RichElement.extend(/** @lends ccui.RichElement
* @param {Number} tag
* @param {cc.Color} color
* @param {Number} opacity
- * @param {cc.Node} customNode
+ * @param {_ccsg.Node} customNode
* @override
*/
init: function (tag, color, opacity, customNode) {
@@ -244,7 +244,7 @@ ccui.RichElementCustomNode = ccui.RichElement.extend(/** @lends ccui.RichElement
* @param {Number} tag
* @param {Number} color
* @param {Number} opacity
- * @param {cc.Node} customNode
+ * @param {_ccsg.Node} customNode
* @returns {ccui.RichElementCustomNode}
*/
ccui.RichElementCustomNode.create = function (tag, color, opacity, customNode) {
@@ -285,7 +285,7 @@ ccui.RichText = ccui.Widget.extend(/** @lends ccui.RichText# */{
},
_initRenderer: function () {
- this._elementRenderersContainer = new cc.Node();
+ this._elementRenderersContainer = new _ccsg.Node();
this._elementRenderersContainer.setAnchorPoint(0.5, 0.5);
this.addProtectedChild(this._elementRenderersContainer, 0, -1);
},
@@ -633,15 +633,15 @@ ccui.RichText = ccui.Widget.extend(/** @lends ccui.RichText# */{
*/
getContentSize: function(){
this.formatText();
- return cc.Node.prototype.getContentSize.call(this);
+ return _ccsg.Node.prototype.getContentSize.call(this);
},
_getWidth: function() {
this.formatText();
- return cc.Node.prototype._getWidth.call(this);
+ return _ccsg.Node.prototype._getWidth.call(this);
},
_getHeight: function() {
this.formatText();
- return cc.Node.prototype._getHeight.call(this);
+ return _ccsg.Node.prototype._getHeight.call(this);
},
setContentSize: function(contentSize, height){
diff --git a/extensions/ccui/uiwidgets/UISlider.js b/extensions/ccui/uiwidgets/UISlider.js
index d94eeb8816..794f52b0b7 100644
--- a/extensions/ccui/uiwidgets/UISlider.js
+++ b/extensions/ccui/uiwidgets/UISlider.js
@@ -108,7 +108,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
this._slidBallPressedRenderer.setVisible(false);
this._slidBallDisabledRenderer = new cc.Sprite();
this._slidBallDisabledRenderer.setVisible(false);
- this._slidBallRenderer = new cc.Node();
+ this._slidBallRenderer = new _ccsg.Node();
this._slidBallRenderer.addChild(this._slidBallNormalRenderer);
this._slidBallRenderer.addChild(this._slidBallPressedRenderer);
this._slidBallRenderer.addChild(this._slidBallDisabledRenderer);
@@ -583,7 +583,7 @@ ccui.Slider = ccui.Widget.extend(/** @lends ccui.Slider# */{
/**
* Returns the bar renderer.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._barRenderer;
diff --git a/extensions/ccui/uiwidgets/UIText.js b/extensions/ccui/uiwidgets/UIText.js
index a6033364c0..4ecd1db2af 100644
--- a/extensions/ccui/uiwidgets/UIText.js
+++ b/extensions/ccui/uiwidgets/UIText.js
@@ -320,7 +320,7 @@ ccui.Text = ccui.Widget.extend(/** @lends ccui.Text# */{
/**
* Returns the renderer of ccui.Text.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._labelRenderer;
diff --git a/extensions/ccui/uiwidgets/UITextAtlas.js b/extensions/ccui/uiwidgets/UITextAtlas.js
index bb7e0d27ca..0b3fcb476b 100644
--- a/extensions/ccui/uiwidgets/UITextAtlas.js
+++ b/extensions/ccui/uiwidgets/UITextAtlas.js
@@ -162,7 +162,7 @@ ccui.TextAtlas = ccui.Widget.extend(/** @lends ccui.TextAtlas# */{
/**
* Returns the renderer of ccui.TextAtlas.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._labelAtlasRenderer;
diff --git a/extensions/ccui/uiwidgets/UITextBMFont.js b/extensions/ccui/uiwidgets/UITextBMFont.js
index 09d965a18e..e1c3e3e3e6 100644
--- a/extensions/ccui/uiwidgets/UITextBMFont.js
+++ b/extensions/ccui/uiwidgets/UITextBMFont.js
@@ -149,7 +149,7 @@ ccui.LabelBMFont = ccui.TextBMFont = ccui.Widget.extend(/** @lends ccui.TextBMFo
/**
* Returns the renderer of TextBMFont
* @override
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._labelBMFontRenderer;
diff --git a/extensions/ccui/uiwidgets/UITextField.js b/extensions/ccui/uiwidgets/UITextField.js
index e50884f6f6..064127b016 100644
--- a/extensions/ccui/uiwidgets/UITextField.js
+++ b/extensions/ccui/uiwidgets/UITextField.js
@@ -757,7 +757,7 @@ ccui.TextField = ccui.Widget.extend(/** @lends ccui.TextField# */{
/**
* Returns the renderer of ccui.TextField.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getVirtualRenderer: function () {
return this._textFieldRenderer;
diff --git a/extensions/ccui/uiwidgets/UIVideoPlayer.js b/extensions/ccui/uiwidgets/UIVideoPlayer.js
index 3ba773d6aa..84cb28553f 100644
--- a/extensions/ccui/uiwidgets/UIVideoPlayer.js
+++ b/extensions/ccui/uiwidgets/UIVideoPlayer.js
@@ -339,13 +339,13 @@ ccui.VideoPlayer.EventType = {
(function(polyfill){
ccui.VideoPlayer.RenderCmd = function(node){
- cc.Node.CanvasRenderCmd.call(this, node);
+ _ccsg.Node.CanvasRenderCmd.call(this, node);
this._listener = null;
this._url = "";
this.initStyle();
};
- var proto = ccui.VideoPlayer.RenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = ccui.VideoPlayer.RenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = ccui.VideoPlayer.RenderCmd;
proto.visit = function(){
@@ -375,12 +375,12 @@ ccui.VideoPlayer.EventType = {
proto.updateStatus = function(){
polyfill.devicePixelRatio = cc.view.isRetinaEnabled();
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
if(locFlag & flags.transformDirty){
//update the transform
this.transform(this.getParentRenderCmd(), true);
this.updateMatrix(this._worldTransform, cc.view._scaleX, cc.view._scaleY);
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
}
};
@@ -449,7 +449,7 @@ ccui.VideoPlayer.EventType = {
return;
self._loaded = true;
self.changeSize();
- self.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ self.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
video.removeEventListener(polyfill.event, cb);
video.currentTime = 0;
video.style["visibility"] = "visible";
diff --git a/extensions/ccui/uiwidgets/UIWebView.js b/extensions/ccui/uiwidgets/UIWebView.js
index d4e5081a13..8ffc11d8ac 100644
--- a/extensions/ccui/uiwidgets/UIWebView.js
+++ b/extensions/ccui/uiwidgets/UIWebView.js
@@ -238,7 +238,7 @@ ccui.WebView.EventType = {
(function(polyfill){
ccui.WebView.RenderCmd = function(node){
- cc.Node.CanvasRenderCmd.call(this, node);
+ _ccsg.Node.CanvasRenderCmd.call(this, node);
this._div = null;
this._iframe = null;
@@ -270,17 +270,17 @@ ccui.WebView.EventType = {
this.initStyle();
};
- var proto = ccui.WebView.RenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = ccui.WebView.RenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = ccui.WebView.RenderCmd;
proto.updateStatus = function(){
polyfill.devicePixelRatio = cc.view.isRetinaEnabled();
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
if(locFlag & flags.transformDirty){
//update the transform
this.transform(this.getParentRenderCmd(), true);
this.updateMatrix(this._worldTransform, cc.view._scaleX, cc.view._scaleY);
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
}
};
diff --git a/extensions/ccui/uiwidgets/scroll-widget/UIListView.js b/extensions/ccui/uiwidgets/scroll-widget/UIListView.js
index 006ec1076c..3192ad7d71 100644
--- a/extensions/ccui/uiwidgets/scroll-widget/UIListView.js
+++ b/extensions/ccui/uiwidgets/scroll-widget/UIListView.js
@@ -225,7 +225,7 @@ ccui.ListView = ccui.ScrollView.extend(/** @lends ccui.ListView# */{
/**
* add child to ListView
* @override
- * @param {cc.Node} widget
+ * @param {_ccsg.Node} widget
* @param {Number} [zOrder]
* @param {Number|String} [tag] tag or name
*/
@@ -242,7 +242,7 @@ ccui.ListView = ccui.ScrollView.extend(/** @lends ccui.ListView# */{
/**
* remove child from ListView
* @override
- * @param {cc.Node} widget
+ * @param {_ccsg.Node} widget
* @param {Boolean} [cleanup=true]
*/
removeChild: function(widget, cleanup){
diff --git a/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js b/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js
index 46c9356f20..d213378e7b 100644
--- a/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js
+++ b/extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js
@@ -339,7 +339,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
},
/**
* Add child to ccui.ScrollView.
- * @param {cc.Node} widget
+ * @param {_ccsg.Node} widget
* @param {Number} [zOrder]
* @param {Number|string} [tag] tag or name
* @returns {boolean}
@@ -1760,7 +1760,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
/**
* Returns a node by tag
* @param {Number} tag
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
* @deprecated since v3.0, please use getChildByTag instead.
*/
getNodeByTag: function (tag) {
@@ -1778,7 +1778,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
/**
* Removes a node from ccui.ScrollView.
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @deprecated since v3.0, please use removeChild instead.
*/
removeNode: function (node) {
@@ -1804,7 +1804,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
/**
* Add node for scrollView
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @param {Number} zOrder
* @param {Number} tag
* @deprecated since v3.0, please use addChild instead.
diff --git a/extensions/cocostudio/CocoStudio.js b/extensions/cocostudio/CocoStudio.js
index 07804f5283..954baaf021 100644
--- a/extensions/cocostudio/CocoStudio.js
+++ b/extensions/cocostudio/CocoStudio.js
@@ -37,12 +37,12 @@ ccs.Class = ccs.Class || cc._Class;
ccs.Class.extend = ccs.Class.extend || cc._Class.extend;
/**
- * The same as cc.Node
+ * The same as _ccsg.Node
* @class
* @extends ccs.Class
*/
-ccs.Node = ccs.Node || cc.Node;
-ccs.Node.extend = ccs.Node.extend || cc.Node.extend;
+ccs.Node = ccs.Node || _ccsg.Node;
+ccs.Node.extend = ccs.Node.extend || _ccsg.Node.extend;
/**
* The same as cc.Sprite
diff --git a/extensions/cocostudio/action/CCActionNode.js b/extensions/cocostudio/action/CCActionNode.js
index cb5f9b4fa6..abb8d8b25c 100644
--- a/extensions/cocostudio/action/CCActionNode.js
+++ b/extensions/cocostudio/action/CCActionNode.js
@@ -202,10 +202,10 @@ ccs.ActionNode = ccs.Class.extend(/** @lends ccs.ActionNode# */{
/**
* Returns the target node of ccs.ActionNode
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getActionNode: function () {
- if (this._object instanceof cc.Node)
+ if (this._object instanceof _ccsg.Node)
return this._object;
return null;
},
diff --git a/extensions/cocostudio/armature/CCArmature.js b/extensions/cocostudio/armature/CCArmature.js
index 00c368bad4..8f9525718a 100644
--- a/extensions/cocostudio/armature/CCArmature.js
+++ b/extensions/cocostudio/armature/CCArmature.js
@@ -62,7 +62,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
* var armature = new ccs.Armature();
*/
ctor: function (name, parentBone) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._name = "";
this._topBoneList = [];
this._armatureIndexDic = {};
@@ -79,7 +79,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
* @return {Boolean}
*/
init: function (name, parentBone) {
- cc.Node.prototype.init.call(this);
+ _ccsg.Node.prototype.init.call(this);
if (parentBone)
this._parentBone = parentBone;
this.removeAllChildren();
@@ -155,7 +155,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
cc.log("Armature doesn't support to add Widget as its child, it will be fix soon.");
return;
}
- cc.Node.prototype.addChild.call(this, child, localZOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, child, localZOrder, tag);
},
/**
@@ -328,7 +328,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
* @override
*/
onEnter: function () {
- cc.Node.prototype.onEnter.call(this);
+ _ccsg.Node.prototype.onEnter.call(this);
this.scheduleUpdate();
},
@@ -337,7 +337,7 @@ ccs.Armature = ccs.Node.extend(/** @lends ccs.Armature# */{
* @override
*/
onExit: function () {
- cc.Node.prototype.onExit.call(this);
+ _ccsg.Node.prototype.onExit.call(this);
this.unscheduleUpdate();
},
diff --git a/extensions/cocostudio/armature/CCArmatureCanvasRenderCmd.js b/extensions/cocostudio/armature/CCArmatureCanvasRenderCmd.js
index f184205651..c6e90828ae 100644
--- a/extensions/cocostudio/armature/CCArmatureCanvasRenderCmd.js
+++ b/extensions/cocostudio/armature/CCArmatureCanvasRenderCmd.js
@@ -32,7 +32,7 @@
this._realAnchorPointInPoints.x = contentSize.width * anchorPoint.x;
this._realAnchorPointInPoints.y = contentSize.height * anchorPoint.y;
- this.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.transformDirty);
},
getAnchorPointInPoints: function(){
@@ -43,7 +43,7 @@
(function(){
ccs.Armature.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._realAnchorPointInPoints = new cc.Vec2(0,0);
@@ -51,7 +51,7 @@
this._RestoreRenderCmd = new cc.CustomRenderCmd(this, this._RestoreCmdCallback);
};
- var proto = ccs.Armature.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = ccs.Armature.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
cc.js.mixin(proto, ccs.Armature.RenderCmd);
proto.constructor = ccs.Armature.CanvasRenderCmd;
@@ -80,7 +80,7 @@
//update displayNode's color and opacity, because skin didn't call visit()
var parentColor = selBone._renderCmd._displayedColor, parentOpacity = selBone._renderCmd._displayedOpacity;
- var flags = cc.Node._dirtyFlags, locFlag = cmd._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = cmd._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
if(colorDirty)
@@ -129,7 +129,7 @@
selNode.visit(this);
break;
}
- } else if(selBone instanceof cc.Node) {
+ } else if(selBone instanceof _ccsg.Node) {
this._visitNormalChild(selBone);
//selBone.visit(this);
}
diff --git a/extensions/cocostudio/armature/CCArmatureWebGLRenderCmd.js b/extensions/cocostudio/armature/CCArmatureWebGLRenderCmd.js
index baffdc3081..67dc48c3eb 100644
--- a/extensions/cocostudio/armature/CCArmatureWebGLRenderCmd.js
+++ b/extensions/cocostudio/armature/CCArmatureWebGLRenderCmd.js
@@ -25,13 +25,13 @@
(function(){
ccs.Armature.WebGLRenderCmd = function(renderableObject){
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this._realAnchorPointInPoints = new cc.Vec2(0,0);
};
- var proto = ccs.Armature.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = ccs.Armature.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.js.mixin(proto, ccs.Armature.RenderCmd);
proto.constructor = ccs.Armature.WebGLRenderCmd;
@@ -80,7 +80,7 @@
selNode._renderCmd.rendering(ctx);
break;
}
- } else if (selBone instanceof cc.Node) {
+ } else if (selBone instanceof _ccsg.Node) {
selBone.setShaderProgram(this._shaderProgram);
selBone._renderCmd.transform();
if(selBone._renderCmd.rendering)
@@ -102,7 +102,7 @@
proto._updateColorAndOpacity = function(skinRenderCmd, bone){
//update displayNode's color and opacity
var parentColor = bone._renderCmd._displayedColor, parentOpacity = bone._renderCmd._displayedOpacity;
- var flags = cc.Node._dirtyFlags, locFlag = skinRenderCmd._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = skinRenderCmd._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
if(colorDirty)
@@ -131,7 +131,7 @@
};
proto.updateStatus = function () {
- var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
+ var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var colorDirty = locFlag & flags.colorDirty,
opacityDirty = locFlag & flags.opacityDirty;
if(colorDirty)
diff --git a/extensions/cocostudio/armature/CCBone.js b/extensions/cocostudio/armature/CCBone.js
index d0cf3bac0c..dd3149b8b9 100644
--- a/extensions/cocostudio/armature/CCBone.js
+++ b/extensions/cocostudio/armature/CCBone.js
@@ -66,7 +66,7 @@ ccs.Bone = ccs.Node.extend(/** @lends ccs.Bone# */{
_className: "Bone",
ctor: function (name) {
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._tweenData = null;
this._parentBone = null;
this._armature = null;
@@ -94,7 +94,7 @@ ccs.Bone = ccs.Node.extend(/** @lends ccs.Bone# */{
* @return {Boolean}
*/
init: function (name) {
-// cc.Node.prototype.init.call(this);
+// _ccsg.Node.prototype.init.call(this);
if (name)
this._name = name;
this._tweenData = new ccs.FrameData();
@@ -360,7 +360,7 @@ ccs.Bone = ccs.Node.extend(/** @lends ccs.Bone# */{
*/
setLocalZOrder: function (zOrder) {
if (this._localZOrder !== zOrder)
- cc.Node.prototype.setLocalZOrder.call(this, zOrder);
+ _ccsg.Node.prototype.setLocalZOrder.call(this, zOrder);
},
/**
@@ -382,7 +382,7 @@ ccs.Bone = ccs.Node.extend(/** @lends ccs.Bone# */{
/**
* Returns the display render node.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getDisplayRenderNode: function () {
return this._displayManager.getDisplayRenderNode();
@@ -690,24 +690,24 @@ ccs.Bone.RenderCmd = {
(function(){
ccs.Bone.CanvasRenderCmd = function(renderable){
- cc.Node.CanvasRenderCmd.call(this, renderable);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderable);
this._needDraw = false;
};
- var proto = ccs.Bone.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = ccs.Bone.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
cc.js.mixin(proto, ccs.Bone.RenderCmd);
proto.constructor = ccs.Bone.CanvasRenderCmd;
})();
(function(){
- if(!cc.Node.WebGLRenderCmd)
+ if(!_ccsg.Node.WebGLRenderCmd)
return;
ccs.Bone.WebGLRenderCmd = function(renderable){
- cc.Node.WebGLRenderCmd.call(this, renderable);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderable);
this._needDraw = false;
};
- var proto = ccs.Bone.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = ccs.Bone.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
cc.js.mixin(proto, ccs.Bone.RenderCmd);
proto.constructor = ccs.Bone.WebGLRenderCmd;
})();
diff --git a/extensions/cocostudio/armature/display/CCBatchNode.js b/extensions/cocostudio/armature/display/CCBatchNode.js
index f20c238850..c0ef12b7fe 100644
--- a/extensions/cocostudio/armature/display/CCBatchNode.js
+++ b/extensions/cocostudio/armature/display/CCBatchNode.js
@@ -26,9 +26,9 @@
/**
* A batchNode to Armature
* @class ccs.BatchNode
- * @extends cc.Node
+ * @extends _ccsg.Node
*/
-ccs.BatchNode = cc.Node.extend(/** @lends ccs.BatchNode# */{
+ccs.BatchNode = _ccsg.Node.extend(/** @lends ccs.BatchNode# */{
_atlas:null,
_className:"BatchNode",
@@ -39,13 +39,13 @@ ccs.BatchNode = cc.Node.extend(/** @lends ccs.BatchNode# */{
},
init:function () {
- var ret = cc.Node.prototype.init.call(this);
+ var ret = _ccsg.Node.prototype.init.call(this);
this.setShaderProgram(cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURE_UCOLOR));
return ret;
},
addChild:function (child, zOrder, tag) {
- cc.Node.prototype.addChild.call(this, child, zOrder, tag);
+ _ccsg.Node.prototype.addChild.call(this, child, zOrder, tag);
if (child instanceof cc.Armature){
child.setBatchNode(this);
}
@@ -54,7 +54,7 @@ ccs.BatchNode = cc.Node.extend(/** @lends ccs.BatchNode# */{
removeChild: function(child, cleanup){
if (child instanceof cc.Armature)
child.setBatchNode(null);
- cc.Node.prototype.removeChild.call(this, child, cleanup);
+ _ccsg.Node.prototype.removeChild.call(this, child, cleanup);
},
visit:function (renderer, parentTransform, parentTransformUpdated) {
diff --git a/extensions/cocostudio/armature/display/CCDecorativeDisplay.js b/extensions/cocostudio/armature/display/CCDecorativeDisplay.js
index f7a7c3d4bf..a78a5e1662 100644
--- a/extensions/cocostudio/armature/display/CCDecorativeDisplay.js
+++ b/extensions/cocostudio/armature/display/CCDecorativeDisplay.js
@@ -51,7 +51,7 @@ ccs.DecorativeDisplay = ccs.Class.extend(/** @lends ccs.DecorativeDisplay# */{
/**
* Sets display node to decorative
- * @param {cc.Node} display
+ * @param {_ccsg.Node} display
*/
setDisplay:function (display) {
if(display._parent){
@@ -63,7 +63,7 @@ ccs.DecorativeDisplay = ccs.Class.extend(/** @lends ccs.DecorativeDisplay# */{
/**
* Returns the display node
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getDisplay:function () {
return this._display;
diff --git a/extensions/cocostudio/armature/display/CCDisplayManager.js b/extensions/cocostudio/armature/display/CCDisplayManager.js
index 5c31dd15a3..4e38b122a0 100644
--- a/extensions/cocostudio/armature/display/CCDisplayManager.js
+++ b/extensions/cocostudio/armature/display/CCDisplayManager.js
@@ -70,7 +70,7 @@ ccs.DisplayManager = ccs.Class.extend(/** @lends ccs.DisplayManager */{
* If index already have a display, then replace it.
* If index is current display index, then also change display to _index
*
- * @param {ccs.DisplayData|cc.Node} display it include the display information, like DisplayType. If you want to create a sprite display, then create a SpriteDisplayData param
+ * @param {ccs.DisplayData|_ccsg.Node} display it include the display information, like DisplayType. If you want to create a sprite display, then create a SpriteDisplayData param
* @param {Number} index the index of the display you want to replace or add to. -1 : append display from back
*/
addDisplay: function (display, index) {
@@ -308,7 +308,7 @@ ccs.DisplayManager = ccs.Class.extend(/** @lends ccs.DisplayManager */{
/**
* Returns the current display render node.
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getDisplayRenderNode:function () {
return this._displayRenderNode;
diff --git a/extensions/cocostudio/armature/display/CCSkinCanvasRenderCmd.js b/extensions/cocostudio/armature/display/CCSkinCanvasRenderCmd.js
index 4cde024fc8..20340d4878 100644
--- a/extensions/cocostudio/armature/display/CCSkinCanvasRenderCmd.js
+++ b/extensions/cocostudio/armature/display/CCSkinCanvasRenderCmd.js
@@ -31,7 +31,7 @@
node._skinTransform,
node.bone.getNodeToArmatureTransform()
);
- this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
+ this._dirtyFlag = this._dirtyFlag & _ccsg.Node._dirtyFlags.transformDirty ^ this._dirtyFlag;
},
getNodeToWorldTransform: function () {
diff --git a/extensions/cocostudio/components/CCComRender.js b/extensions/cocostudio/components/CCComRender.js
index 85343a383c..177b0210bc 100644
--- a/extensions/cocostudio/components/CCComRender.js
+++ b/extensions/cocostudio/components/CCComRender.js
@@ -32,7 +32,7 @@ ccs.ComRender = ccs.Component.extend(/** @lends ccs.ComRender# */{
_render: null,
/**
* Construction of ccs.ComRender
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @param {String} comName
*/
ctor: function (node, comName) {
@@ -63,7 +63,7 @@ ccs.ComRender = ccs.Component.extend(/** @lends ccs.ComRender# */{
/**
* Returns a render node
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getNode: function () {
return this._render;
@@ -71,7 +71,7 @@ ccs.ComRender = ccs.Component.extend(/** @lends ccs.ComRender# */{
/**
* Sets a render node to component.
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
*/
setNode: function (node) {
this._render = node;
diff --git a/extensions/cocostudio/loader/load.js b/extensions/cocostudio/loader/load.js
index 05e3c0aac1..dc885db27b 100644
--- a/extensions/cocostudio/loader/load.js
+++ b/extensions/cocostudio/loader/load.js
@@ -57,19 +57,19 @@ ccs._load = (function(){
if(!parse){
cc.log("Can't find the parser : %s", file);
- return new cc.Node();
+ return new _ccsg.Node();
}
var version = json["version"] || json["Version"];
if(!version && json["armature_data"]){
cc.warn("%s is armature. please use:", file);
cc.warn(" ccs.armatureDataManager.addArmatureFileInfoAsync(%s);", file);
cc.warn(" var armature = new ccs.Armature('name');");
- return new cc.Node();
+ return new _ccsg.Node();
}
var currentParser = getParser(parse, version);
if(!currentParser){
cc.log("Can't find the parser : %s", file);
- return new cc.Node();
+ return new _ccsg.Node();
}
return currentParser.parse(file, json, path) || null;
@@ -178,7 +178,7 @@ ccs._parser = cc._Class.extend({
* scene 0.* - 1.*
* @param {String} file
* @param {String} [path=] Resource path
- * @returns {{node: cc.Node, action: cc.Action}}
+ * @returns {{node: _ccsg.Node, action: cc.Action}}
*/
ccs.load = function(file, path){
var object = {
@@ -204,7 +204,7 @@ ccs.load.validate = {};
* scene 0.* - 1.*
* @param {String} file
* @param {String} [path=] Resource path
- * @returns {{node: cc.Node, action: cc.Action}}
+ * @returns {{node: _ccsg.Node, action: cc.Action}}
*/
ccs.loadWithVisibleSize = function(file, path){
var object = ccs.load(file, path);
diff --git a/extensions/cocostudio/loader/parsers/compatible.js b/extensions/cocostudio/loader/parsers/compatible.js
index caa681d4fc..ad10d18d02 100644
--- a/extensions/cocostudio/loader/parsers/compatible.js
+++ b/extensions/cocostudio/loader/parsers/compatible.js
@@ -194,7 +194,7 @@
/**
* Get a node by tag.
* @param {Number} tag
- * @returns {cc.Node|null}
+ * @returns {_ccsg.Node|null}
*/
getNodeByTag: function(tag){
if (this._node == null)
diff --git a/extensions/cocostudio/loader/parsers/scene-1.x.js b/extensions/cocostudio/loader/parsers/scene-1.x.js
index 57f34c28a3..c703ecf340 100644
--- a/extensions/cocostudio/loader/parsers/scene-1.x.js
+++ b/extensions/cocostudio/loader/parsers/scene-1.x.js
@@ -245,7 +245,7 @@
};
parser.registerParser("CCNode", function(options, resourcePath){
- var node = new cc.Node();
+ var node = new _ccsg.Node();
this.setPropertyFromJsonDict(node, options);
this.parseChild.call(this, node, options["gameobjects"], resourcePath);
this.parseComponents(node, options["components"], resourcePath);
diff --git a/extensions/cocostudio/loader/parsers/timelineParser-1.x.js b/extensions/cocostudio/loader/parsers/timelineParser-1.x.js
index c9c3efbab5..ae1684306b 100644
--- a/extensions/cocostudio/loader/parsers/timelineParser-1.x.js
+++ b/extensions/cocostudio/loader/parsers/timelineParser-1.x.js
@@ -159,7 +159,7 @@
};
parser.initNode = function(options){
- var node = new cc.Node();
+ var node = new _ccsg.Node();
this.generalAttributes(node, options);
return node;
};
diff --git a/extensions/cocostudio/loader/parsers/timelineParser-2.x.js b/extensions/cocostudio/loader/parsers/timelineParser-2.x.js
index 2d649372ea..5e0919b806 100644
--- a/extensions/cocostudio/loader/parsers/timelineParser-2.x.js
+++ b/extensions/cocostudio/loader/parsers/timelineParser-2.x.js
@@ -163,10 +163,10 @@
/**
* SingleNode
* @param json
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
parser.initSingleNode = function(json){
- var node = new cc.Node();
+ var node = new _ccsg.Node();
this.generalAttributes(node, json);
var color = json["CColor"];
diff --git a/extensions/cocostudio/timeline/ActionTimeline.js b/extensions/cocostudio/timeline/ActionTimeline.js
index 5467f9198b..52023cd8a1 100644
--- a/extensions/cocostudio/timeline/ActionTimeline.js
+++ b/extensions/cocostudio/timeline/ActionTimeline.js
@@ -450,7 +450,7 @@ ccs.ActionTimeline = cc.Action.extend({
/**
* start with node.
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
*/
startWithTarget: function(target){
cc.Action.prototype.startWithTarget.call(this, target);
diff --git a/extensions/cocostudio/timeline/CCBoneNode.js b/extensions/cocostudio/timeline/CCBoneNode.js
index c030575025..cae2fab285 100644
--- a/extensions/cocostudio/timeline/CCBoneNode.js
+++ b/extensions/cocostudio/timeline/CCBoneNode.js
@@ -31,7 +31,7 @@
*/
ccs.BoneNode = (function () {
- var Node = cc.Node;
+ var Node = _ccsg.Node;
var SkinNode = ccs.SkinNode;
var BlendFunc = cc.BlendFunc;
var type = {
diff --git a/extensions/cocostudio/timeline/CCSkinNode.js b/extensions/cocostudio/timeline/CCSkinNode.js
index 649c53a49d..15e4ad4042 100644
--- a/extensions/cocostudio/timeline/CCSkinNode.js
+++ b/extensions/cocostudio/timeline/CCSkinNode.js
@@ -1,6 +1,6 @@
ccs.SkinNode = (function(){
- var Node = cc.Node;
+ var Node = _ccsg.Node;
var proto = {
};
diff --git a/extensions/cocostudio/timeline/Frame.js b/extensions/cocostudio/timeline/Frame.js
index c89200688d..736c1ff76e 100644
--- a/extensions/cocostudio/timeline/Frame.js
+++ b/extensions/cocostudio/timeline/Frame.js
@@ -94,7 +94,7 @@ ccs.Frame = ccs.Class.extend({
/**
* Set Node
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
*/
setNode: function(node){
this._node = node;
@@ -337,7 +337,7 @@ ccs.TextureFrame = ccs.Frame.extend({
/**
* Set the node element to draw texture
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
*/
setNode: function(node){
ccs.Frame.prototype.setNode.call(this, node);
diff --git a/extensions/cocostudio/timeline/Timeline.js b/extensions/cocostudio/timeline/Timeline.js
index c91f87e9ba..1ef19d4d6f 100644
--- a/extensions/cocostudio/timeline/Timeline.js
+++ b/extensions/cocostudio/timeline/Timeline.js
@@ -45,7 +45,7 @@ ccs.Timeline = ccs.Class.extend({
_actionTag: null,
//{ccs.ActionTimeline}
_ActionTimeline: null,
- //{cc.Node}
+ //{_ccsg.Node}
_node: null,
ctor: function(){
@@ -131,7 +131,7 @@ ccs.Timeline = ccs.Class.extend({
/**
* Set the node
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
*/
setNode: function(node){
for (var i=0; iSets the title label to use for the specified state.
* If a property is not specified for a state, the default is to use the CCButtonStateNormal value.
*
- * @param {cc.Node} titleLabel The title label to use for the specified state.
+ * @param {_ccsg.Node} titleLabel The title label to use for the specified state.
* @param {Number} state The state that uses the specified title. The values are described in "CCControlState".
*/
setTitleLabelForState: function (titleLabel, state) {
diff --git a/extensions/gui/control-extension/CCControlHuePicker.js b/extensions/gui/control-extension/CCControlHuePicker.js
index 58db95f4ac..e88a57b475 100644
--- a/extensions/gui/control-extension/CCControlHuePicker.js
+++ b/extensions/gui/control-extension/CCControlHuePicker.js
@@ -53,7 +53,7 @@ cc.ControlHuePicker = cc.Control.extend(/** @lends cc.ControlHuePicker# */{
/**
* The constructor of cc.ControlHuePicker
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.Vec2} pos position
*/
ctor:function(target, pos) {
diff --git a/extensions/gui/control-extension/CCControlSaturationBrightnessPicker.js b/extensions/gui/control-extension/CCControlSaturationBrightnessPicker.js
index bd635c342e..0a207f3dbf 100644
--- a/extensions/gui/control-extension/CCControlSaturationBrightnessPicker.js
+++ b/extensions/gui/control-extension/CCControlSaturationBrightnessPicker.js
@@ -61,7 +61,7 @@ cc.ControlSaturationBrightnessPicker = cc.Control.extend(/** @lends cc.ControlSa
/**
* The constructor of cc.ControlSaturationBrightnessPicker
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.Vec2} pos position
*/
ctor:function (target, pos) {
@@ -248,7 +248,7 @@ _p = null;
/**
* Creates a cc.ControlSaturationBrightnessPicker
- * @param {cc.Node} target
+ * @param {_ccsg.Node} target
* @param {cc.Vec2} pos position
* @returns {ControlSaturationBrightnessPicker}
*/
diff --git a/extensions/gui/scrollview/CCScrollView.js b/extensions/gui/scrollview/CCScrollView.js
index 9326a43643..b9d55c4f41 100644
--- a/extensions/gui/scrollview/CCScrollView.js
+++ b/extensions/gui/scrollview/CCScrollView.js
@@ -134,7 +134,7 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{
/**
* initialized whether success or fail
* @param {cc.Size} size
- * @param {cc.Node} container
+ * @param {_ccsg.Node} container
* @return {Boolean}
*/
initWithViewSize:function (size, container) {
@@ -289,7 +289,7 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{
/**
* Determines if a given node's bounding box is in visible bounds
- * @param {cc.Node} node
+ * @param {_ccsg.Node} node
* @return {Boolean} YES if it is in visible bounds
*/
isNodeVisible:function (node) {
@@ -352,7 +352,7 @@ cc.ScrollView = cc.Layer.extend(/** @lends cc.ScrollView# */{
setViewSize:function (size) {
this._viewSize = size;
- cc.Node.prototype.setContentSize.call(this,size);
+ _ccsg.Node.prototype.setContentSize.call(this,size);
},
getContainer:function () {
@@ -818,7 +818,7 @@ _p = null;
* Returns an autoreleased scroll view object.
* @deprecated
* @param {cc.Size} size view size
- * @param {cc.Node} container parent object
+ * @param {_ccsg.Node} container parent object
* @return {cc.ScrollView} scroll view object
*/
cc.ScrollView.create = function (size, container) {
diff --git a/extensions/gui/scrollview/CCTableView.js b/extensions/gui/scrollview/CCTableView.js
index 7b7f2c2846..ee312132ef 100644
--- a/extensions/gui/scrollview/CCTableView.js
+++ b/extensions/gui/scrollview/CCTableView.js
@@ -43,11 +43,11 @@ cc.TABLEVIEW_FILL_BOTTOMUP = 1;
* Abstract class for SWTableView cell node
* @class
* @abstract
- * @extends cc.Node
+ * @extends _ccsg.Node
*
* @property {Number} objectId - The index used internally by SWTableView and its subclasses
*/
-cc.TableViewCell = cc.Node.extend(/** @lends cc.TableViewCell# */{
+cc.TableViewCell = _ccsg.Node.extend(/** @lends cc.TableViewCell# */{
_idx:0,
_className:"TableViewCell",
@@ -712,7 +712,7 @@ _p = null;
* @deprecated
* @param {cc.TableViewDataSource} dataSource data source;
* @param {cc.Size} size view size
- * @param {cc.Node} [container] parent object for cells
+ * @param {_ccsg.Node} [container] parent object for cells
* @return {cc.TableView} table view
*/
cc.TableView.create = function (dataSource, size, container) {
diff --git a/extensions/spine/CCSkeleton.js b/extensions/spine/CCSkeleton.js
index 9555725a9d..2fc8f45078 100644
--- a/extensions/spine/CCSkeleton.js
+++ b/extensions/spine/CCSkeleton.js
@@ -67,9 +67,9 @@ sp.ATTACHMENT_TYPE = {
* Multiple skeletons can use the same SkeletonData (which includes all animations, skins, and attachments).
*
* @class
- * @extends cc.Node
+ * @extends _ccsg.Node
*/
-sp.Skeleton = cc.Node.extend(/** @lends sp.Skeleton# */{
+sp.Skeleton = _ccsg.Node.extend(/** @lends sp.Skeleton# */{
_skeleton: null,
_rootBone: null,
_timeScale: 1,
@@ -84,7 +84,7 @@ sp.Skeleton = cc.Node.extend(/** @lends sp.Skeleton# */{
* The constructor of sp.Skeleton. override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
*/
ctor:function(skeletonDataFile, atlasFile, scale){
- cc.Node.prototype.ctor.call(this);
+ _ccsg.Node.prototype.ctor.call(this);
this._blendFunc = {src: cc.BLEND_SRC, dst: cc.BLEND_DST};
if(arguments.length === 0)
@@ -104,7 +104,7 @@ sp.Skeleton = cc.Node.extend(/** @lends sp.Skeleton# */{
* Initializes a sp.Skeleton. please do not call this function by yourself, you should pass the parameters to constructor to initialize it.
*/
init: function () {
- cc.Node.prototype.init.call(this);
+ _ccsg.Node.prototype.init.call(this);
//this.setOpacityModifyRGB(true);
this._blendFunc.src = cc.ONE;
this._blendFunc.dst = cc.ONE_MINUS_SRC_ALPHA;
@@ -355,7 +355,7 @@ sp.Skeleton = cc.Node.extend(/** @lends sp.Skeleton# */{
/**
* Return the renderer of attachment.
* @param {spine.RegionAttachment|spine.BoundingBoxAttachment} regionAttachment
- * @returns {cc.Node}
+ * @returns {_ccsg.Node}
*/
getTextureAtlas: function (regionAttachment) {
return regionAttachment.rendererObject.page.rendererObject;
diff --git a/extensions/spine/CCSkeletonCanvasRenderCmd.js b/extensions/spine/CCSkeletonCanvasRenderCmd.js
index 1b4f873cd1..7a93228e82 100644
--- a/extensions/spine/CCSkeletonCanvasRenderCmd.js
+++ b/extensions/spine/CCSkeletonCanvasRenderCmd.js
@@ -24,11 +24,11 @@
(function(){
sp.Skeleton.CanvasRenderCmd = function(renderableObject){
- cc.Node.CanvasRenderCmd.call(this, renderableObject);
+ _ccsg.Node.CanvasRenderCmd.call(this, renderableObject);
this._needDraw = true;
};
- var proto = sp.Skeleton.CanvasRenderCmd.prototype = Object.create(cc.Node.CanvasRenderCmd.prototype);
+ var proto = sp.Skeleton.CanvasRenderCmd.prototype = Object.create(_ccsg.Node.CanvasRenderCmd.prototype);
proto.constructor = sp.Skeleton.CanvasRenderCmd;
proto.rendering = function (wrapper, scaleX, scaleY) {
@@ -114,7 +114,7 @@
var locSkeleton = node._skeleton, spriteName, sprite;
for (var i = 0, n = locSkeleton.slots.length; i < n; i++) {
var slot = locSkeleton.slots[i], attachment = slot.attachment;
- var slotNode = new cc.Node();
+ var slotNode = new _ccsg.Node();
slot._slotNode = slotNode;
if(attachment instanceof spine.RegionAttachment){
diff --git a/extensions/spine/CCSkeletonWebGLRenderCmd.js b/extensions/spine/CCSkeletonWebGLRenderCmd.js
index b00b3c44c5..fa7deefbe5 100644
--- a/extensions/spine/CCSkeletonWebGLRenderCmd.js
+++ b/extensions/spine/CCSkeletonWebGLRenderCmd.js
@@ -24,13 +24,13 @@
(function(){
sp.Skeleton.WebGLRenderCmd = function (renderableObject) {
- cc.Node.WebGLRenderCmd.call(this, renderableObject);
+ _ccsg.Node.WebGLRenderCmd.call(this, renderableObject);
this._needDraw = true;
this.setShaderProgram(cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURECOLOR));
this._tmpQuad = new cc.V3F_C4B_T2F_Quad();
};
- var proto = sp.Skeleton.WebGLRenderCmd.prototype = Object.create(cc.Node.WebGLRenderCmd.prototype);
+ var proto = sp.Skeleton.WebGLRenderCmd.prototype = Object.create(_ccsg.Node.WebGLRenderCmd.prototype);
proto.constructor = sp.Skeleton.WebGLRenderCmd;
proto.rendering = function (ctx) {
diff --git a/external/gaf/Library/GAFObject.js b/external/gaf/Library/GAFObject.js
index 7d5375abe5..d25f88b5b5 100644
--- a/external/gaf/Library/GAFObject.js
+++ b/external/gaf/Library/GAFObject.js
@@ -25,7 +25,7 @@ gaf._stateHasCtx = function(state)
return false;
};
-gaf.Object = cc.Node.extend
+gaf.Object = _ccsg.Node.extend
({
_asset : null,
_className : "GAFObject",
diff --git a/external/gaf/Library/GAFSpriteCanvasRenderCmd.js b/external/gaf/Library/GAFSpriteCanvasRenderCmd.js
index bb807cc220..230d6e6c66 100644
--- a/external/gaf/Library/GAFSpriteCanvasRenderCmd.js
+++ b/external/gaf/Library/GAFSpriteCanvasRenderCmd.js
@@ -16,7 +16,7 @@
this._hasTintOffset = false;
this._hasCtx = false;
this._textureDirty = true;
- this.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
this._tintMult = cc.color(255,255,255,255);
this._tintOffset = cc.color(0,0,0,0);
};
@@ -70,7 +70,7 @@
this._textureDirty = multDirty || offfsetDirty;
if(this._textureDirty)
{
- this.setDirtyFlag(cc.Node._dirtyFlags.colorDirty);
+ this.setDirtyFlag(_ccsg.Node._dirtyFlags.colorDirty);
}
diff --git a/external/gaf/Library/GAFTimeLine.js b/external/gaf/Library/GAFTimeLine.js
index ef9387aa46..d6b09a316e 100644
--- a/external/gaf/Library/GAFTimeLine.js
+++ b/external/gaf/Library/GAFTimeLine.js
@@ -321,7 +321,7 @@ gaf.TimeLine = gaf.Object.extend
this._currentSequenceEnd = this._gafproto.getTotalFrames();
this._totalFrameCount = this._currentSequenceEnd;
this.setFps(this._gafproto.getFps());
- this._container = new cc.Node();
+ this._container = new _ccsg.Node();
this.addChild(this._container);
var self = this;
diff --git a/predefine.js b/predefine.js
index 4b2b42511d..603cb69702 100644
--- a/predefine.js
+++ b/predefine.js
@@ -31,6 +31,8 @@
cc = {};
+_ccsg = {};
+
//to make sure the cc.log, cc.warn, cc.error, cc._throw and cc.assert would not throw error before init by debugger mode.
cc.log = cc.warn = cc.error = cc._throw = cc.assert = function () {};
diff --git a/test/page/engine.js b/test/page/engine.js
index e27a1deaec..34a05284fd 100644
--- a/test/page/engine.js
+++ b/test/page/engine.js
@@ -38,14 +38,14 @@ describe( 'cc.engine.getIntersectionList', function () {
});
beforeEach(function () {
- scene = new cc.Scene();
+ scene = new _ccsg.Scene();
cc.director.runScene(scene);
nodes = [];
wrappers = [];
for(var i = 0; i<2; i++) {
- var node = new cc.Node();
+ var node = new _ccsg.Node();
var wrapper = cc.getWrapper(node);
node.setAnchorPoint(0.5, 0.5);
diff --git a/test/page/index.js b/test/page/index.js
index bf415ceb00..283188fd18 100644
--- a/test/page/index.js
+++ b/test/page/index.js
@@ -55,7 +55,7 @@ describe('test wrappers', function () {
cc.game.run(option, function () {
cc.view.resizeWithBrowserSize(true);
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
// scene anchor point need be 0,0
scene.setAnchorPoint(0.0, 0.0);
diff --git a/test/page/node.js b/test/page/node.js
index e74b3b5f82..1114a2cdb2 100644
--- a/test/page/node.js
+++ b/test/page/node.js
@@ -7,7 +7,7 @@ describe( 'test node wrapper', function () {
beforeEach(function () {
- node = new cc.Node();
+ node = new _ccsg.Node();
wrapper = cc.getWrapper(node);
scene = cc.director.getRunningScene();
@@ -43,7 +43,7 @@ describe( 'test node wrapper', function () {
});
it( 'childrenN', function () {
- var child = new cc.Node();
+ var child = new _ccsg.Node();
var childWrapper = cc.getWrapper(child);
childWrapper.parentN = node;
@@ -269,11 +269,11 @@ describe( 'NodeWrapper siblingIndex', function () {
var scene;
beforeEach(function () {
- scene = new cc.Scene();
+ scene = new _ccsg.Scene();
nodes = [];
for(var i=0; i<5; i++) {
- var node = new cc.Node();
+ var node = new _ccsg.Node();
nodes.push(node);
scene.addChild(node);
}
diff --git a/test/page/scene.js b/test/page/scene.js
index 24744081c4..bfef4b2597 100644
--- a/test/page/scene.js
+++ b/test/page/scene.js
@@ -9,7 +9,7 @@ describe( 'test scene wrapper', function () {
];
beforeEach(function () {
- scene = new cc.Scene();
+ scene = new _ccsg.Scene();
wrapper = cc.getWrapper(scene);
});
@@ -24,8 +24,8 @@ describe( 'test scene wrapper', function () {
it( 'childrenN', function () {
assert( wrapper.childrenN );
- var node = new cc.Node();
- var node2 = new cc.Node();
+ var node = new _ccsg.Node();
+ var node2 = new _ccsg.Node();
scene.addChild(node);
scene.addChild(node2);
@@ -104,7 +104,7 @@ describe( 'test scene wrapper', function () {
it( 'createNode', function () {
var node = wrapper.createNode();
- assert( node instanceof cc.Scene );
+ assert( node instanceof _ccsg.Scene );
expect( node.x ).equal( 0 );
expect( node.y ).equal( 0 );
@@ -120,7 +120,7 @@ describe( 'test scene wrapper', function () {
var node = wrapper.createNode();
- assert( node instanceof cc.Scene );
+ assert( node instanceof _ccsg.Scene );
expect( wrapper._position ).to.deep.equal( [11, 22] );
expect( wrapper._scale ).to.deep.equal( [2, 3] );
diff --git a/test/qunit/unit/test-prefab.js b/test/qunit/unit/test-prefab.js
index dfcf48b0e0..e0f0a5eab7 100644
--- a/test/qunit/unit/test-prefab.js
+++ b/test/qunit/unit/test-prefab.js
@@ -153,7 +153,7 @@
testChild.scale = cc.Vec2.ZERO;
testChild.addComponent(TestScript);
- var newNode = new cc.Node();
+ var newNode = new _ccsg.Node();
newNode.parent = testChild;
//testingCompCallback = true;
diff --git a/test/visual-tests/main.js b/test/visual-tests/main.js
index 7279582948..58820b83b1 100644
--- a/test/visual-tests/main.js
+++ b/test/visual-tests/main.js
@@ -207,7 +207,7 @@ cc.game.run({
if(window.sideIndexBar && typeof sideIndexBar.start === 'function'){
sideIndexBar.start();
}else{
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
scene.addChild(new TestController());
cc.director.runScene(scene);
}
diff --git a/test/visual-tests/src/BaseTestLayer/BaseTestLayer.js b/test/visual-tests/src/BaseTestLayer/BaseTestLayer.js
index 2b2637067b..c41b620e4c 100644
--- a/test/visual-tests/src/BaseTestLayer/BaseTestLayer.js
+++ b/test/visual-tests/src/BaseTestLayer/BaseTestLayer.js
@@ -217,7 +217,7 @@ var BaseTestLayerProps = {
runNextTest:function() {
if( this.numberOfPendingTests() <= 0 ) {
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
var layer = new TestController();
scene.addChild(layer);
director.runScene(scene);
@@ -320,7 +320,7 @@ var FlowControl = function (testArray) {
},
start: function() {
sceneIdx = 0;
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(this.current());
cc.director.runScene(s);
}
diff --git a/test/visual-tests/src/ClippingNodeTest/ClippingNodeTest.js b/test/visual-tests/src/ClippingNodeTest/ClippingNodeTest.js
index 0628af6fac..5dbd8f2ad8 100644
--- a/test/visual-tests/src/ClippingNodeTest/ClippingNodeTest.js
+++ b/test/visual-tests/src/ClippingNodeTest/ClippingNodeTest.js
@@ -328,12 +328,12 @@ var HoleDemo = BaseClippingNodeTest.extend({
holesClipper.addChild(target);
- this._holes = new cc.Node();
+ this._holes = new _ccsg.Node();
this._holes.retain();
holesClipper.addChild(this._holes);
- this._holesStencil = new cc.Node();
+ this._holesStencil = new _ccsg.Node();
this._holesStencil.retain();
holesClipper.stencil = this._holesStencil;
diff --git a/test/visual-tests/src/EaseActionsTest/EaseActionsTest.js b/test/visual-tests/src/EaseActionsTest/EaseActionsTest.js
index 47e5558ddb..3c603ad07d 100644
--- a/test/visual-tests/src/EaseActionsTest/EaseActionsTest.js
+++ b/test/visual-tests/src/EaseActionsTest/EaseActionsTest.js
@@ -79,17 +79,17 @@ var EaseSpriteDemo = BaseTestLayer.extend({
},
onRestartCallback:function (sender) {
- var s = new EaseActionsTestScene();//cc.Scene.create();
+ var s = new EaseActionsTestScene();//_ccsg.Scene.create();
s.addChild(restartEaseActionsTest());
director.runScene(s);
},
onNextCallback:function (sender) {
- var s = new EaseActionsTestScene();//cc.Scene.create();
+ var s = new EaseActionsTestScene();//_ccsg.Scene.create();
s.addChild(nextEaseActionsTest());
director.runScene(s);
},
onBackCallback:function (sender) {
- var s = new EaseActionsTestScene();//cc.Scene.create();
+ var s = new EaseActionsTestScene();//_ccsg.Scene.create();
s.addChild(previousEaseActionsTest());
director.runScene(s);
},
diff --git a/test/visual-tests/src/ExtensionsTest/CCPoolTest/CCPoolTest.js b/test/visual-tests/src/ExtensionsTest/CCPoolTest/CCPoolTest.js
index c3439c7d0c..80b1a4ccc5 100644
--- a/test/visual-tests/src/ExtensionsTest/CCPoolTest/CCPoolTest.js
+++ b/test/visual-tests/src/ExtensionsTest/CCPoolTest/CCPoolTest.js
@@ -148,7 +148,7 @@ CCPoolTest.create = function () {
var runCCPoolTest = function () {
- var pScene = cc.Scene.create();
+ var pScene = _ccsg.Scene.create();
var pLayer = CCPoolTest.create();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/ExtensionsTest/NetworkTest/SocketIOTest.js b/test/visual-tests/src/ExtensionsTest/NetworkTest/SocketIOTest.js
index 61b185fa08..fc0946332d 100644
--- a/test/visual-tests/src/ExtensionsTest/NetworkTest/SocketIOTest.js
+++ b/test/visual-tests/src/ExtensionsTest/NetworkTest/SocketIOTest.js
@@ -271,7 +271,7 @@ var SocketIOTestLayer = cc.Layer.extend({
});
var runSocketIOTest = function () {
- var pScene = new cc.Scene();
+ var pScene = new _ccsg.Scene();
var pLayer = new SocketIOTestLayer();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/ExtensionsTest/NetworkTest/WebSocketTest.js b/test/visual-tests/src/ExtensionsTest/NetworkTest/WebSocketTest.js
index eb446fdf2e..fc10e3ce7f 100644
--- a/test/visual-tests/src/ExtensionsTest/NetworkTest/WebSocketTest.js
+++ b/test/visual-tests/src/ExtensionsTest/NetworkTest/WebSocketTest.js
@@ -257,7 +257,7 @@ WebSocketTestLayer.create = function () {
var runWebSocketTest = function () {
- var pScene = new cc.Scene();
+ var pScene = new _ccsg.Scene();
var pLayer = WebSocketTestLayer.create();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/ExtensionsTest/TableViewTest/TableViewTestScene.js b/test/visual-tests/src/ExtensionsTest/TableViewTest/TableViewTestScene.js
index 37fdccf0c2..cc3a209778 100644
--- a/test/visual-tests/src/ExtensionsTest/TableViewTest/TableViewTestScene.js
+++ b/test/visual-tests/src/ExtensionsTest/TableViewTest/TableViewTestScene.js
@@ -130,7 +130,7 @@ var TableViewTestLayer = cc.Layer.extend({
});
var runTableViewTest = function () {
- var pScene = new cc.Scene();
+ var pScene = new _ccsg.Scene();
var pLayer = new TableViewTestLayer();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/GUITest/UIScene.js b/test/visual-tests/src/GUITest/UIScene.js
index 0ba88570a4..f97165791d 100644
--- a/test/visual-tests/src/GUITest/UIScene.js
+++ b/test/visual-tests/src/GUITest/UIScene.js
@@ -46,7 +46,7 @@ var UIMainLayer = BaseTestLayer.extend({
this._super();
var winSize = cc.winSize;
- var mainNode = new cc.Node();
+ var mainNode = new _ccsg.Node();
var scale = winSize.height/320;
mainNode.attr({anchorX: 0, anchorY: 0, scale: scale, x: (winSize.width - 480 * scale) / 2, y: (winSize.height - 320 * scale) / 2});
this.addChild(mainNode);
diff --git a/test/visual-tests/src/LabelTest/LabelTest.js b/test/visual-tests/src/LabelTest/LabelTest.js
index cee72185bf..d67def9dcc 100644
--- a/test/visual-tests/src/LabelTest/LabelTest.js
+++ b/test/visual-tests/src/LabelTest/LabelTest.js
@@ -2107,7 +2107,7 @@ var LabelLayoutBaseTest = AtlasDemo.extend({
plusButton.setScale(1.2);
plusButton.setName("+");
- var node = new cc.Node();
+ var node = new _ccsg.Node();
node.addChild(button);
node.addChild(plusButton);
node.setName("stepper");
diff --git a/test/visual-tests/src/NativeTest/AudioEngineTest.js b/test/visual-tests/src/NativeTest/AudioEngineTest.js
index 3d306e29c8..2bd639f934 100644
--- a/test/visual-tests/src/NativeTest/AudioEngineTest.js
+++ b/test/visual-tests/src/NativeTest/AudioEngineTest.js
@@ -48,17 +48,17 @@ var AudioEngineBase = BaseTestLayer.extend({
new NativeTestScene().runThisTest();
},
onRestartCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(AudioTestFlow.current());
director.runScene(s);
},
onNextCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(AudioTestFlow.next());
director.runScene(s);
},
onBackCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(AudioTestFlow.previous());
director.runScene(s);
},
diff --git a/test/visual-tests/src/NativeTest/FileUtils/FileUtilsTest.js b/test/visual-tests/src/NativeTest/FileUtils/FileUtilsTest.js
index 94e0d69079..ffa0824f0e 100644
--- a/test/visual-tests/src/NativeTest/FileUtils/FileUtilsTest.js
+++ b/test/visual-tests/src/NativeTest/FileUtils/FileUtilsTest.js
@@ -47,17 +47,17 @@ var fileUtilsBase = BaseTestLayer.extend({
new NativeTestScene().runThisTest();
},
onRestartCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(restartfileUtils());
director.runScene(s);
},
onNextCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(nextfileUtils());
director.runScene(s);
},
onBackCallback:function (sender) {
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(previousfileUtils());
director.runScene(s);
},
@@ -392,7 +392,7 @@ var restartfileUtils = function () {
var startFileUtilsTest = function()
{
fileUtilsSceneIdx = 0;
- var s = new cc.Scene();
+ var s = new _ccsg.Scene();
s.addChild(restartfileUtils());
director.runScene(s);
}
diff --git a/test/visual-tests/src/NativeTest/JSBExtendTest.js b/test/visual-tests/src/NativeTest/JSBExtendTest.js
index 8e531d5b25..82e9b91a38 100644
--- a/test/visual-tests/src/NativeTest/JSBExtendTest.js
+++ b/test/visual-tests/src/NativeTest/JSBExtendTest.js
@@ -126,7 +126,7 @@ var LayerExtended = cc.Layer.extend({
}
});
-window.JSBExtendTest = cc.Scene.extend({
+window.JSBExtendTest = _ccsg.Scene.extend({
label: null,
ui: null,
onEnter: function () {
diff --git a/test/visual-tests/src/NewEventManagerTest/NewEventManagerTest.js b/test/visual-tests/src/NewEventManagerTest/NewEventManagerTest.js
index 45ced9d403..5a6c0f7703 100644
--- a/test/visual-tests/src/NewEventManagerTest/NewEventManagerTest.js
+++ b/test/visual-tests/src/NewEventManagerTest/NewEventManagerTest.js
@@ -74,7 +74,7 @@ var TouchableSpriteTest = EventDispatcherTestDemo.extend({
var origin = director.getVisibleOrigin();
var size = director.getVisibleSize();
- var containerForSprite1 = new cc.Node();
+ var containerForSprite1 = new _ccsg.Node();
var sprite1 = new cc.Sprite("Images/CyanSquare.png");
sprite1.setPosition(origin.x + size.width/2 - 80, origin.y + size.height/2 + 80);
containerForSprite1.addChild(sprite1);
@@ -1210,7 +1210,7 @@ var Issue9898 = EventDispatcherTestDemo.extend({
var origin = cc.director.getVisibleOrigin();
var size = cc.director.getVisibleSize();
- var node = new cc.Node();
+ var node = new _ccsg.Node();
this.addChild(node);
var _listener = cc.EventListener.create({
diff --git a/test/visual-tests/src/OpenGLTest/OpenGLTest.js b/test/visual-tests/src/OpenGLTest/OpenGLTest.js
index c3bfe31e7e..cb2d78542f 100644
--- a/test/visual-tests/src/OpenGLTest/OpenGLTest.js
+++ b/test/visual-tests/src/OpenGLTest/OpenGLTest.js
@@ -35,7 +35,7 @@ var OpenGLTestScene = TestScene.extend({
}
});
-cc.GLNode = cc.GLNode || cc.Node.extend({
+cc.GLNode = cc.GLNode || _ccsg.Node.extend({
ctor:function(){
this._super();
this.init();
diff --git a/test/visual-tests/src/SchedulerTest/SchedulerTest.js b/test/visual-tests/src/SchedulerTest/SchedulerTest.js
index 0519d8e2c9..8c33d9169f 100644
--- a/test/visual-tests/src/SchedulerTest/SchedulerTest.js
+++ b/test/visual-tests/src/SchedulerTest/SchedulerTest.js
@@ -298,7 +298,7 @@ var SchedulerSchedulesAndRemove = SchedulerTestLayer.extend({
/*
SchedulerUpdate
*/
-var TestNode = cc.Node.extend({
+var TestNode = _ccsg.Node.extend({
_pString:"",
ctor:function (str, priority) {
diff --git a/test/visual-tests/src/SpritePolygonTest/SpritePolygonTest.js b/test/visual-tests/src/SpritePolygonTest/SpritePolygonTest.js
index da11edf7fc..b5b6ef911d 100644
--- a/test/visual-tests/src/SpritePolygonTest/SpritePolygonTest.js
+++ b/test/visual-tests/src/SpritePolygonTest/SpritePolygonTest.js
@@ -81,7 +81,7 @@ var SpritePolygonTestDemo = BaseTestLayer.extend({
}
});
-var SpritePolygonTestScene = cc.Scene.extend({
+var SpritePolygonTestScene = _ccsg.Scene.extend({
ctor:function () {
this._super();
@@ -96,7 +96,7 @@ var SpritePolygonTestScene = cc.Scene.extend({
this.addChild(menu, 99);
},
onMainMenuCallback:function () {
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
var layer = new TestController();
scene.addChild(layer);
director.runScene(scene);
@@ -356,7 +356,7 @@ var SpritePolygonPerformance = SpritePolygonTestDemo.extend({
this.perfLabel.string = temp;
},
makeSprite: function () {
- return new cc.Node();
+ return new _ccsg.Node();
},
update: function (dt) {
dt = dt*0.3 + this.prevDt*0.7;
diff --git a/test/visual-tests/src/SpriteTest/SpriteTest.js b/test/visual-tests/src/SpriteTest/SpriteTest.js
index e741813fe3..d4def5bee5 100644
--- a/test/visual-tests/src/SpriteTest/SpriteTest.js
+++ b/test/visual-tests/src/SpriteTest/SpriteTest.js
@@ -1006,7 +1006,7 @@ var SpriteZVertex = SpriteTestDemo.extend({
var step = winSize.width / 12;
- var node = new cc.Node();
+ var node = new _ccsg.Node();
// camera uses the center of the image as the pivoting point
node.width = winSize.width;
node.height = winSize.height;
@@ -1726,7 +1726,7 @@ var SpriteNewTexture = SpriteTestDemo.extend({
}
}, this);
- var node = new cc.Node();
+ var node = new _ccsg.Node();
this.addChild(node, 0, TAG_SPRITE_BATCH_NODE);
this._texture1 = cc.textureCache.addImage(s_grossini_dance_atlas);
@@ -3169,7 +3169,7 @@ var SpriteHybrid = SpriteTestDemo.extend({
//----start28----ctor
this._super();
// parents
- var parent1 = new cc.Node();
+ var parent1 = new _ccsg.Node();
var parent2 = new cc.SpriteBatchNode(s_grossini, 50);
this.addChild(parent1, 0, TAG_NODE);
@@ -3536,7 +3536,7 @@ var SpriteChildrenVisibility = SpriteTestDemo.extend({
//
// Sprite
//
- aParent = new cc.Node();
+ aParent = new _ccsg.Node();
aParent.x = 2 * winSize.width / 3;
aParent.y = winSize.height / 2;
this.addChild(aParent, 0);
@@ -3636,7 +3636,7 @@ var SpriteChildrenVisibilityIssue665 = SpriteTestDemo.extend({
//
// Sprite
//
- aParent = new cc.Node();
+ aParent = new _ccsg.Node();
aParent.x = 2 * winSize.width / 3;
aParent.y = winSize.height / 2;
this.addChild(aParent, 0);
@@ -3692,7 +3692,7 @@ var SpriteChildrenAnchorPoint = SpriteTestDemo.extend({
this._super();
spriteFrameCache.addSpriteFrames(s_grossiniPlist);
- var aParent = new cc.Node();
+ var aParent = new _ccsg.Node();
this.addChild(aParent, 0);
// anchor (0,0)
@@ -3962,7 +3962,7 @@ var SpriteBatchNodeChildrenScale = SpriteTestDemo.extend({
// Children + Scale using Sprite
// Test 1
//
- var aParent = new cc.Node();
+ var aParent = new _ccsg.Node();
var sprite1 = new cc.Sprite(spriteFrameCache.getSpriteFrame("grossinis_sister1.png"));
sprite1.x = winSize.width / 4;
sprite1.y = winSize.height / 4;
@@ -4007,7 +4007,7 @@ var SpriteBatchNodeChildrenScale = SpriteTestDemo.extend({
// Children + Scale using Sprite
// Test 3
//
- aParent = new cc.Node();
+ aParent = new _ccsg.Node();
sprite1 = new cc.Sprite(spriteFrameCache.getSpriteFrame("grossinis_sister1.png"));
sprite1.x = winSize.width / 4;
sprite1.y = 2 * winSize.height / 3;
@@ -4092,7 +4092,7 @@ var SpriteChildrenChildren = SpriteTestDemo.extend({
//
// SpriteBatchNode: 3 levels of children
//
- var aParent = new cc.Node();
+ var aParent = new _ccsg.Node();
this.addChild(aParent);
// parent
@@ -4540,7 +4540,7 @@ var NodeSort = SpriteTestDemo.extend({
ctor:function () {
//----start49----ctor
this._super();
- this._node = new cc.Node();
+ this._node = new _ccsg.Node();
this.addChild(this._node, 0, 0);
this._sprite1 = new cc.Sprite(s_piece, cc.rect(128, 0, 64, 64));
@@ -4865,7 +4865,7 @@ var SpriteSkewNegativeScaleChildren = SpriteTestDemo.extend({
cache.addSpriteFrames(s_grossiniPlist);
cache.addSpriteFrames(s_grossini_grayPlist, s_grossini_gray);
- var parent = new cc.Node();
+ var parent = new _ccsg.Node();
this.addChild(parent);
for (var i = 0; i < 2; i++) {
diff --git a/test/visual-tests/src/XHRTest/XHRArrayBufferTest.js b/test/visual-tests/src/XHRTest/XHRArrayBufferTest.js
index fb896bf622..1d797833c8 100644
--- a/test/visual-tests/src/XHRTest/XHRArrayBufferTest.js
+++ b/test/visual-tests/src/XHRTest/XHRArrayBufferTest.js
@@ -114,7 +114,7 @@ var XHRArrayBufferTestLayer = cc.Layer.extend({
});
var runXHRArrayBufferTest = function () {
- var pScene = new cc.Scene();
+ var pScene = new _ccsg.Scene();
var pLayer = new XHRArrayBufferTestLayer();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/XHRTest/XHRTest.js b/test/visual-tests/src/XHRTest/XHRTest.js
index 104b858287..80318759f7 100644
--- a/test/visual-tests/src/XHRTest/XHRTest.js
+++ b/test/visual-tests/src/XHRTest/XHRTest.js
@@ -181,7 +181,7 @@ var XHRTestLayer = cc.Layer.extend({
});
var runXHRTest = function () {
- var pScene = new cc.Scene();
+ var pScene = new _ccsg.Scene();
var pLayer = new XHRTestLayer();
pScene.addChild(pLayer);
cc.director.runScene(pScene);
diff --git a/test/visual-tests/src/tests-main.js b/test/visual-tests/src/tests-main.js
index 45cc7dc357..52bfd4bc11 100644
--- a/test/visual-tests/src/tests-main.js
+++ b/test/visual-tests/src/tests-main.js
@@ -43,7 +43,7 @@ var PLATFROM_APPLE = PLATFROM_IOS | PLATFORM_MAC;
var autoTestEnabled = autoTestEnabled || false;
var autoTestCurrentTestName = autoTestCurrentTestName || "N/A";
-var TestScene = cc.Scene.extend({
+var TestScene = _ccsg.Scene.extend({
ctor:function (bPortrait) {
this._super();
this.init();
@@ -62,7 +62,7 @@ var TestScene = cc.Scene.extend({
}
},
onMainMenuCallback:function () {
- var scene = new cc.Scene();
+ var scene = new _ccsg.Scene();
var layer = new TestController();
scene.addChild(layer);
director.runScene(scene);