HI,
My title have a CCLabelTTF as a textboard, and I want to display text from the topleft line by line.
My code is
@
CCLabelTTF* pLabel = CCLabelTTF::labelWithString(“1st line”,CCSizeMake(320, 480),CCTextAlignmentLeft, “xxx.ttf”, 20);
CCSize size = CCDirector::sharedDirector()>getWinSize;>setPosition(ccp(size.width / 2, size.height - 10));
pLabel
@
that should be ok.
but if I call this code, it will display not I want, (attached file p1.jpg)
@
pLabel~~>setString;
@
I find the CCLabelTTF the 3rd parameter~~ UITextAlignment alignment only have 3 types.
CCTextAlignmentLeft,
CCTextAlignmentCenter,
CCTextAlignmentRight,
those just horizontal alignment, no vertical alignment options.
what is the better way to solve it?
p1.jpg (3.1 KB)
p0.jpg (2.2 KB)