@@ -22,14 +22,22 @@ -(id)init
22
22
23
23
-(void )setupPaddingEffectTest
24
24
{
25
- self.subTitle = @" Glass Effect Test" ;
25
+ self.subTitle = @" Effect Padding Test" ;
26
26
27
27
CCSprite *original = [CCSprite spriteWithImageNamed: @" Images/WhiteDiamond.png" ];
28
28
original.positionType = CCPositionTypeNormalized;
29
29
original.position = ccp (0.25 , 0.5 );
30
30
31
31
[self .contentNode addChild: original];
32
32
33
+ CCLabelTTF *title1 = [CCLabelTTF labelWithString: @" Original Sprite" fontName: @" HelveticaNeue-Light" fontSize: 14 * [CCDirector sharedDirector ].UIScaleFactor];
34
+ title1.color = [CCColor whiteColor ];
35
+ title1.positionType = CCPositionTypeNormalized;
36
+ title1.position = ccp (0 .25f , 0 .1f );
37
+ title1.horizontalAlignment = CCTextAlignmentCenter;
38
+
39
+ [self .contentNode addChild: title1];
40
+
33
41
34
42
CCSprite *blurred = [CCSprite spriteWithImageNamed: @" Images/WhiteDiamond.png" ];
35
43
blurred.positionType = CCPositionTypeNormalized;
@@ -40,6 +48,14 @@ -(void)setupPaddingEffectTest
40
48
41
49
[self .contentNode addChild: blurred];
42
50
51
+ CCLabelTTF *title2 = [CCLabelTTF labelWithString: @" Blur (no padding)" fontName: @" HelveticaNeue-Light" fontSize: 14 * [CCDirector sharedDirector ].UIScaleFactor];
52
+ title2.color = [CCColor whiteColor ];
53
+ title2.positionType = CCPositionTypeNormalized;
54
+ title2.position = ccp (0 .5f , 0 .1f );
55
+ title2.horizontalAlignment = CCTextAlignmentCenter;
56
+
57
+ [self .contentNode addChild: title2];
58
+
43
59
44
60
CCSprite *padded = [CCSprite spriteWithImageNamed: @" Images/WhiteDiamond.png" ];
45
61
padded.positionType = CCPositionTypeNormalized;
@@ -50,6 +66,14 @@ -(void)setupPaddingEffectTest
50
66
padded.effect = blur2;
51
67
52
68
[self .contentNode addChild: padded];
69
+
70
+ CCLabelTTF *title3 = [CCLabelTTF labelWithString: @" Padded Blur" fontName: @" HelveticaNeue-Light" fontSize: 14 * [CCDirector sharedDirector ].UIScaleFactor];
71
+ title3.color = [CCColor whiteColor ];
72
+ title3.positionType = CCPositionTypeNormalized;
73
+ title3.position = ccp (0 .75f , 0 .1f );
74
+ title3.horizontalAlignment = CCTextAlignmentCenter;
75
+
76
+ [self .contentNode addChild: title3];
53
77
}
54
78
55
79
-(void )setupColorChannelOffsetTest
0 commit comments