Skip to content

Commit 143a620

Browse files
committed
Merge branch 'v3.0' of github.com:cocos2d/cocos2d-iphone into v3.0
2 parents 6c7e524 + a568af9 commit 143a620

File tree

9 files changed

+45
-6
lines changed

9 files changed

+45
-6
lines changed
45.2 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<map version="1.0" orientation="orthogonal" width="10" height="10" tilewidth="32" tileheight="32">
3+
<tileset firstgid="1" name="Desert" tilewidth="32" tileheight="32" spacing="1" margin="1">
4+
<image source="desert_resolution.png"/>
5+
</tileset>
6+
<layer name="Tile Layer 1" width="10" height="10">
7+
<data encoding="base64" compression="gzip">
8+
H4sIAAAAAAAAA5NkYGCQIoClgViRgTBQpoM6JSimljpquw+XOk0g1iKAtYEYAF51CouQAQAA
9+
</data>
10+
</layer>
11+
</map>
55.1 KB
Loading
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<map version="1.0" orientation="orthogonal" width="10" height="10" tilewidth="64" tileheight="64">
3+
<tileset firstgid="1" name="Desert" tilewidth="64" tileheight="64" spacing="2" margin="2">
4+
<image source="desert_resolution.png"/>
5+
</tileset>
6+
<layer name="Tile Layer 1" width="10" height="10">
7+
<data encoding="base64" compression="gzip">
8+
H4sIAAAAAAAAA5NkYGCQIoClgViRgTBQpoM6JSimljpquw+XOk0g1iKAtYEYAF51CouQAQAA
9+
</data>
10+
</layer>
11+
</map>

cocos2d-ui-tests/tests/TilemapTest.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,17 @@ -(void) setupTilemap6Test
8787
scroll.scrollPosition = ccp(map.contentSizeInPoints.width/2 - scroll.contentSizeInPoints.width/2, 0);
8888
}
8989

90+
-(void) setupTilemap7Test
91+
{
92+
// These files are in the SB directories.
93+
self.subTitle = @"TileMaps/orthogonal_resolution.tmx";
94+
95+
CCNode *map = [CCTiledMap tiledMapWithFile:self.subTitle];
96+
CCScrollView *scroll = [[CCScrollView alloc] initWithContentNode:map];
97+
scroll.flipYCoordinates = NO;
98+
99+
[self.contentNode addChild:scroll];
100+
scroll.scrollPosition = ccp(map.contentSizeInPoints.width/2 - scroll.contentSizeInPoints.width/2, 0);
101+
}
102+
90103
@end

cocos2d-ui/CCSlider.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ - (void) updateSliderPositionFromValue
7676

7777
- (void) touchEntered:(UITouch*)touch withEvent:(UIEvent*)event
7878
{
79+
if (!self.enabled) return;
80+
7981
CGPoint worldLocation = [touch locationInWorld];
8082

8183
[self inputEnteredWithWorlPos:worldLocation];

cocos2d/CCNodeColor.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
* Features:
212212
*
213213
* - It supports one or more children
214-
* - Only one children will be active a time
214+
* - Only one child will be active a time
215215
*/
216216
@interface CCNodeMultiplexer : CCNode {
217217
unsigned int _enabledNode;
@@ -224,21 +224,21 @@
224224
/// -----------------------------------------------------------------------
225225

226226
/**
227-
* Creates a CCNodeMultiplexer with an array of layers.
227+
* Creates a CCNodeMultiplexer with an array of nodes.
228228
*
229229
* @param arrayOfNodes Array of nodes.
230230
*
231-
* @return The CCNodeMultiplexer Object.
231+
* @return The CCNodeMultiplexer object.
232232
*/
233233
+(id)nodeWithArray:(NSArray*)arrayOfNodes;
234234

235-
/** Creates a CCMultiplexLayer with one or more layers using a variable argument list.
235+
/** Creates a CCMultiplexLayer with one or more nodes using a variable argument list.
236236
* Example:
237237
* @code mux = [CCNodeMultiplexer nodeWithNodes:nodeA, nodeB, nodeC, nil];
238238
*
239239
* @param node List of nodes.
240240
* @param ... Nil terminator.
241-
* @return The CCNodeMultiplexer Object.
241+
* @return The CCNodeMultiplexer object.
242242
*/
243243
+(id)nodeWithNodes:(CCNode*)node, ... NS_REQUIRES_NIL_TERMINATION;
244244

@@ -248,7 +248,7 @@
248248
/// -----------------------------------------------------------------------
249249

250250
/**
251-
* Initializes a CCNodeMultiplexer with an array of layers.
251+
* Initializes a CCNodeMultiplexer with an array of nodes.
252252
*
253253
* @param arrayOfNodes Array of nodes.
254254
*

cocos2d/CCSprite.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#import "CCSprite_Private.h"
4747
#import "CCSpriteBatchNode_Private.h"
4848
#import "CCTexture_Private.h"
49+
#import "CCDrawingPrimitives.h"
4950

5051
// external
5152
#import "kazmath/GL/matrix.h"

cocos2d/CCSprite9Slice.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#import "CCSprite9Slice.h"
2929
#import "CCTexture_Private.h"
30+
#import "CCDrawingPrimitives.h"
3031

3132
// ---------------------------------------------------------------------
3233

0 commit comments

Comments
 (0)