File tree 2 files changed +4
-17
lines changed
2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 212
212
213
213
// Opacity/Color propagates into children that conform to if cascadeOpacity/cascadeColor is enabled.
214
214
BOOL _cascadeColorEnabled, _cascadeOpacityEnabled;
215
-
216
- // contentSize changes don't propogate to children unless cascadeContentSize is enabled.
217
- BOOL _cascadeContentSizeEnabled;
218
215
219
216
@private
220
217
// Physics Body.
389
386
// / -----------------------------------------------------------------------
390
387
391
388
/* * The untransformed size of the node in the unit specified by contentSizeType property.
392
- The contentSize remains the same regardless of whether the node is scaled or rotated. Changes to contentSize will not affect
393
- children unless the property cascadeContentSize is enabled.
389
+ The contentSize remains the same regardless of whether the node is scaled or rotated.
394
390
@see contentSizeInPoints
395
- @see contentSizeType
396
- @see cascadeContentSizeEnabled
397
- */
391
+ @see contentSizeType */
398
392
@property (nonatomic ,readwrite ,assign ) CGSize contentSize;
399
393
400
394
/* * The untransformed size of the node in Points. The contentSize remains the same regardless of whether the node is scaled or rotated.
410
404
@see contentSizeInPoints */
411
405
@property (nonatomic ,readwrite ,assign ) CCSizeType contentSizeType;
412
406
413
- /* *
414
- cascadeContentSizeEnabled causes changes to this node's contentSize to cascade down to it's children.
415
- @see contentSize
416
- */
417
- @property (nonatomic , getter = isCascadeContentSizeEnabled) BOOL cascadeContentSizeEnabled;
418
-
419
407
/* *
420
408
* Invoked automatically when the OS view has been resized.
421
409
*
Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ -(id) init
187
187
_displayColor = _color = [CCColor whiteColor ].ccColor4f ;
188
188
_cascadeOpacityEnabled = NO ;
189
189
_cascadeColorEnabled = NO ;
190
- _cascadeContentSizeEnabled = NO ;
191
190
}
192
191
193
192
return self;
@@ -400,11 +399,12 @@ - (void) contentSizeChanged
400
399
{
401
400
[child parentsContentSizeChanged ];
402
401
}
402
+
403
403
}
404
404
405
405
- (void ) parentsContentSizeChanged
406
406
{
407
- if (!CCSizeTypeIsBasicPoints (_contentSizeType) && (_cascadeContentSizeEnabled == YES ) )
407
+ if (!CCSizeTypeIsBasicPoints (_contentSizeType))
408
408
{
409
409
[self contentSizeChanged ];
410
410
}
@@ -1679,7 +1679,6 @@ - (BOOL)hitTestWithWorldPos:(CGPoint)pos
1679
1679
1680
1680
@synthesize cascadeColorEnabled=_cascadeColorEnabled;
1681
1681
@synthesize cascadeOpacityEnabled=_cascadeOpacityEnabled;
1682
- @synthesize cascadeContentSizeEnabled=_cascadeContentSizeEnabled;
1683
1682
1684
1683
-(CGFloat ) opacity
1685
1684
{
You can’t perform that action at this time.
0 commit comments