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);