来个CClabel换行,英文貌似有问题,中文可行~
效果图,
[img]http://dl2.iteye.com/upload/attachment/0097/4680/fae8cfcf-6808-3665-b013-644b2cd22473.jpg[/img]
CCLabelTTF* pLabel = CCLabelTTF::create("啊啊啊啊啊啊", "Arial", 24);
pLabel->setDimensions(CCSizeMake(250, 0)); // 设置显示区域
pLabel->setHorizontalAlignment(kCCTextAlignmentLeft);
效果图,
[img]http://dl2.iteye.com/upload/attachment/0097/4680/fae8cfcf-6808-3665-b013-644b2cd22473.jpg[/img]