I have a button with long title text and width is small, so i want to load text in multiple line within a button,but the text goes out of button width and is displayed in a single line. so how to set the width to titletext in a button…
my button code is:
button5 = Button::create();
button5->setTitleText("click this big button with lots of text..");
button5->setTitleFontName("fonts/arial.ttf");
button5->setTitleFontSize(40);
button5->setTouchEnabled(true);
button5->loadTextures("blank.png", "blankd.png");
button5->setPosition(Point(visibleSize.width * 0.75 + origin.x, visibleSize.height * 0.25 + origin.y));
this->addChild(button5);