cocos studio创建一个label
然后调用 label. enableShadow(color,size,1); 执行的是UIText.js下面的这个函数
/**
* Enables shadow style and sets color, offset and blur radius styles.
* @param {cc.Color} shadowColor
* @param {cc.Size} offset
* @param {Number} blurRadius
*/
enableShadow: function(shadowColor, offset, blurRadius){
this._labelRenderer.enableShadow(shadowColor, offset, blurRadius);
},
UIText.js的这个函数,再跟下去竟然是执行CCLabelTTF.js下面的这个函数, 参数都完全对不上的,如果直接按下面到参数来设置,则可以,但不知到如何设置阴影颜色,求指导?
/**
* Enable or disable shadow for the label
* @param {Number} shadowOffsetX The x axis offset of the shadow
* @param {Number} shadowOffsetY The y axis offset of the shadow
* @param {Number} shadowOpacity The opacity of the shadow (0 to 1)
* @param {Number} shadowBlur The blur size of the shadow
*/
enableShadow: function (shadowOffsetX, shadowOffsetY, shadowOpacity, shadowBlur)


