[已解决]3.0的阴影字问题

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)

貌似确实有问题。我反馈下看看。

还有ccui.button的文字,不知怎样可以设置阴影字,反馈一下把这个也做好吧,谢谢~~

好的。:7::7:

额。。。这个。。这个。。无颜面对江东父老啊 T.T:6::6::6:

移植代码的时候,没发现依赖的组件api改了。

你可以试试这个commit。不过,不过,总觉得屁股凉飕飕的,估计还有什么奇奇怪怪的问题额。。。
https://github.com/cocos2d/cocos2d-html5/pull/2263/files

如果碰到其他问题,继续留言吖 ~~~ 干巴爹~~:7::7:

额。忘了点回复你了,那就顺带灌水一条啦。哇哈哈。~~看上面那条吖

请看 板凳 楼层。。。。 :870:

这个。这个。。。UIButton的问题。。。

取出里面的LabelTTF设置阴影就可以了,不过原来木有接口取出来。。。下面这个commit增加了这个接口~~
取出的就是那个天杀的LabelTTF对象哇。。。哈哈哈。。。

https://github.com/cocos2d/cocos2d-html5/pull/2264

谢谢亲反馈的两个问题咯~~:14::14: