mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
@@ -119,12 +119,12 @@ cc.ActionInterval = cc.FiniteTimeAction.extend({
|
||||
|
||||
/**
|
||||
* Implementation of ease motion.
|
||||
*
|
||||
* @method easing
|
||||
* @param {Object} easeObj
|
||||
* @returns {ActionInterval}
|
||||
* @example
|
||||
* //example
|
||||
* action.easeing(cc.easeIn(3.0));
|
||||
* @param {Object} easeObj
|
||||
* @returns {ActionInterval}
|
||||
*/
|
||||
easing: function (easeObj) {
|
||||
if (this._easeList)
|
||||
|
||||
@@ -599,7 +599,7 @@ JS.mixin(cc.Audio.prototype, {
|
||||
/**
|
||||
* Pause playing sound effect.
|
||||
* @method pauseEffect
|
||||
* @param {Number} cc.Audio The return value of function playEffect.
|
||||
* @param {Number} audio - The return value of function playEffect.
|
||||
* @example
|
||||
* //example
|
||||
* cc.audioEngine.pauseEffect(audioID);
|
||||
@@ -632,7 +632,7 @@ JS.mixin(cc.Audio.prototype, {
|
||||
/**
|
||||
* Resume playing sound effect.
|
||||
* @method resumeEffect
|
||||
* @param {Number} cc.Audio The return value of function playEffect.
|
||||
* @param {Number} audioID - The return value of function playEffect.
|
||||
* @audioID
|
||||
* //example
|
||||
* cc.audioEngine.resumeEffect(audioID);
|
||||
@@ -662,7 +662,7 @@ JS.mixin(cc.Audio.prototype, {
|
||||
/**
|
||||
* Stop playing sound effect.
|
||||
* @method stopEffect
|
||||
* @param {Number} cc.Audio The return value of function playEffect.
|
||||
* @param {Number} audioID - The return value of function playEffect.
|
||||
* @example
|
||||
* //example
|
||||
* cc.audioEngine.stopEffect(audioID);
|
||||
|
||||
@@ -45,8 +45,8 @@ var EventTarget = cc.EventTarget;
|
||||
* @example
|
||||
* var node = new cc.AtlasNode("pathOfTile", 16, 16, 1);
|
||||
*
|
||||
* @property {cc.Texture2D} texture - Current used texture
|
||||
* @property {cc.TextureAtlas} textureAtlas - Texture atlas for cc.AtlasNode
|
||||
* @property {Texture2D} texture - Current used texture
|
||||
* @property {TextureAtlas} textureAtlas - Texture atlas for cc.AtlasNode
|
||||
* @property {Number} quadsToDraw - Number of quads to draw
|
||||
*/
|
||||
cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
|
||||
@@ -215,7 +215,7 @@ cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
|
||||
/**
|
||||
* Initializes an CCAtlasNode with an atlas texture, the width, the height of each tile and the quantity of tiles to render
|
||||
* @function
|
||||
* @param {cc.Texture2D} texture The atlas texture
|
||||
* @param {Texture2D} texture The atlas texture
|
||||
* @param {Number} tileWidth The width of each tile
|
||||
* @param {Number} tileHeight The height of each tile
|
||||
* @param {Number} itemsToRender The quantity of tiles to be rendered
|
||||
@@ -228,7 +228,7 @@ cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
|
||||
/**
|
||||
* Set node's color
|
||||
* @function
|
||||
* @param {cc.Color} color Color object created with cc.color(r, g, b).
|
||||
* @param {Color} color Color object created with cc.color(r, g, b).
|
||||
*/
|
||||
setColor: function(color){
|
||||
this._renderCmd.setColor(color);
|
||||
@@ -246,7 +246,7 @@ cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
|
||||
/**
|
||||
* Get the current texture
|
||||
* @function
|
||||
* @return {cc.Texture2D}
|
||||
* @return {Texture2D}
|
||||
*/
|
||||
getTexture: function(){
|
||||
return this._texture;
|
||||
@@ -255,7 +255,7 @@ cc.AtlasNode = _ccsg.Node.extend(/** @lends cc.AtlasNode# */{
|
||||
/**
|
||||
* Replace the current texture with a new one
|
||||
* @function
|
||||
* @param {cc.Texture2D} texture The new texture
|
||||
* @param {Texture2D} texture The new texture
|
||||
*/
|
||||
setTexture: function(texture){
|
||||
this._texture = texture;
|
||||
|
||||
@@ -807,7 +807,7 @@ _ccsg.Node = cc.Class({
|
||||
* The contentSize remains the same no matter the node is scaled or rotated.<br/>
|
||||
* All nodes has a size. Layer and Scene has the same size of the screen by default. <br/></p>
|
||||
* @function
|
||||
* @return {cc.Size} The untransformed size of the node.
|
||||
* @return {Size} The untransformed size of the node.
|
||||
*/
|
||||
getContentSize: function () {
|
||||
return cc.size(this._contentSize);
|
||||
|
||||
@@ -29,7 +29,7 @@ var JS = require('../platform/js');
|
||||
/**
|
||||
* cc.Size is the class for size object, please do not use its constructor to create sizes, use cc.size() alias function instead.
|
||||
* It will be deprecated soon, please use cc.Vec2 instead
|
||||
* @class Size
|
||||
* @class cc.Size
|
||||
* @param {Number} width
|
||||
* @param {Number} height
|
||||
* @see cc.size
|
||||
|
||||
@@ -108,7 +108,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
/**
|
||||
* Sets the untransformed size of the TMXLayer.
|
||||
* @override
|
||||
* @param {cc.Size|Number} size The untransformed size of the TMXLayer or The untransformed size's width of the TMXLayer.
|
||||
* @param {Size|Number} size The untransformed size of the TMXLayer or The untransformed size's width of the TMXLayer.
|
||||
* @param {Number} [height] The untransformed size's height of the TMXLayer.
|
||||
*/
|
||||
setContentSize:function (size, height) {
|
||||
@@ -119,7 +119,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
/**
|
||||
* Return texture of cc.SpriteBatchNode
|
||||
* @function
|
||||
* @return {cc.Texture2D}
|
||||
* @return {Texture2D}
|
||||
*/
|
||||
getTexture: function(){
|
||||
return this._renderCmd.getTexture();
|
||||
@@ -127,7 +127,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
|
||||
/**
|
||||
* Gets layer size.
|
||||
* @return {cc.Size}
|
||||
* @return {Size}
|
||||
*/
|
||||
getLayerSize:function () {
|
||||
return cc.size(this._layerSize.width, this._layerSize.height);
|
||||
@@ -135,7 +135,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
|
||||
/**
|
||||
* Set layer size
|
||||
* @param {cc.Size} Var
|
||||
* @param {Size} Var
|
||||
*/
|
||||
setLayerSize:function (Var) {
|
||||
this._layerSize.width = Var.width;
|
||||
@@ -157,7 +157,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
|
||||
/**
|
||||
* Size of the map's tile (could be different from the tile's size)
|
||||
* @return {cc.Size}
|
||||
* @return {Size}
|
||||
*/
|
||||
getMapTileSize:function () {
|
||||
return cc.size(this._mapTileSize.width,this._mapTileSize.height);
|
||||
@@ -165,7 +165,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
|
||||
/**
|
||||
* Set the map tile size.
|
||||
* @param {cc.Size} Var
|
||||
* @param {Size} Var
|
||||
*/
|
||||
setMapTileSize:function (Var) {
|
||||
this._mapTileSize.width = Var.width;
|
||||
@@ -317,7 +317,7 @@ _ccsg.TMXLayer = cc.SpriteBatchNode.extend(/** @lends _ccsg.TMXLayer# */{
|
||||
* You can remove either by calling: <br/>
|
||||
* - layer.removeChild(sprite, cleanup); <br/>
|
||||
* - or layer.removeTileAt(ccp(x,y)); </p>
|
||||
* @param {cc.Vec2|Number} pos or x
|
||||
* @param {Vec2|Number} pos or x
|
||||
* @param {Number} [y]
|
||||
* @return {_ccsg.Sprite}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user