0
我已经创建了一个标签并试图包装它。 当文本中出现空格时它的包装,但当逗号(,)出现在文本中时它也会包装。Cocos2d js如何用文字包装ccLabel
当逗号出现时,我不想换行。
任何帮助。
码 -
var label = new cc.LabelTTF("Get 100% Welcome Bonus upto Rs. 1,000 on your first deposit.", "Arial", 30);
label.setPosition(cc.p(this.width/2, this.height/2));
label.setScale(0.5);
label.setColor(cc.color(255, 0, 0));
label._setBoundingWidth(520);
this.addChild(label, 1000);