Cocos2d-JS v3.0 alpha release: Feedbacks

@codin , I tested ccui.Button.setEnabled, but it did work
I agree with you for the touch event listener callback, the new event manager work differently, maybe you can give it a try.

@icepower It is not ready for now, because Cocos2d-x have been using the new renderer, and the old trick is no longer working. But we will fix it before beta version.

@pandamicro thanks for your reply.
In my testing “ccui.Button.setEnabled(false)”,the button disappeared! I think it should be show the “disabled” texture,it’s not it?

@codin o hahahahaha I post this issue that setEnabled(false) will hide widget on January :http://www.cocoachina.com/bbs/read.php?tid=181496
but likely they didn’t feel this is a ugly design.

看来外国友人也觉得这个函数很奇怪!!!!

@zhi_ye_tu_cao

为了实现button.setEnabled(false)的预期效果,目前采用的办法是:button.setTouchEnable(false);button.loadTextures(“disabled.png”);

很晕,很绕口的感觉,有木有。

建议官方很有必要button.setEnabled(false)改过来啊。

@pandamicro ccui.TextField cannot delete worlds. alpha 2 version will fix the bug?

@codin 晕 原来不是外国友人!:stuck_out_tongue:
你说的是按钮显示禁用的图片啊,好像有另外一个函数,我给你找找

@codin

button->setBright(false);
button->setTouchEnabled(false);
http://www.cocoachina.com/bbs/read.php?tid=168375&keyword=���ð�ť

好像也挺麻烦。
如果你有cocostudio 的问题,建议你去 cocoachina 的 cocostudio 版块提问。
子龙山人也正在收集ui的问题呢:http://www.cocoachina.com/bbs/read.php?tid=197513

@codin

As @zhi_ye_tu_cao said, it is a little tricky to use Widget’s setEnabled function, we will try to fix it.

@shmilypyj

It will be fixed before 3.0 final version

@pandamicro
Did not find UserDefault,which is the class to save and load data on local device.
for example,the record for user game progress.
It is supported in 2.2 version JSB and 3.0 version C++.

@holyspot

Thanks for the feedback, we will check on that. In the meantime, I’m also interested in your use case of UserDefault class, can you be more specific on that?

@pandamicro
for example:
we can save player login name and password on localStorage after he login successfully. so he will login next time without input the both again.

@holyspot

For now, you can use localStorage to do so. The API is: cc.sys.localStorage

very nice.i will try it later
thx for the kindly reply

andorid 4.1.2 黑屏

测试机:小米1
测试代码:cocos new test -l js
cocos compile -p android
cocos run -p android
具体描述:游戏启动后就黑屏,然后几秒中后退出。目前测试在小米3(android 4.2.1)下不会,不知道是否还有更多系统会黑屏和退出。

麻烦看下

jsb 里怎么使用 Vertex2F? 我这样用:cc.Vertex2F(0, 0); 但是报错:cc.Vertex2F is not a function。
ch5里是正常的。

@shmilypyj you can use EditBox, there is no problem in this one

@zhi_ye_tu_cao

We haven’t binded it yet, can you tell us what’s your use case?

@pandamicro
use this api: gl.drawArrays(gl.TRIANGLE_STRIP, 0, nVertices);
nVertices is a array of cc.Vertex2F。