@@ -84,6 +84,12 @@ - (void)showFont:(NSString *)aFont
84
84
[self .contentNode removeAllChildren ];
85
85
86
86
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
+
87
93
CCLabelTTF *left = [CCLabelTTF labelWithString: @" alignment left" fontName: aFont fontSize: fontSize dimensions: blockSize];
88
94
CCLabelTTF *center = [CCLabelTTF labelWithString: @" alignment center" fontName: aFont fontSize: fontSize dimensions: blockSize];
89
95
CCLabelTTF *right = [CCLabelTTF labelWithString: @" alignment right" fontName: aFont fontSize: fontSize dimensions: blockSize];
@@ -105,7 +111,7 @@ - (void)showFont:(NSString *)aFont
105
111
center.anchorPoint = centerColor.anchorPoint = ccp (0 ,0.5 );
106
112
right.anchorPoint = rightColor.anchorPoint = ccp (0 ,0.5 );
107
113
108
- top.position = ccp (s.width /2 ,s.height -60 );
114
+ top.position = ccp (s.width /2 ,s.height -80 );
109
115
left.position = leftColor.position = ccp (0 ,s.height /3 );
110
116
center.position = centerColor.position = ccp (blockSize.width , s.height /3 );
111
117
right.position = rightColor.position = ccp (blockSize.width *2 , s.height /3 );
@@ -117,7 +123,6 @@ - (void)showFont:(NSString *)aFont
117
123
[self .contentNode addChild: centerColor z: -1 ];
118
124
[self .contentNode addChild: center z: 0 ];
119
125
[self .contentNode addChild: top z: 0 ];
120
-
121
126
}
122
127
123
128
0 commit comments