@@ -84,6 +84,12 @@ - (void)showFont:(NSString *)aFont
8484 [self .contentNode removeAllChildren ];
8585
8686 CCLabelTTF *top = [CCLabelTTF labelWithString: aFont fontName: aFont fontSize: 24 ];
87+ top.outlineColor = [CCColor blackColor ];
88+ top.outlineWidth = 1.0 ;
89+ top.shadowColor = [CCColor whiteColor ];
90+ top.shadowBlurRadius = 2.0 ;
91+ top.shadowOffset = ccp (1.0 , -1.0 );
92+
8793 CCLabelTTF *left = [CCLabelTTF labelWithString: @" alignment left" fontName: aFont fontSize: fontSize dimensions: blockSize];
8894 CCLabelTTF *center = [CCLabelTTF labelWithString: @" alignment center" fontName: aFont fontSize: fontSize dimensions: blockSize];
8995 CCLabelTTF *right = [CCLabelTTF labelWithString: @" alignment right" fontName: aFont fontSize: fontSize dimensions: blockSize];
@@ -105,7 +111,7 @@ - (void)showFont:(NSString *)aFont
105111 center.anchorPoint = centerColor.anchorPoint = ccp (0 ,0.5 );
106112 right.anchorPoint = rightColor.anchorPoint = ccp (0 ,0.5 );
107113
108- top.position = ccp (s.width /2 ,s.height -60 );
114+ top.position = ccp (s.width /2 ,s.height -80 );
109115 left.position = leftColor.position = ccp (0 ,s.height /3 );
110116 center.position = centerColor.position = ccp (blockSize.width , s.height /3 );
111117 right.position = rightColor.position = ccp (blockSize.width *2 , s.height /3 );
@@ -117,7 +123,6 @@ - (void)showFont:(NSString *)aFont
117123 [self .contentNode addChild: centerColor z: -1 ];
118124 [self .contentNode addChild: center z: 0 ];
119125 [self .contentNode addChild: top z: 0 ];
120-
121126}
122127
123128
0 commit comments