Skip to content

Commit

Permalink
use cc alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
pingpongboss committed Nov 14, 2011
1 parent cd7b41c commit 2e76fcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CCLabelBMFontMultiline/CCLabelBMFontTest.m
Expand Up @@ -56,7 +56,7 @@ -(id) init
CGSize size = [[CCDirector sharedDirector] winSize];

// create and initialize a Label
self.label = [CCLabelBMFont labelWithString:LongSentencesExample fntFile:@"markerFelt.fnt" width:size.width/1.5 alignment:UITextAlignmentCenter];
self.label = [CCLabelBMFont labelWithString:LongSentencesExample fntFile:@"markerFelt.fnt" width:size.width/1.5 alignment:CCTextAlignmentCenter];
//self.label.debug = YES;

self.arrowsBar = [CCSprite spriteWithFile:@"arrowsBar.png"];
Expand Down Expand Up @@ -158,13 +158,13 @@ - (void)alignmentChanged:(id)sender {

switch (item.tag) {
case LeftAlign:
[self.label setAlignment:UITextAlignmentLeft];
[self.label setAlignment:CCTextAlignmentLeft];
break;
case CenterAlign:
[self.label setAlignment:UITextAlignmentCenter];
[self.label setAlignment:CCTextAlignmentCenter];
break;
case RightAlign:
[self.label setAlignment:UITextAlignmentRight];
[self.label setAlignment:CCTextAlignmentRight];
break;

default:
Expand Down

0 comments on commit 2e76fcc

Please sign in to comment.