mirror of https://github.com/axmolengine/axmol.git
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3
This commit is contained in:
commit
2fc082cac1
|
@ -1,8 +1,10 @@
|
|||
cocos2d-x-3.3 ??
|
||||
[NEW] Added UIScale9Sprite
|
||||
[NEW] FileUtils: add isDirectoryExist(), createDirectory(), removeDirectory(), removeFile(), renameFile()
|
||||
getFileSize()
|
||||
[NEW] FileUtilsApple: allow setting bundle to use in file utils on iOS and Mac OS X
|
||||
[NEW] Image: support of software PVRTC v1 decompression
|
||||
[NEW] TextField: support utf8
|
||||
|
||||
[FIX] EditBox: font size is not scaled when glview is scaled on Mac OS X
|
||||
[FIX] Label: can not set charmap after it is created
|
||||
|
|
|
@ -13,6 +13,11 @@
|
|||
buildPhases = (
|
||||
);
|
||||
dependencies = (
|
||||
B2F0AFEC198794EE002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFEE198794EE002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFF0198794EE002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFF2198794EE002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFF4198794EE002FE562 /* PBXTargetDependency */,
|
||||
A03F31FF178147CB006731B9 /* PBXTargetDependency */,
|
||||
A03F2FC01781458C006731B9 /* PBXTargetDependency */,
|
||||
A03F2E93178141D1006731B9 /* PBXTargetDependency */,
|
||||
|
@ -28,6 +33,11 @@
|
|||
buildPhases = (
|
||||
);
|
||||
dependencies = (
|
||||
B2F0AFF619879508002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFF819879508002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFFA19879508002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFFC19879508002FE562 /* PBXTargetDependency */,
|
||||
B2F0AFFE19879508002FE562 /* PBXTargetDependency */,
|
||||
A07A4E10178386520073F6A7 /* PBXTargetDependency */,
|
||||
A07A5047178389710073F6A7 /* PBXTargetDependency */,
|
||||
A07A5049178389710073F6A7 /* PBXTargetDependency */,
|
||||
|
@ -40,6 +50,10 @@
|
|||
/* End PBXAggregateTarget section */
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
15EFA211198A2BB5000C57D3 /* CCProtectedNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15EFA20F198A2BB5000C57D3 /* CCProtectedNode.cpp */; };
|
||||
15EFA212198A2BB5000C57D3 /* CCProtectedNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15EFA20F198A2BB5000C57D3 /* CCProtectedNode.cpp */; };
|
||||
15EFA213198A2BB5000C57D3 /* CCProtectedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 15EFA210198A2BB5000C57D3 /* CCProtectedNode.h */; };
|
||||
15EFA214198A2BB5000C57D3 /* CCProtectedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 15EFA210198A2BB5000C57D3 /* CCProtectedNode.h */; };
|
||||
1A01C68418F57BE800EFE3A6 /* CCArray.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A01C67618F57BE800EFE3A6 /* CCArray.cpp */; };
|
||||
1A01C68518F57BE800EFE3A6 /* CCArray.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A01C67618F57BE800EFE3A6 /* CCArray.cpp */; };
|
||||
1A01C68618F57BE800EFE3A6 /* CCArray.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A01C67718F57BE800EFE3A6 /* CCArray.h */; };
|
||||
|
@ -553,6 +567,10 @@
|
|||
1AD71EF5180E27CF00808F54 /* CCPhysicsSprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AD71EEE180E27CF00808F54 /* CCPhysicsSprite.cpp */; };
|
||||
1AD71EF6180E27CF00808F54 /* CCPhysicsSprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AD71EEF180E27CF00808F54 /* CCPhysicsSprite.h */; };
|
||||
1AD71EF7180E27CF00808F54 /* CCPhysicsSprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AD71EEF180E27CF00808F54 /* CCPhysicsSprite.h */; };
|
||||
2958244B19873D8E00F9746D /* UIScale9Sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2958244919873D8E00F9746D /* UIScale9Sprite.cpp */; };
|
||||
2958244C19873D8E00F9746D /* UIScale9Sprite.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2958244919873D8E00F9746D /* UIScale9Sprite.cpp */; };
|
||||
2958244D19873D8E00F9746D /* UIScale9Sprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 2958244A19873D8E00F9746D /* UIScale9Sprite.h */; };
|
||||
2958244E19873D8E00F9746D /* UIScale9Sprite.h in Headers */ = {isa = PBXBuildFile; fileRef = 2958244A19873D8E00F9746D /* UIScale9Sprite.h */; };
|
||||
2986667F18B1B246000E39CA /* CCTweenFunction.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2986667818B1B079000E39CA /* CCTweenFunction.cpp */; };
|
||||
299754F4193EC95400A54AC3 /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 299754F2193EC95400A54AC3 /* ObjectFactory.cpp */; };
|
||||
299754F5193EC95400A54AC3 /* ObjectFactory.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 299754F2193EC95400A54AC3 /* ObjectFactory.cpp */; };
|
||||
|
@ -1326,7 +1344,6 @@
|
|||
B2C59A2919777E7A00B452DF /* CocosGUI.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2905F9E918CF08D000240AA3 /* CocosGUI.cpp */; };
|
||||
B2C59A2A19777E8300B452DF /* UIDeprecated.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29BDBA52195D597A003225C9 /* UIDeprecated.cpp */; };
|
||||
B2C59A2B19777E8300B452DF /* UIWidget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2905FA1318CF08D100240AA3 /* UIWidget.cpp */; };
|
||||
B2C59A2C19777E8300B452DF /* CCProtectedNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50E6D30C18DADB5D0051CA34 /* CCProtectedNode.cpp */; };
|
||||
B2C59A2D19777E8300B452DF /* UIHelper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2905F9F418CF08D000240AA3 /* UIHelper.cpp */; };
|
||||
B2C59A2E19777E8C00B452DF /* UIHBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50E6D32E18E174130051CA34 /* UIHBox.cpp */; };
|
||||
B2C59A2F19777E8C00B452DF /* UIRelativeBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50E6D33018E174130051CA34 /* UIRelativeBox.cpp */; };
|
||||
|
@ -1350,7 +1367,6 @@
|
|||
B2C59A4119777EBC00B452DF /* UIVideoPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EA0FB69191C841D00B170C8 /* UIVideoPlayer.h */; };
|
||||
B2C59A4219777EC700B452DF /* UIDeprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = 29080DEB191B82CE0066F8DF /* UIDeprecated.h */; };
|
||||
B2C59A4319777EC700B452DF /* UIWidget.h in Headers */ = {isa = PBXBuildFile; fileRef = 2905FA1418CF08D100240AA3 /* UIWidget.h */; };
|
||||
B2C59A4419777EC700B452DF /* CCProtectedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E6D30D18DADB5D0051CA34 /* CCProtectedNode.h */; };
|
||||
B2C59A4519777EC700B452DF /* UIHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 2905F9F518CF08D000240AA3 /* UIHelper.h */; };
|
||||
B2C59A4619777EC700B452DF /* GUIDefine.h in Headers */ = {isa = PBXBuildFile; fileRef = 2905F9EB18CF08D000240AA3 /* GUIDefine.h */; };
|
||||
B2C59A4719777ECF00B452DF /* UIHBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E6D32F18E174130051CA34 /* UIHBox.h */; };
|
||||
|
@ -1535,11 +1551,9 @@
|
|||
B2CC507C19776DD10041958E /* CCPhysicsJoint.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46A170721807CE7A005B8026 /* CCPhysicsJoint.cpp */; };
|
||||
B2D3D3B91948613300BA4831 /* CCBundle3DData.h in Headers */ = {isa = PBXBuildFile; fileRef = B2D3D3B81948613300BA4831 /* CCBundle3DData.h */; };
|
||||
B2D3D3BA1948613300BA4831 /* CCBundle3DData.h in Headers */ = {isa = PBXBuildFile; fileRef = B2D3D3B81948613300BA4831 /* CCBundle3DData.h */; };
|
||||
B2DB4763197661CD00411E16 /* CCProtectedNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50E6D30C18DADB5D0051CA34 /* CCProtectedNode.cpp */; };
|
||||
B2DB4764197661D500411E16 /* UIWidget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2905FA1318CF08D100240AA3 /* UIWidget.cpp */; };
|
||||
B2DB4765197661E400411E16 /* UIHBox.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 50E6D32E18E174130051CA34 /* UIHBox.cpp */; };
|
||||
B2DB4766197661EE00411E16 /* UILayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2905F9F818CF08D000240AA3 /* UILayout.cpp */; };
|
||||
B2DB4767197664EE00411E16 /* CCProtectedNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E6D30D18DADB5D0051CA34 /* CCProtectedNode.h */; };
|
||||
B2DB47681976650A00411E16 /* UIWidget.h in Headers */ = {isa = PBXBuildFile; fileRef = 2905FA1418CF08D100240AA3 /* UIWidget.h */; };
|
||||
B2DB47691976651E00411E16 /* UIHBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 50E6D32F18E174130051CA34 /* UIHBox.h */; };
|
||||
B2DB476A1976653000411E16 /* UILayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 2905F9F918CF08D000240AA3 /* UILayout.h */; };
|
||||
|
@ -1932,6 +1946,76 @@
|
|||
remoteGlobalIDString = A07A4F9F178387730073F6A7;
|
||||
remoteInfo = "CocosDenshion iOS";
|
||||
};
|
||||
B2F0AFEB198794EE002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B245F10019766132001920FD;
|
||||
remoteInfo = "libui Mac";
|
||||
};
|
||||
B2F0AFED198794EE002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B2DB48161976716E00411E16;
|
||||
remoteInfo = "libcocostudio Mac";
|
||||
};
|
||||
B2F0AFEF198794EE002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B2DB479B197669A100411E16;
|
||||
remoteInfo = "libcocosbuilder Mac";
|
||||
};
|
||||
B2F0AFF1198794EE002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B2DB48CA19767F1F00411E16;
|
||||
remoteInfo = "libspine Mac";
|
||||
};
|
||||
B2F0AFF3198794EE002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B2DB498D197686CB00411E16;
|
||||
remoteInfo = "libnetwork Mac";
|
||||
};
|
||||
B2F0AFF519879508002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B24EEA2C19775E92004493CC;
|
||||
remoteInfo = "libui iOS";
|
||||
};
|
||||
B2F0AFF719879508002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B24EEA6719775EBB004493CC;
|
||||
remoteInfo = "libcocostudio iOS";
|
||||
};
|
||||
B2F0AFF919879508002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B24EEA6F19775ECE004493CC;
|
||||
remoteInfo = "libcocosbuilder iOS";
|
||||
};
|
||||
B2F0AFFB19879508002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B24EEA7719775EE1004493CC;
|
||||
remoteInfo = "libspine iOS";
|
||||
};
|
||||
B2F0AFFD19879508002FE562 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 1551A336158F2AB200E66CFE /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = B24EEA7F19775EF3004493CC;
|
||||
remoteInfo = "libnetwork iOS";
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
|
@ -1954,6 +2038,8 @@
|
|||
06CAAAC1186AD63B0012A414 /* TriggerObj.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TriggerObj.h; sourceTree = "<group>"; };
|
||||
1551A33F158F2AB200E66CFE /* libcocos2d Mac.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libcocos2d Mac.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
1551A342158F2AB200E66CFE /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
15EFA20F198A2BB5000C57D3 /* CCProtectedNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCProtectedNode.cpp; sourceTree = "<group>"; };
|
||||
15EFA210198A2BB5000C57D3 /* CCProtectedNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCProtectedNode.h; sourceTree = "<group>"; };
|
||||
1A01C67618F57BE800EFE3A6 /* CCArray.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCArray.cpp; sourceTree = "<group>"; };
|
||||
1A01C67718F57BE800EFE3A6 /* CCArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCArray.h; sourceTree = "<group>"; };
|
||||
1A01C67818F57BE800EFE3A6 /* CCBool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCBool.h; sourceTree = "<group>"; };
|
||||
|
@ -2329,6 +2415,8 @@
|
|||
2905FA1318CF08D100240AA3 /* UIWidget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIWidget.cpp; sourceTree = "<group>"; };
|
||||
2905FA1418CF08D100240AA3 /* UIWidget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWidget.h; sourceTree = "<group>"; };
|
||||
29080DEB191B82CE0066F8DF /* UIDeprecated.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIDeprecated.h; sourceTree = "<group>"; };
|
||||
2958244919873D8E00F9746D /* UIScale9Sprite.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIScale9Sprite.cpp; sourceTree = "<group>"; };
|
||||
2958244A19873D8E00F9746D /* UIScale9Sprite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIScale9Sprite.h; sourceTree = "<group>"; };
|
||||
2986667818B1B079000E39CA /* CCTweenFunction.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCTweenFunction.cpp; sourceTree = "<group>"; };
|
||||
2986667918B1B079000E39CA /* CCTweenFunction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCTweenFunction.h; sourceTree = "<group>"; };
|
||||
299754F2193EC95400A54AC3 /* ObjectFactory.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ObjectFactory.cpp; path = ../base/ObjectFactory.cpp; sourceTree = "<group>"; };
|
||||
|
@ -2827,8 +2915,6 @@
|
|||
50ABBF541926664700A911A9 /* CCPlatformDefine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCPlatformDefine.h; sourceTree = "<group>"; };
|
||||
50ABBF551926664700A911A9 /* CCStdC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCStdC.h; sourceTree = "<group>"; };
|
||||
50DC5180187B817900A9C23F /* RELEASE_NOTES.md */ = {isa = PBXFileReference; lastKnownFileType = text; name = RELEASE_NOTES.md; path = ../docs/RELEASE_NOTES.md; sourceTree = "<group>"; };
|
||||
50E6D30C18DADB5D0051CA34 /* CCProtectedNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CCProtectedNode.cpp; sourceTree = "<group>"; };
|
||||
50E6D30D18DADB5D0051CA34 /* CCProtectedNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CCProtectedNode.h; sourceTree = "<group>"; };
|
||||
50E6D32E18E174130051CA34 /* UIHBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIHBox.cpp; sourceTree = "<group>"; };
|
||||
50E6D32F18E174130051CA34 /* UIHBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIHBox.h; sourceTree = "<group>"; };
|
||||
50E6D33018E174130051CA34 /* UIRelativeBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIRelativeBox.cpp; sourceTree = "<group>"; };
|
||||
|
@ -3270,6 +3356,8 @@
|
|||
1A570095180BC5B00088DEC7 /* base-nodes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
15EFA20F198A2BB5000C57D3 /* CCProtectedNode.cpp */,
|
||||
15EFA210198A2BB5000C57D3 /* CCProtectedNode.h */,
|
||||
1A57009C180BC5D20088DEC7 /* CCNode.cpp */,
|
||||
1A57009D180BC5D20088DEC7 /* CCNode.h */,
|
||||
1A570096180BC5C10088DEC7 /* CCAtlasNode.cpp */,
|
||||
|
@ -4196,12 +4284,12 @@
|
|||
29CB8F511929D64500C841D6 /* base */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2958244919873D8E00F9746D /* UIScale9Sprite.cpp */,
|
||||
2958244A19873D8E00F9746D /* UIScale9Sprite.h */,
|
||||
29080DEB191B82CE0066F8DF /* UIDeprecated.h */,
|
||||
29BDBA52195D597A003225C9 /* UIDeprecated.cpp */,
|
||||
2905FA1318CF08D100240AA3 /* UIWidget.cpp */,
|
||||
2905FA1418CF08D100240AA3 /* UIWidget.h */,
|
||||
50E6D30C18DADB5D0051CA34 /* CCProtectedNode.cpp */,
|
||||
50E6D30D18DADB5D0051CA34 /* CCProtectedNode.h */,
|
||||
2905F9F418CF08D000240AA3 /* UIHelper.cpp */,
|
||||
2905F9F518CF08D000240AA3 /* UIHelper.h */,
|
||||
2905F9EB18CF08D000240AA3 /* GUIDefine.h */,
|
||||
|
@ -5234,6 +5322,7 @@
|
|||
50ABBE431925AB6F00A911A9 /* CCDirector.h in Headers */,
|
||||
1A12775B18DFCC540005F345 /* CCTweenFunction.h in Headers */,
|
||||
1A5702CA180BCE370088DEC7 /* CCTextFieldTTF.h in Headers */,
|
||||
15EFA213198A2BB5000C57D3 /* CCProtectedNode.h in Headers */,
|
||||
1A5702EC180BCE750088DEC7 /* CCTileMapAtlas.h in Headers */,
|
||||
1A5702F0180BCE750088DEC7 /* CCTMXLayer.h in Headers */,
|
||||
50ABC01B1926664800A911A9 /* CCSAXParser.h in Headers */,
|
||||
|
@ -5589,6 +5678,7 @@
|
|||
5034CA2C191D591100CE6051 /* ccShader_PositionTextureA8Color.vert in Headers */,
|
||||
50ABBE981925AB6F00A911A9 /* CCProtocols.h in Headers */,
|
||||
50ABBD431925AB0000A911A9 /* CCMathBase.h in Headers */,
|
||||
15EFA214198A2BB5000C57D3 /* CCProtectedNode.h in Headers */,
|
||||
50ABBE441925AB6F00A911A9 /* CCDirector.h in Headers */,
|
||||
5034CA4A191D591100CE6051 /* ccShader_Label_df.frag in Headers */,
|
||||
1A570281180BCC900088DEC7 /* CCSprite.h in Headers */,
|
||||
|
@ -5850,9 +5940,9 @@
|
|||
B2DB47881976663A00411E16 /* UIRichText.h in Headers */,
|
||||
B2DB47801976660200411E16 /* UIButton.h in Headers */,
|
||||
B2DB47821976660C00411E16 /* UICheckBox.h in Headers */,
|
||||
B2DB4767197664EE00411E16 /* CCProtectedNode.h in Headers */,
|
||||
B2DB47861976662D00411E16 /* UILoadingBar.h in Headers */,
|
||||
B2DB47681976650A00411E16 /* UIWidget.h in Headers */,
|
||||
2958244D19873D8E00F9746D /* UIScale9Sprite.h in Headers */,
|
||||
B2DB47691976651E00411E16 /* UIHBox.h in Headers */,
|
||||
B2DB478F1976666100411E16 /* UIText.h in Headers */,
|
||||
B2DB47901976666100411E16 /* UITextAtlas.h in Headers */,
|
||||
|
@ -5891,12 +5981,12 @@
|
|||
B2C59A4119777EBC00B452DF /* UIVideoPlayer.h in Headers */,
|
||||
B2C59A4219777EC700B452DF /* UIDeprecated.h in Headers */,
|
||||
B2C59A4319777EC700B452DF /* UIWidget.h in Headers */,
|
||||
B2C59A4419777EC700B452DF /* CCProtectedNode.h in Headers */,
|
||||
B2C59A4519777EC700B452DF /* UIHelper.h in Headers */,
|
||||
B2C59A4619777EC700B452DF /* GUIDefine.h in Headers */,
|
||||
B2C59A4719777ECF00B452DF /* UIHBox.h in Headers */,
|
||||
B2C59A4819777ECF00B452DF /* UIRelativeBox.h in Headers */,
|
||||
B2C59A4919777ECF00B452DF /* UIVBox.h in Headers */,
|
||||
2958244E19873D8E00F9746D /* UIScale9Sprite.h in Headers */,
|
||||
B2C59A4A19777ECF00B452DF /* UILayout.h in Headers */,
|
||||
B2C59A4B19777ECF00B452DF /* UILayoutParameter.h in Headers */,
|
||||
B2C59A4C19777ECF00B452DF /* UILayoutManager.h in Headers */,
|
||||
|
@ -6606,6 +6696,7 @@
|
|||
50ABBDA71925AB4100A911A9 /* CCRenderCommand.cpp in Sources */,
|
||||
50ABBD501925AB0000A911A9 /* Quaternion.cpp in Sources */,
|
||||
50ABBEBB1925AB6F00A911A9 /* ccUtils.cpp in Sources */,
|
||||
15EFA211198A2BB5000C57D3 /* CCProtectedNode.cpp in Sources */,
|
||||
50ABBEB71925AB6F00A911A9 /* ccUTF8.cpp in Sources */,
|
||||
50ABBE271925AB6F00A911A9 /* CCAutoreleasePool.cpp in Sources */,
|
||||
50ABBE8B1925AB6F00A911A9 /* CCNS.cpp in Sources */,
|
||||
|
@ -7093,6 +7184,7 @@
|
|||
1A1645B3191B726C008C7C7F /* ConvertUTFWrapper.cpp in Sources */,
|
||||
1ABA68AF1888D700007D1BB4 /* CCFontCharMap.cpp in Sources */,
|
||||
50ABBE7A1925AB6F00A911A9 /* CCEventMouse.cpp in Sources */,
|
||||
15EFA212198A2BB5000C57D3 /* CCProtectedNode.cpp in Sources */,
|
||||
50ABBD981925AB4100A911A9 /* CCGLProgramStateCache.cpp in Sources */,
|
||||
B6B26344193884D60088FE25 /* CCAnimation3D.cpp in Sources */,
|
||||
B6ACD898193D6693005E0B8A /* CCMeshSkin.cpp in Sources */,
|
||||
|
@ -7236,7 +7328,6 @@
|
|||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2DB4763197661CD00411E16 /* CCProtectedNode.cpp in Sources */,
|
||||
B2DB4764197661D500411E16 /* UIWidget.cpp in Sources */,
|
||||
B2DB4765197661E400411E16 /* UIHBox.cpp in Sources */,
|
||||
B2DB4766197661EE00411E16 /* UILayout.cpp in Sources */,
|
||||
|
@ -7248,6 +7339,7 @@
|
|||
B2DB47711976657A00411E16 /* UIVBox.cpp in Sources */,
|
||||
B2DB47731976658E00411E16 /* CocosGUI.cpp in Sources */,
|
||||
B2DB4775197665A500411E16 /* UIDeprecated.cpp in Sources */,
|
||||
2958244B19873D8E00F9746D /* UIScale9Sprite.cpp in Sources */,
|
||||
B2DB47891976664200411E16 /* UISlider.cpp in Sources */,
|
||||
B2DB4779197665CD00411E16 /* UIListView.cpp in Sources */,
|
||||
B2DB47851976662B00411E16 /* UILoadingBar.cpp in Sources */,
|
||||
|
@ -7268,6 +7360,7 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2C59A1C19777E7500B452DF /* UIListView.cpp in Sources */,
|
||||
2958244C19873D8E00F9746D /* UIScale9Sprite.cpp in Sources */,
|
||||
B2C59A1D19777E7500B452DF /* UILoadingBar.cpp in Sources */,
|
||||
B2C59A1E19777E7500B452DF /* UIPageView.cpp in Sources */,
|
||||
B2C59A1F19777E7500B452DF /* UIRichText.cpp in Sources */,
|
||||
|
@ -7283,7 +7376,6 @@
|
|||
B2C59A2819777E7500B452DF /* UIImageView.cpp in Sources */,
|
||||
B2C59A2A19777E8300B452DF /* UIDeprecated.cpp in Sources */,
|
||||
B2C59A2B19777E8300B452DF /* UIWidget.cpp in Sources */,
|
||||
B2C59A2C19777E8300B452DF /* CCProtectedNode.cpp in Sources */,
|
||||
B2C59A2D19777E8300B452DF /* UIHelper.cpp in Sources */,
|
||||
B2C59A2E19777E8C00B452DF /* UIHBox.cpp in Sources */,
|
||||
B2C59A2F19777E8C00B452DF /* UIRelativeBox.cpp in Sources */,
|
||||
|
@ -7622,6 +7714,56 @@
|
|||
target = A07A4F9F178387730073F6A7 /* libcocosdenshion iOS */;
|
||||
targetProxy = A07A504C178389710073F6A7 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFEC198794EE002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B245F10019766132001920FD /* libui Mac */;
|
||||
targetProxy = B2F0AFEB198794EE002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFEE198794EE002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B2DB48161976716E00411E16 /* libcocostudio Mac */;
|
||||
targetProxy = B2F0AFED198794EE002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFF0198794EE002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B2DB479B197669A100411E16 /* libcocosbuilder Mac */;
|
||||
targetProxy = B2F0AFEF198794EE002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFF2198794EE002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B2DB48CA19767F1F00411E16 /* libspine Mac */;
|
||||
targetProxy = B2F0AFF1198794EE002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFF4198794EE002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B2DB498D197686CB00411E16 /* libnetwork Mac */;
|
||||
targetProxy = B2F0AFF3198794EE002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFF619879508002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B24EEA2C19775E92004493CC /* libui iOS */;
|
||||
targetProxy = B2F0AFF519879508002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFF819879508002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B24EEA6719775EBB004493CC /* libcocostudio iOS */;
|
||||
targetProxy = B2F0AFF719879508002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFFA19879508002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B24EEA6F19775ECE004493CC /* libcocosbuilder iOS */;
|
||||
targetProxy = B2F0AFF919879508002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFFC19879508002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B24EEA7719775EE1004493CC /* libspine iOS */;
|
||||
targetProxy = B2F0AFFB19879508002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
B2F0AFFE19879508002FE562 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = B24EEA7F19775EF3004493CC /* libnetwork iOS */;
|
||||
targetProxy = B2F0AFFD19879508002FE562 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
|
@ -7702,7 +7844,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_EXTENSION = a;
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
|
@ -7735,7 +7877,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_EXTENSION = a;
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
|
@ -7768,6 +7910,7 @@
|
|||
A03F2CB61780BD04006731B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
|
@ -7778,6 +7921,7 @@
|
|||
A03F2CB71780BD04006731B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
|
||||
|
@ -7789,6 +7933,7 @@
|
|||
A03F2D991780BDF7006731B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_WARN_BOOL_CONVERSION = NO;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = NO;
|
||||
EXECUTABLE_PREFIX = "";
|
||||
|
@ -7804,6 +7949,7 @@
|
|||
A03F2D9A1780BDF7006731B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_WARN_BOOL_CONVERSION = NO;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = NO;
|
||||
EXECUTABLE_PREFIX = "";
|
||||
|
@ -7820,6 +7966,7 @@
|
|||
A03F2E90178141C1006731B9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"COCOS2D_DEBUG=1",
|
||||
|
@ -7836,6 +7983,7 @@
|
|||
A03F2E91178141C1006731B9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
HEADER_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"/Applications/Xcode\\ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
|
||||
|
@ -7847,6 +7995,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = CC_TARGET_OS_MAC;
|
||||
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
|
||||
|
@ -7859,6 +8008,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = CC_TARGET_OS_MAC;
|
||||
|
@ -7872,6 +8022,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -7890,6 +8041,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
|
@ -8136,6 +8288,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -8154,6 +8307,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -8394,6 +8548,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -8412,6 +8567,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -8431,6 +8587,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -8449,6 +8606,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -8468,6 +8626,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -8486,6 +8645,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
@ -8505,6 +8665,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -8526,6 +8687,7 @@
|
|||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = YES;
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
EXECUTABLE_PREFIX = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
|
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E8E178141C1006731B9"
|
||||
BuildableName = "build all libs Mac"
|
||||
BlueprintName = "build all libs Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E8E178141C1006731B9"
|
||||
BuildableName = "build all libs Mac"
|
||||
BlueprintName = "build all libs Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E8E178141C1006731B9"
|
||||
BuildableName = "build all libs Mac"
|
||||
BlueprintName = "build all libs Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E0B178386390073F6A7"
|
||||
BuildableName = "build all libs iOS"
|
||||
BlueprintName = "build all libs iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E0B178386390073F6A7"
|
||||
BuildableName = "build all libs iOS"
|
||||
BlueprintName = "build all libs iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E0B178386390073F6A7"
|
||||
BuildableName = "build all libs iOS"
|
||||
BlueprintName = "build all libs iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2D5D1780BDF7006731B9"
|
||||
BuildableName = "libbox2d Mac.a"
|
||||
BlueprintName = "libbox2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2D5D1780BDF7006731B9"
|
||||
BuildableName = "libbox2d Mac.a"
|
||||
BlueprintName = "libbox2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2D5D1780BDF7006731B9"
|
||||
BuildableName = "libbox2d Mac.a"
|
||||
BlueprintName = "libbox2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F3C1783876B0073F6A7"
|
||||
BuildableName = "libbox2d iOS.a"
|
||||
BlueprintName = "libbox2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F3C1783876B0073F6A7"
|
||||
BuildableName = "libbox2d iOS.a"
|
||||
BlueprintName = "libbox2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F3C1783876B0073F6A7"
|
||||
BuildableName = "libbox2d iOS.a"
|
||||
BlueprintName = "libbox2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2B781780BD04006731B9"
|
||||
BuildableName = "libchipmunk Mac.a"
|
||||
BlueprintName = "libchipmunk Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2B781780BD04006731B9"
|
||||
BuildableName = "libchipmunk Mac.a"
|
||||
BlueprintName = "libchipmunk Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2B781780BD04006731B9"
|
||||
BuildableName = "libchipmunk Mac.a"
|
||||
BlueprintName = "libchipmunk Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4EFD178387670073F6A7"
|
||||
BuildableName = "libchipmunk iOS.a"
|
||||
BlueprintName = "libchipmunk iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4EFD178387670073F6A7"
|
||||
BuildableName = "libchipmunk iOS.a"
|
||||
BlueprintName = "libchipmunk iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4EFD178387670073F6A7"
|
||||
BuildableName = "libchipmunk iOS.a"
|
||||
BlueprintName = "libchipmunk iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1551A33E158F2AB200E66CFE"
|
||||
BuildableName = "libcocos2d Mac.a"
|
||||
BlueprintName = "libcocos2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1551A33E158F2AB200E66CFE"
|
||||
BuildableName = "libcocos2d Mac.a"
|
||||
BlueprintName = "libcocos2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1551A33E158F2AB200E66CFE"
|
||||
BuildableName = "libcocos2d Mac.a"
|
||||
BlueprintName = "libcocos2d Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4C241783777C0073F6A7"
|
||||
BuildableName = "libcocos2d iOS.a"
|
||||
BlueprintName = "libcocos2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4C241783777C0073F6A7"
|
||||
BuildableName = "libcocos2d iOS.a"
|
||||
BlueprintName = "libcocos2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4C241783777C0073F6A7"
|
||||
BuildableName = "libcocos2d iOS.a"
|
||||
BlueprintName = "libcocos2d iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB479B197669A100411E16"
|
||||
BuildableName = "libcocosbuilder Mac.a"
|
||||
BlueprintName = "libcocosbuilder Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB479B197669A100411E16"
|
||||
BuildableName = "libcocosbuilder Mac.a"
|
||||
BlueprintName = "libcocosbuilder Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB479B197669A100411E16"
|
||||
BuildableName = "libcocosbuilder Mac.a"
|
||||
BlueprintName = "libcocosbuilder Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6F19775ECE004493CC"
|
||||
BuildableName = "libcocosbuilder iOS.a"
|
||||
BlueprintName = "libcocosbuilder iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6F19775ECE004493CC"
|
||||
BuildableName = "libcocosbuilder iOS.a"
|
||||
BlueprintName = "libcocosbuilder iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6F19775ECE004493CC"
|
||||
BuildableName = "libcocosbuilder iOS.a"
|
||||
BlueprintName = "libcocosbuilder iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E9817814268006731B9"
|
||||
BuildableName = "libcocosdenshion Mac.a"
|
||||
BlueprintName = "libcocosdenshion Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E9817814268006731B9"
|
||||
BuildableName = "libcocosdenshion Mac.a"
|
||||
BlueprintName = "libcocosdenshion Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2E9817814268006731B9"
|
||||
BuildableName = "libcocosdenshion Mac.a"
|
||||
BlueprintName = "libcocosdenshion Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F9F178387730073F6A7"
|
||||
BuildableName = "libcocosdenshion iOS.a"
|
||||
BlueprintName = "libcocosdenshion iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F9F178387730073F6A7"
|
||||
BuildableName = "libcocosdenshion iOS.a"
|
||||
BlueprintName = "libcocosdenshion iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4F9F178387730073F6A7"
|
||||
BuildableName = "libcocosdenshion iOS.a"
|
||||
BlueprintName = "libcocosdenshion iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48161976716E00411E16"
|
||||
BuildableName = "libcocostudio Mac.a"
|
||||
BlueprintName = "libcocostudio Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48161976716E00411E16"
|
||||
BuildableName = "libcocostudio Mac.a"
|
||||
BlueprintName = "libcocostudio Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48161976716E00411E16"
|
||||
BuildableName = "libcocostudio Mac.a"
|
||||
BlueprintName = "libcocostudio Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6719775EBB004493CC"
|
||||
BuildableName = "libcocostudio iOS.a"
|
||||
BlueprintName = "libcocostudio iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6719775EBB004493CC"
|
||||
BuildableName = "libcocostudio iOS.a"
|
||||
BlueprintName = "libcocostudio iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA6719775EBB004493CC"
|
||||
BuildableName = "libcocostudio iOS.a"
|
||||
BlueprintName = "libcocostudio iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2FC117814595006731B9"
|
||||
BuildableName = "libextension Mac.a"
|
||||
BlueprintName = "libextension Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2FC117814595006731B9"
|
||||
BuildableName = "libextension Mac.a"
|
||||
BlueprintName = "libextension Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A03F2FC117814595006731B9"
|
||||
BuildableName = "libextension Mac.a"
|
||||
BlueprintName = "libextension Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E111783867C0073F6A7"
|
||||
BuildableName = "libextension iOS.a"
|
||||
BlueprintName = "libextension iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E111783867C0073F6A7"
|
||||
BuildableName = "libextension iOS.a"
|
||||
BlueprintName = "libextension iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "A07A4E111783867C0073F6A7"
|
||||
BuildableName = "libextension iOS.a"
|
||||
BlueprintName = "libextension iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB498D197686CB00411E16"
|
||||
BuildableName = "libnetwork Mac.a"
|
||||
BlueprintName = "libnetwork Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB498D197686CB00411E16"
|
||||
BuildableName = "libnetwork Mac.a"
|
||||
BlueprintName = "libnetwork Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB498D197686CB00411E16"
|
||||
BuildableName = "libnetwork Mac.a"
|
||||
BlueprintName = "libnetwork Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7F19775EF3004493CC"
|
||||
BuildableName = "libnetwork iOS.a"
|
||||
BlueprintName = "libnetwork iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7F19775EF3004493CC"
|
||||
BuildableName = "libnetwork iOS.a"
|
||||
BlueprintName = "libnetwork iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7F19775EF3004493CC"
|
||||
BuildableName = "libnetwork iOS.a"
|
||||
BlueprintName = "libnetwork iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48CA19767F1F00411E16"
|
||||
BuildableName = "libspine Mac.a"
|
||||
BlueprintName = "libspine Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48CA19767F1F00411E16"
|
||||
BuildableName = "libspine Mac.a"
|
||||
BlueprintName = "libspine Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B2DB48CA19767F1F00411E16"
|
||||
BuildableName = "libspine Mac.a"
|
||||
BlueprintName = "libspine Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7719775EE1004493CC"
|
||||
BuildableName = "libspine iOS.a"
|
||||
BlueprintName = "libspine iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7719775EE1004493CC"
|
||||
BuildableName = "libspine iOS.a"
|
||||
BlueprintName = "libspine iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA7719775EE1004493CC"
|
||||
BuildableName = "libspine iOS.a"
|
||||
BlueprintName = "libspine iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B245F10019766132001920FD"
|
||||
BuildableName = "libui Mac.a"
|
||||
BlueprintName = "libui Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B245F10019766132001920FD"
|
||||
BuildableName = "libui Mac.a"
|
||||
BlueprintName = "libui Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B245F10019766132001920FD"
|
||||
BuildableName = "libui Mac.a"
|
||||
BlueprintName = "libui Mac"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0600"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA2C19775E92004493CC"
|
||||
BuildableName = "libui iOS.a"
|
||||
BlueprintName = "libui iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA2C19775E92004493CC"
|
||||
BuildableName = "libui iOS.a"
|
||||
BlueprintName = "libui iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "B24EEA2C19775E92004493CC"
|
||||
BuildableName = "libui iOS.a"
|
||||
BlueprintName = "libui iOS"
|
||||
ReferencedContainer = "container:cocos2d_libs.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
|
@ -112,8 +112,8 @@
|
|||
15CBA9B8196EE8D9005877BB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 15CBA54C196EE671005877BB /* main.m */; };
|
||||
15CBA9B9196EE8D9005877BB /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 15CBA54E196EE671005877BB /* RootViewController.mm */; };
|
||||
15CBA9BB196EE910005877BB /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
15CBA9BD196EE910005877BB /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */; };
|
||||
15CBA9BE196EE910005877BB /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
|
||||
15CBA9BD196EE910005877BB /* libextension iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libextension iOS.a */; };
|
||||
15CBA9BE196EE910005877BB /* libcocosdenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */; };
|
||||
15CBA9BF196EE910005877BB /* libluabindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA28018CD90A50087CE3A /* libluabindings iOS.a */; };
|
||||
15CBA9CF196EE9FB005877BB /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CBA9C2196EE951005877BB /* AVFoundation.framework */; };
|
||||
15CBA9D0196EEA05005877BB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CBA9C4196EE962005877BB /* UIKit.framework */; };
|
||||
|
@ -126,7 +126,7 @@
|
|||
15CBA9DB196EEA90005877BB /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CBA9DA196EEA90005877BB /* CoreMotion.framework */; };
|
||||
15CBA9DD196EEAA6005877BB /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15CBA9DC196EEAA6005877BB /* libz.dylib */; };
|
||||
15CBA9DE196EEAF8005877BB /* GameController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E61773C1960FBD100DE83F5 /* GameController.framework */; };
|
||||
15CBA9DF196EEBB3005877BB /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
15CBA9DF196EEBB3005877BB /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
15CBA9E0196EEBD4005877BB /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EA0FB65191B933000B170C8 /* MediaPlayer.framework */; };
|
||||
15CBA9ED196F7BD8005877BB /* lua_cocos2dx_controller_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15CBA9EB196F7BD8005877BB /* lua_cocos2dx_controller_auto.cpp */; };
|
||||
15CBA9F0196F7BEC005877BB /* lua_cocos2dx_controller_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 15CBA9EE196F7BEC005877BB /* lua_cocos2dx_controller_manual.cpp */; };
|
||||
|
@ -135,8 +135,8 @@
|
|||
15E66FC8192D957100C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
||||
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
||||
1A0EE2A118CDF6DA004CD58F /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
|
||||
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
1A0EE2A418CDF6DA004CD58F /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
|
||||
1A0EE2A218CDF6DA004CD58F /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */; };
|
||||
1A0EE2A418CDF6DA004CD58F /* libcocosdenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */; };
|
||||
1A0EE2A518CDF6DA004CD58F /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EDCC747E17C455FD007B692C /* IOKit.framework */; };
|
||||
1A0EE2A618CDF6DA004CD58F /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9F808C177E98A600D9A1CB /* libcurl.dylib */; };
|
||||
1A0EE2A718CDF6DA004CD58F /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482E165F399D007D4F18 /* libz.dylib */; };
|
||||
|
@ -157,14 +157,14 @@
|
|||
1A0EE2D018CDF733004CD58F /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35618CD9A890087CE3A /* QuartzCore.framework */; };
|
||||
1A0EE2D118CDF733004CD58F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35418CD9A820087CE3A /* OpenGL.framework */; };
|
||||
1A0EE2D218CDF733004CD58F /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
|
||||
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
1A0EE2D418CDF733004CD58F /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
|
||||
1A0EE2D518CDF733004CD58F /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
|
||||
1A0EE2D318CDF733004CD58F /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */; };
|
||||
1A0EE2D418CDF733004CD58F /* libextension Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libextension Mac.a */; };
|
||||
1A0EE2D518CDF733004CD58F /* libcocosdenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */; };
|
||||
1A0EE2D618CDF733004CD58F /* libluabindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA27E18CD90A50087CE3A /* libluabindings Mac.a */; };
|
||||
1A0EE2D718CDF733004CD58F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64822165F391E007D4F18 /* Cocoa.framework */; };
|
||||
1A0EE40218CDF775004CD58F /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
1A0EE40318CDF775004CD58F /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
1A0EE40518CDF775004CD58F /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
|
||||
1A0EE40318CDF775004CD58F /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
1A0EE40518CDF775004CD58F /* libcocosdenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */; };
|
||||
1A0EE40618CDF775004CD58F /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; };
|
||||
1A0EE40718CDF775004CD58F /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482E165F399D007D4F18 /* libz.dylib */; };
|
||||
1A0EE40818CDF775004CD58F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; };
|
||||
|
@ -186,9 +186,9 @@
|
|||
1A0EE43418CDF799004CD58F /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA39C18CD9ED80087CE3A /* AVFoundation.framework */; };
|
||||
1A0EE43518CDF799004CD58F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; };
|
||||
1A0EE43618CDF799004CD58F /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
1A0EE43718CDF799004CD58F /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
1A0EE43818CDF799004CD58F /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */; };
|
||||
1A0EE43918CDF799004CD58F /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
|
||||
1A0EE43718CDF799004CD58F /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
1A0EE43818CDF799004CD58F /* libextension iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libextension iOS.a */; };
|
||||
1A0EE43918CDF799004CD58F /* libcocosdenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */; };
|
||||
1A0EE43A18CDF799004CD58F /* libluabindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA28018CD90A50087CE3A /* libluabindings iOS.a */; };
|
||||
1A0EE55C18CDFBBD004CD58F /* AudioEngine.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1ABCA36618CD9E180087CE3A /* AudioEngine.lua */; };
|
||||
1A0EE55D18CDFBBD004CD58F /* CCBReaderLoad.lua in Resources */ = {isa = PBXBuildFile; fileRef = 1ABCA36718CD9E180087CE3A /* CCBReaderLoad.lua */; };
|
||||
|
@ -233,25 +233,25 @@
|
|||
1A9F808D177E98A600D9A1CB /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A9F808C177E98A600D9A1CB /* libcurl.dylib */; };
|
||||
1AAF534B180E2F4E000584C8 /* libbox2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB61807A4F9005B8026 /* libbox2d Mac.a */; };
|
||||
1AAF534C180E2F4E000584C8 /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
|
||||
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
1AAF534E180E2F4E000584C8 /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
|
||||
1AAF534F180E2F4E000584C8 /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
|
||||
1AAF534D180E2F4E000584C8 /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */; };
|
||||
1AAF534E180E2F4E000584C8 /* libextension Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libextension Mac.a */; };
|
||||
1AAF534F180E2F4E000584C8 /* libcocosdenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */; };
|
||||
1AAF53FE180E39D4000584C8 /* libbox2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC41807A4F9005B8026 /* libbox2d iOS.a */; };
|
||||
1AAF53FF180E39D4000584C8 /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
1AAF5400180E39D4000584C8 /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
1AAF5401180E39D4000584C8 /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */; };
|
||||
1AAF5402180E39D4000584C8 /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
|
||||
1AAF5400180E39D4000584C8 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
1AAF5401180E39D4000584C8 /* libextension iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libextension iOS.a */; };
|
||||
1AAF5402180E39D4000584C8 /* libcocosdenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */; };
|
||||
1ABCA28718CD91510087CE3A /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64822165F391E007D4F18 /* Cocoa.framework */; };
|
||||
1ABCA2C218CD92420087CE3A /* libchipmunk Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */; };
|
||||
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
1ABCA2C418CD92420087CE3A /* libcocos2dx-extensions Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */; };
|
||||
1ABCA2C518CD92420087CE3A /* libCocosDenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */; };
|
||||
1ABCA2C318CD92420087CE3A /* libcocos2d Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */; };
|
||||
1ABCA2C418CD92420087CE3A /* libextension Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB21807A4F9005B8026 /* libextension Mac.a */; };
|
||||
1ABCA2C518CD92420087CE3A /* libcocosdenshion Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */; };
|
||||
1ABCA2C618CD92420087CE3A /* libluabindings Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA27E18CD90A50087CE3A /* libluabindings Mac.a */; };
|
||||
1ABCA2CE18CD93580087CE3A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; };
|
||||
1ABCA30118CD93940087CE3A /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
1ABCA30218CD93940087CE3A /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
1ABCA30318CD93940087CE3A /* libcocos2dx-extensions iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */; };
|
||||
1ABCA30418CD93940087CE3A /* libCocosDenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */; };
|
||||
1ABCA30218CD93940087CE3A /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
1ABCA30318CD93940087CE3A /* libextension iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC01807A4F9005B8026 /* libextension iOS.a */; };
|
||||
1ABCA30418CD93940087CE3A /* libcocosdenshion iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */; };
|
||||
1ABCA30518CD93940087CE3A /* libluabindings iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA28018CD90A50087CE3A /* libluabindings iOS.a */; };
|
||||
1ABCA35518CD9A820087CE3A /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35418CD9A820087CE3A /* OpenGL.framework */; };
|
||||
1ABCA35718CD9A890087CE3A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1ABCA35618CD9A890087CE3A /* QuartzCore.framework */; };
|
||||
|
@ -853,6 +853,8 @@
|
|||
29080DE6191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D8B191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.cpp */; };
|
||||
290E94B5196FC16900694919 /* CocostudioParserTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 290E94B3196FC16900694919 /* CocostudioParserTest.cpp */; };
|
||||
290E94B6196FC16900694919 /* CocostudioParserTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 290E94B3196FC16900694919 /* CocostudioParserTest.cpp */; };
|
||||
295824591987415900F9746D /* UIScale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 295824571987415900F9746D /* UIScale9SpriteTest.cpp */; };
|
||||
2958245A1987415900F9746D /* UIScale9SpriteTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 295824571987415900F9746D /* UIScale9SpriteTest.cpp */; };
|
||||
29FBBBFE196A9ECD00E65826 /* CocostudioParserJsonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */; };
|
||||
29FBBBFF196A9ECD00E65826 /* CocostudioParserJsonTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */; };
|
||||
38FA2E73194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 38FA2E71194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp */; };
|
||||
|
@ -860,7 +862,7 @@
|
|||
38FA2E76194AECF800FF2BE4 /* ActionTimeline in Resources */ = {isa = PBXBuildFile; fileRef = 38FA2E75194AECF800FF2BE4 /* ActionTimeline */; };
|
||||
38FA2E77194AECF800FF2BE4 /* ActionTimeline in Resources */ = {isa = PBXBuildFile; fileRef = 38FA2E75194AECF800FF2BE4 /* ActionTimeline */; };
|
||||
3E6177211960FAED00DE83F5 /* libchipmunk iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */; };
|
||||
3E6177221960FAED00DE83F5 /* libcocos2dx iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */; };
|
||||
3E6177221960FAED00DE83F5 /* libcocos2d iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */; };
|
||||
3E6177241960FAED00DE83F5 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D60AE43317F7FFE100757E4B /* CoreMotion.framework */; };
|
||||
3E6177251960FAED00DE83F5 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C6482E165F399D007D4F18 /* libz.dylib */; };
|
||||
3E6177261960FAED00DE83F5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 15C64832165F3AFD007D4F18 /* Foundation.framework */; };
|
||||
|
@ -914,47 +916,43 @@
|
|||
A07A52BF1783AF210073F6A7 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B91783AE900073F6A7 /* OpenGLES.framework */; };
|
||||
A07A52C01783AF250073F6A7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52B71783AE6D0073F6A7 /* UIKit.framework */; };
|
||||
A07A52C31783B02C0073F6A7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A07A52C11783B01F0073F6A7 /* AVFoundation.framework */; };
|
||||
B24024DB1978DE1000FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
B24024DD1978EC0700FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
B24024E31978ED5200FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
B24024E51978ED5F00FDE433 /* libcocos2dx Mac.dylib in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */; };
|
||||
B2411C9E19822FBD00E093E2 /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
|
||||
B2411CA119822FDD00E093E2 /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
|
||||
B2411CA419822FF100E093E2 /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
|
||||
B2411CA71982301400E093E2 /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
|
||||
B2411CAA1982302700E093E2 /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
|
||||
B244F3171976878E00ED1926 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
|
||||
B2411C9E19822FBD00E093E2 /* libcocostudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocostudio iOS.a */; };
|
||||
B2411CA119822FDD00E093E2 /* libcocosbuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosbuilder iOS.a */; };
|
||||
B2411CA419822FF100E093E2 /* libspine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libspine iOS.a */; };
|
||||
B2411CA71982301400E093E2 /* libui iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libui iOS.a */; };
|
||||
B2411CAA1982302700E093E2 /* libnetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libnetwork iOS.a */; };
|
||||
B244F3171976878E00ED1926 /* libnetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libnetwork Mac.a */; };
|
||||
B2507B6B192589AF00FA4972 /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; };
|
||||
B2507B6C192589AF00FA4972 /* Shaders3D in Resources */ = {isa = PBXBuildFile; fileRef = B2507B6A192589AF00FA4972 /* Shaders3D */; };
|
||||
B27AEE0719768950008BD575 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
|
||||
B27AEE0A1976896B008BD575 /* libcocosNetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libcocosNetwork Mac.a */; };
|
||||
B2C59AC8197782B900B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
|
||||
B2C59AC9197782B900B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
|
||||
B2C59ACA197782B900B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
|
||||
B2C59AD619779CEB00B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
|
||||
B2C59AD719779CEB00B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
|
||||
B2C59AD819779CEB00B452DF /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
|
||||
B2C59AD919779CEB00B452DF /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
|
||||
B2C59ADA19779CEB00B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
|
||||
B2C59AE519779D5D00B452DF /* libcocosBuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosBuilder iOS.a */; };
|
||||
B2C59AE619779D5D00B452DF /* libcocosGUI iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libcocosGUI iOS.a */; };
|
||||
B2C59AE719779D5D00B452DF /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
|
||||
B2C59AE819779D5D00B452DF /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
|
||||
B2C59AE919779D5D00B452DF /* libcocosStudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocosStudio iOS.a */; };
|
||||
B2CC5045197766F70041958E /* libcocosNetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libcocosNetwork iOS.a */; };
|
||||
B2CC507B19776D8B0041958E /* libcocosSpine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libcocosSpine iOS.a */; };
|
||||
B2DB479A197668D500411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
|
||||
B2DB480919766E4800411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
|
||||
B2DB480E197670F500411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
|
||||
B2DB480F197670F500411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
|
||||
B2DB48141976711A00411E16 /* libcocosBuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */; };
|
||||
B2DB48151976711A00411E16 /* libcocosGUI Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */; };
|
||||
B2DB48C319767D3D00411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
|
||||
B2DB48C619767DAC00411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
|
||||
B2DB48C919767EB700411E16 /* libcocosStudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */; };
|
||||
B2DB493A197681E500411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
|
||||
B2DB49401976826000411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
|
||||
B2DB49431976826E00411E16 /* libcocosSpine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libcocosSpine Mac.a */; };
|
||||
B27AEE0719768950008BD575 /* libnetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libnetwork Mac.a */; };
|
||||
B27AEE0A1976896B008BD575 /* libnetwork Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B244F3161976878700ED1926 /* libnetwork Mac.a */; };
|
||||
B2C59AC8197782B900B452DF /* libcocosbuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosbuilder iOS.a */; };
|
||||
B2C59AC9197782B900B452DF /* libui iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libui iOS.a */; };
|
||||
B2C59ACA197782B900B452DF /* libcocostudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocostudio iOS.a */; };
|
||||
B2C59AD619779CEB00B452DF /* libcocosbuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosbuilder iOS.a */; };
|
||||
B2C59AD719779CEB00B452DF /* libui iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libui iOS.a */; };
|
||||
B2C59AD819779CEB00B452DF /* libnetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libnetwork iOS.a */; };
|
||||
B2C59AD919779CEB00B452DF /* libspine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libspine iOS.a */; };
|
||||
B2C59ADA19779CEB00B452DF /* libcocostudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocostudio iOS.a */; };
|
||||
B2C59AE519779D5D00B452DF /* libcocosbuilder iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503D197763A20041958E /* libcocosbuilder iOS.a */; };
|
||||
B2C59AE619779D5D00B452DF /* libui iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5039197763A20041958E /* libui iOS.a */; };
|
||||
B2C59AE719779D5D00B452DF /* libnetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libnetwork iOS.a */; };
|
||||
B2C59AE819779D5D00B452DF /* libspine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libspine iOS.a */; };
|
||||
B2C59AE919779D5D00B452DF /* libcocostudio iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503B197763A20041958E /* libcocostudio iOS.a */; };
|
||||
B2CC5045197766F70041958E /* libnetwork iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC5041197763A20041958E /* libnetwork iOS.a */; };
|
||||
B2CC507B19776D8B0041958E /* libspine iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2CC503F197763A20041958E /* libspine iOS.a */; };
|
||||
B2DB479A197668D500411E16 /* libui Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libui Mac.a */; };
|
||||
B2DB480919766E4800411E16 /* libcocosbuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosbuilder Mac.a */; };
|
||||
B2DB480E197670F500411E16 /* libcocosbuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosbuilder Mac.a */; };
|
||||
B2DB480F197670F500411E16 /* libui Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libui Mac.a */; };
|
||||
B2DB48141976711A00411E16 /* libcocosbuilder Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB480819766E3C00411E16 /* libcocosbuilder Mac.a */; };
|
||||
B2DB48151976711A00411E16 /* libui Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB4799197668CA00411E16 /* libui Mac.a */; };
|
||||
B2DB48C319767D3D00411E16 /* libcocostudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocostudio Mac.a */; };
|
||||
B2DB48C619767DAC00411E16 /* libcocostudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocostudio Mac.a */; };
|
||||
B2DB48C919767EB700411E16 /* libcocostudio Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB48C219767D3600411E16 /* libcocostudio Mac.a */; };
|
||||
B2DB493A197681E500411E16 /* libspine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libspine Mac.a */; };
|
||||
B2DB49401976826000411E16 /* libspine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libspine Mac.a */; };
|
||||
B2DB49431976826E00411E16 /* libspine Mac.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DB49391976819900411E16 /* libspine Mac.a */; };
|
||||
C04F935A1941B05400E9FEAB /* TileMapTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C04F93581941B05400E9FEAB /* TileMapTest2.cpp */; };
|
||||
C04F935B1941B05400E9FEAB /* TileMapTest2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C04F93581941B05400E9FEAB /* TileMapTest2.cpp */; };
|
||||
C08689C118D370C90093E810 /* background.caf in Resources */ = {isa = PBXBuildFile; fileRef = C08689C018D370C90093E810 /* background.caf */; };
|
||||
|
@ -1724,49 +1722,6 @@
|
|||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
B24024D81978DE0800FDE433 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
B24024DB1978DE1000FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
B24024DC1978EBFE00FDE433 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 12;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
B24024DD1978EC0700FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
B24024E21978ED4B00FDE433 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
B24024E31978ED5200FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
B24024E41978ED5800FDE433 /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
B24024E51978ED5F00FDE433 /* libcocos2dx Mac.dylib in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1503FAA918DA8B6C00F6518C /* ftp.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ftp.lua; path = ../external/lua/luasocket/ftp.lua; sourceTree = "<group>"; };
|
||||
1503FAAA18DA8B6C00F6518C /* headers.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = headers.lua; path = ../external/lua/luasocket/headers.lua; sourceTree = "<group>"; };
|
||||
|
@ -3500,6 +3455,8 @@
|
|||
29080D8C191B595E0066F8DF /* UIWidgetAddNodeTest_Editor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIWidgetAddNodeTest_Editor.h; sourceTree = "<group>"; };
|
||||
290E94B3196FC16900694919 /* CocostudioParserTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CocostudioParserTest.cpp; path = ../CocostudioParserTest.cpp; sourceTree = "<group>"; };
|
||||
290E94B4196FC16900694919 /* CocostudioParserTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CocostudioParserTest.h; path = ../CocostudioParserTest.h; sourceTree = "<group>"; };
|
||||
295824571987415900F9746D /* UIScale9SpriteTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = UIScale9SpriteTest.cpp; sourceTree = "<group>"; };
|
||||
295824581987415900F9746D /* UIScale9SpriteTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIScale9SpriteTest.h; sourceTree = "<group>"; };
|
||||
29FBBBFC196A9ECD00E65826 /* CocostudioParserJsonTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CocostudioParserJsonTest.cpp; sourceTree = "<group>"; };
|
||||
29FBBBFD196A9ECD00E65826 /* CocostudioParserJsonTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocostudioParserJsonTest.h; sourceTree = "<group>"; };
|
||||
38FA2E71194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ActionTimelineTestScene.cpp; sourceTree = "<group>"; };
|
||||
|
@ -3569,11 +3526,11 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2411CAA1982302700E093E2 /* libcocosNetwork iOS.a in Frameworks */,
|
||||
B2411CA71982301400E093E2 /* libcocosGUI iOS.a in Frameworks */,
|
||||
B2411CA419822FF100E093E2 /* libcocosSpine iOS.a in Frameworks */,
|
||||
B2411CA119822FDD00E093E2 /* libcocosBuilder iOS.a in Frameworks */,
|
||||
B2411C9E19822FBD00E093E2 /* libcocosStudio iOS.a in Frameworks */,
|
||||
B2411CAA1982302700E093E2 /* libnetwork iOS.a in Frameworks */,
|
||||
B2411CA71982301400E093E2 /* libui iOS.a in Frameworks */,
|
||||
B2411CA419822FF100E093E2 /* libspine iOS.a in Frameworks */,
|
||||
B2411CA119822FDD00E093E2 /* libcocosbuilder iOS.a in Frameworks */,
|
||||
B2411C9E19822FBD00E093E2 /* libcocostudio iOS.a in Frameworks */,
|
||||
15CBA9E0196EEBD4005877BB /* MediaPlayer.framework in Frameworks */,
|
||||
15CBA9DE196EEAF8005877BB /* GameController.framework in Frameworks */,
|
||||
15CBA9DD196EEAA6005877BB /* libz.dylib in Frameworks */,
|
||||
|
@ -3587,9 +3544,9 @@
|
|||
15CBA9CF196EE9FB005877BB /* AVFoundation.framework in Frameworks */,
|
||||
15CBA9D1196EEA1D005877BB /* Foundation.framework in Frameworks */,
|
||||
15CBA9BB196EE910005877BB /* libchipmunk iOS.a in Frameworks */,
|
||||
15CBA9DF196EEBB3005877BB /* libcocos2dx iOS.a in Frameworks */,
|
||||
15CBA9BD196EE910005877BB /* libcocos2dx-extensions iOS.a in Frameworks */,
|
||||
15CBA9BE196EE910005877BB /* libCocosDenshion iOS.a in Frameworks */,
|
||||
15CBA9DF196EEBB3005877BB /* libcocos2d iOS.a in Frameworks */,
|
||||
15CBA9BD196EE910005877BB /* libextension iOS.a in Frameworks */,
|
||||
15CBA9BE196EE910005877BB /* libcocosdenshion iOS.a in Frameworks */,
|
||||
15CBA9BF196EE910005877BB /* libluabindings iOS.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -3599,8 +3556,8 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1A0EE2A118CDF6DA004CD58F /* libchipmunk Mac.a in Frameworks */,
|
||||
1A0EE2A218CDF6DA004CD58F /* libcocos2dx Mac.dylib in Frameworks */,
|
||||
1A0EE2A418CDF6DA004CD58F /* libCocosDenshion Mac.a in Frameworks */,
|
||||
1A0EE2A218CDF6DA004CD58F /* libcocos2d Mac.a in Frameworks */,
|
||||
1A0EE2A418CDF6DA004CD58F /* libcocosdenshion Mac.a in Frameworks */,
|
||||
1A0EE2A518CDF6DA004CD58F /* IOKit.framework in Frameworks */,
|
||||
1A0EE2A618CDF6DA004CD58F /* libcurl.dylib in Frameworks */,
|
||||
1A0EE2A718CDF6DA004CD58F /* libz.dylib in Frameworks */,
|
||||
|
@ -3618,11 +3575,11 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B27AEE0A1976896B008BD575 /* libcocosNetwork Mac.a in Frameworks */,
|
||||
B2DB49431976826E00411E16 /* libcocosSpine Mac.a in Frameworks */,
|
||||
B2DB48C919767EB700411E16 /* libcocosStudio Mac.a in Frameworks */,
|
||||
B2DB480E197670F500411E16 /* libcocosBuilder Mac.a in Frameworks */,
|
||||
B2DB480F197670F500411E16 /* libcocosGUI Mac.a in Frameworks */,
|
||||
B27AEE0A1976896B008BD575 /* libnetwork Mac.a in Frameworks */,
|
||||
B2DB49431976826E00411E16 /* libspine Mac.a in Frameworks */,
|
||||
B2DB48C919767EB700411E16 /* libcocostudio Mac.a in Frameworks */,
|
||||
B2DB480E197670F500411E16 /* libcocosbuilder Mac.a in Frameworks */,
|
||||
B2DB480F197670F500411E16 /* libui Mac.a in Frameworks */,
|
||||
1A0EE2C918CDF733004CD58F /* libcurl.dylib in Frameworks */,
|
||||
1A0EE2CA18CDF733004CD58F /* libz.dylib in Frameworks */,
|
||||
1A0EE2CB18CDF733004CD58F /* IOKit.framework in Frameworks */,
|
||||
|
@ -3633,9 +3590,9 @@
|
|||
1A0EE2D018CDF733004CD58F /* QuartzCore.framework in Frameworks */,
|
||||
1A0EE2D118CDF733004CD58F /* OpenGL.framework in Frameworks */,
|
||||
1A0EE2D218CDF733004CD58F /* libchipmunk Mac.a in Frameworks */,
|
||||
1A0EE2D318CDF733004CD58F /* libcocos2dx Mac.dylib in Frameworks */,
|
||||
1A0EE2D418CDF733004CD58F /* libcocos2dx-extensions Mac.a in Frameworks */,
|
||||
1A0EE2D518CDF733004CD58F /* libCocosDenshion Mac.a in Frameworks */,
|
||||
1A0EE2D318CDF733004CD58F /* libcocos2d Mac.a in Frameworks */,
|
||||
1A0EE2D418CDF733004CD58F /* libextension Mac.a in Frameworks */,
|
||||
1A0EE2D518CDF733004CD58F /* libcocosdenshion Mac.a in Frameworks */,
|
||||
1A0EE2D618CDF733004CD58F /* libluabindings Mac.a in Frameworks */,
|
||||
1A0EE2D718CDF733004CD58F /* Cocoa.framework in Frameworks */,
|
||||
);
|
||||
|
@ -3646,8 +3603,8 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1A0EE40218CDF775004CD58F /* libchipmunk iOS.a in Frameworks */,
|
||||
1A0EE40318CDF775004CD58F /* libcocos2dx iOS.a in Frameworks */,
|
||||
1A0EE40518CDF775004CD58F /* libCocosDenshion iOS.a in Frameworks */,
|
||||
1A0EE40318CDF775004CD58F /* libcocos2d iOS.a in Frameworks */,
|
||||
1A0EE40518CDF775004CD58F /* libcocosdenshion iOS.a in Frameworks */,
|
||||
1A0EE40618CDF775004CD58F /* CoreMotion.framework in Frameworks */,
|
||||
1A0EE40718CDF775004CD58F /* libz.dylib in Frameworks */,
|
||||
1A0EE40818CDF775004CD58F /* Foundation.framework in Frameworks */,
|
||||
|
@ -3665,11 +3622,11 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2C59AD619779CEB00B452DF /* libcocosBuilder iOS.a in Frameworks */,
|
||||
B2C59AD719779CEB00B452DF /* libcocosGUI iOS.a in Frameworks */,
|
||||
B2C59AD819779CEB00B452DF /* libcocosNetwork iOS.a in Frameworks */,
|
||||
B2C59AD919779CEB00B452DF /* libcocosSpine iOS.a in Frameworks */,
|
||||
B2C59ADA19779CEB00B452DF /* libcocosStudio iOS.a in Frameworks */,
|
||||
B2C59AD619779CEB00B452DF /* libcocosbuilder iOS.a in Frameworks */,
|
||||
B2C59AD719779CEB00B452DF /* libui iOS.a in Frameworks */,
|
||||
B2C59AD819779CEB00B452DF /* libnetwork iOS.a in Frameworks */,
|
||||
B2C59AD919779CEB00B452DF /* libspine iOS.a in Frameworks */,
|
||||
B2C59ADA19779CEB00B452DF /* libcocostudio iOS.a in Frameworks */,
|
||||
15AECE25195D467D00907DB0 /* MediaPlayer.framework in Frameworks */,
|
||||
1A0EE42C18CDF799004CD58F /* libz.dylib in Frameworks */,
|
||||
1A0EE42D18CDF799004CD58F /* CoreMotion.framework in Frameworks */,
|
||||
|
@ -3682,9 +3639,9 @@
|
|||
1A0EE43418CDF799004CD58F /* AVFoundation.framework in Frameworks */,
|
||||
1A0EE43518CDF799004CD58F /* Foundation.framework in Frameworks */,
|
||||
1A0EE43618CDF799004CD58F /* libchipmunk iOS.a in Frameworks */,
|
||||
1A0EE43718CDF799004CD58F /* libcocos2dx iOS.a in Frameworks */,
|
||||
1A0EE43818CDF799004CD58F /* libcocos2dx-extensions iOS.a in Frameworks */,
|
||||
1A0EE43918CDF799004CD58F /* libCocosDenshion iOS.a in Frameworks */,
|
||||
1A0EE43718CDF799004CD58F /* libcocos2d iOS.a in Frameworks */,
|
||||
1A0EE43818CDF799004CD58F /* libextension iOS.a in Frameworks */,
|
||||
1A0EE43918CDF799004CD58F /* libcocosdenshion iOS.a in Frameworks */,
|
||||
1A0EE43A18CDF799004CD58F /* libluabindings iOS.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -3693,11 +3650,11 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B27AEE0719768950008BD575 /* libcocosNetwork Mac.a in Frameworks */,
|
||||
B2DB49401976826000411E16 /* libcocosSpine Mac.a in Frameworks */,
|
||||
B2DB48C319767D3D00411E16 /* libcocosStudio Mac.a in Frameworks */,
|
||||
B2DB48141976711A00411E16 /* libcocosBuilder Mac.a in Frameworks */,
|
||||
B2DB48151976711A00411E16 /* libcocosGUI Mac.a in Frameworks */,
|
||||
B27AEE0719768950008BD575 /* libnetwork Mac.a in Frameworks */,
|
||||
B2DB49401976826000411E16 /* libspine Mac.a in Frameworks */,
|
||||
B2DB48C319767D3D00411E16 /* libcocostudio Mac.a in Frameworks */,
|
||||
B2DB48141976711A00411E16 /* libcocosbuilder Mac.a in Frameworks */,
|
||||
B2DB48151976711A00411E16 /* libui Mac.a in Frameworks */,
|
||||
1ABCA36218CD9AC60087CE3A /* libcurl.dylib in Frameworks */,
|
||||
1ABCA36118CD9AC00087CE3A /* libz.dylib in Frameworks */,
|
||||
1ABCA35F18CD9AAE0087CE3A /* IOKit.framework in Frameworks */,
|
||||
|
@ -3708,9 +3665,9 @@
|
|||
1ABCA35718CD9A890087CE3A /* QuartzCore.framework in Frameworks */,
|
||||
1ABCA35518CD9A820087CE3A /* OpenGL.framework in Frameworks */,
|
||||
1ABCA2C218CD92420087CE3A /* libchipmunk Mac.a in Frameworks */,
|
||||
1ABCA2C318CD92420087CE3A /* libcocos2dx Mac.dylib in Frameworks */,
|
||||
1ABCA2C418CD92420087CE3A /* libcocos2dx-extensions Mac.a in Frameworks */,
|
||||
1ABCA2C518CD92420087CE3A /* libCocosDenshion Mac.a in Frameworks */,
|
||||
1ABCA2C318CD92420087CE3A /* libcocos2d Mac.a in Frameworks */,
|
||||
1ABCA2C418CD92420087CE3A /* libextension Mac.a in Frameworks */,
|
||||
1ABCA2C518CD92420087CE3A /* libcocosdenshion Mac.a in Frameworks */,
|
||||
1ABCA2C618CD92420087CE3A /* libluabindings Mac.a in Frameworks */,
|
||||
1ABCA28718CD91510087CE3A /* Cocoa.framework in Frameworks */,
|
||||
);
|
||||
|
@ -3720,11 +3677,11 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2C59AE519779D5D00B452DF /* libcocosBuilder iOS.a in Frameworks */,
|
||||
B2C59AE619779D5D00B452DF /* libcocosGUI iOS.a in Frameworks */,
|
||||
B2C59AE719779D5D00B452DF /* libcocosNetwork iOS.a in Frameworks */,
|
||||
B2C59AE819779D5D00B452DF /* libcocosSpine iOS.a in Frameworks */,
|
||||
B2C59AE919779D5D00B452DF /* libcocosStudio iOS.a in Frameworks */,
|
||||
B2C59AE519779D5D00B452DF /* libcocosbuilder iOS.a in Frameworks */,
|
||||
B2C59AE619779D5D00B452DF /* libui iOS.a in Frameworks */,
|
||||
B2C59AE719779D5D00B452DF /* libnetwork iOS.a in Frameworks */,
|
||||
B2C59AE819779D5D00B452DF /* libspine iOS.a in Frameworks */,
|
||||
B2C59AE919779D5D00B452DF /* libcocostudio iOS.a in Frameworks */,
|
||||
15AECE0B195C0F8A00907DB0 /* MediaPlayer.framework in Frameworks */,
|
||||
1ABCA3B018CDA06D0087CE3A /* libz.dylib in Frameworks */,
|
||||
1ABCA3AA18CD9F1A0087CE3A /* CoreMotion.framework in Frameworks */,
|
||||
|
@ -3737,9 +3694,9 @@
|
|||
1ABCA39D18CD9ED80087CE3A /* AVFoundation.framework in Frameworks */,
|
||||
1ABCA2CE18CD93580087CE3A /* Foundation.framework in Frameworks */,
|
||||
1ABCA30118CD93940087CE3A /* libchipmunk iOS.a in Frameworks */,
|
||||
1ABCA30218CD93940087CE3A /* libcocos2dx iOS.a in Frameworks */,
|
||||
1ABCA30318CD93940087CE3A /* libcocos2dx-extensions iOS.a in Frameworks */,
|
||||
1ABCA30418CD93940087CE3A /* libCocosDenshion iOS.a in Frameworks */,
|
||||
1ABCA30218CD93940087CE3A /* libcocos2d iOS.a in Frameworks */,
|
||||
1ABCA30318CD93940087CE3A /* libextension iOS.a in Frameworks */,
|
||||
1ABCA30418CD93940087CE3A /* libcocosdenshion iOS.a in Frameworks */,
|
||||
1ABCA30518CD93940087CE3A /* libluabindings iOS.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -3748,16 +3705,16 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B244F3171976878E00ED1926 /* libcocosNetwork Mac.a in Frameworks */,
|
||||
B2DB493A197681E500411E16 /* libcocosSpine Mac.a in Frameworks */,
|
||||
B2DB48C619767DAC00411E16 /* libcocosStudio Mac.a in Frameworks */,
|
||||
B2DB480919766E4800411E16 /* libcocosBuilder Mac.a in Frameworks */,
|
||||
B2DB479A197668D500411E16 /* libcocosGUI Mac.a in Frameworks */,
|
||||
B244F3171976878E00ED1926 /* libnetwork Mac.a in Frameworks */,
|
||||
B2DB493A197681E500411E16 /* libspine Mac.a in Frameworks */,
|
||||
B2DB48C619767DAC00411E16 /* libcocostudio Mac.a in Frameworks */,
|
||||
B2DB480919766E4800411E16 /* libcocosbuilder Mac.a in Frameworks */,
|
||||
B2DB479A197668D500411E16 /* libui Mac.a in Frameworks */,
|
||||
1AAF534B180E2F4E000584C8 /* libbox2d Mac.a in Frameworks */,
|
||||
1AAF534C180E2F4E000584C8 /* libchipmunk Mac.a in Frameworks */,
|
||||
1AAF534D180E2F4E000584C8 /* libcocos2dx Mac.dylib in Frameworks */,
|
||||
1AAF534E180E2F4E000584C8 /* libcocos2dx-extensions Mac.a in Frameworks */,
|
||||
1AAF534F180E2F4E000584C8 /* libCocosDenshion Mac.a in Frameworks */,
|
||||
1AAF534D180E2F4E000584C8 /* libcocos2d Mac.a in Frameworks */,
|
||||
1AAF534E180E2F4E000584C8 /* libextension Mac.a in Frameworks */,
|
||||
1AAF534F180E2F4E000584C8 /* libcocosdenshion Mac.a in Frameworks */,
|
||||
EDCC747F17C455FD007B692C /* IOKit.framework in Frameworks */,
|
||||
1A9F808D177E98A600D9A1CB /* libcurl.dylib in Frameworks */,
|
||||
15C6482F165F399D007D4F18 /* libz.dylib in Frameworks */,
|
||||
|
@ -3777,7 +3734,7 @@
|
|||
files = (
|
||||
3E61773D1960FBD200DE83F5 /* GameController.framework in Frameworks */,
|
||||
3E6177211960FAED00DE83F5 /* libchipmunk iOS.a in Frameworks */,
|
||||
3E6177221960FAED00DE83F5 /* libcocos2dx iOS.a in Frameworks */,
|
||||
3E6177221960FAED00DE83F5 /* libcocos2d iOS.a in Frameworks */,
|
||||
3E6177241960FAED00DE83F5 /* CoreMotion.framework in Frameworks */,
|
||||
3E6177251960FAED00DE83F5 /* libz.dylib in Frameworks */,
|
||||
3E6177261960FAED00DE83F5 /* Foundation.framework in Frameworks */,
|
||||
|
@ -3795,17 +3752,17 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B2C59AC8197782B900B452DF /* libcocosBuilder iOS.a in Frameworks */,
|
||||
B2C59AC9197782B900B452DF /* libcocosGUI iOS.a in Frameworks */,
|
||||
B2C59ACA197782B900B452DF /* libcocosStudio iOS.a in Frameworks */,
|
||||
B2CC507B19776D8B0041958E /* libcocosSpine iOS.a in Frameworks */,
|
||||
B2CC5045197766F70041958E /* libcocosNetwork iOS.a in Frameworks */,
|
||||
B2C59AC8197782B900B452DF /* libcocosbuilder iOS.a in Frameworks */,
|
||||
B2C59AC9197782B900B452DF /* libui iOS.a in Frameworks */,
|
||||
B2C59ACA197782B900B452DF /* libcocostudio iOS.a in Frameworks */,
|
||||
B2CC507B19776D8B0041958E /* libspine iOS.a in Frameworks */,
|
||||
B2CC5045197766F70041958E /* libnetwork iOS.a in Frameworks */,
|
||||
3EA0FB66191B933000B170C8 /* MediaPlayer.framework in Frameworks */,
|
||||
1AAF53FE180E39D4000584C8 /* libbox2d iOS.a in Frameworks */,
|
||||
1AAF53FF180E39D4000584C8 /* libchipmunk iOS.a in Frameworks */,
|
||||
1AAF5400180E39D4000584C8 /* libcocos2dx iOS.a in Frameworks */,
|
||||
1AAF5401180E39D4000584C8 /* libcocos2dx-extensions iOS.a in Frameworks */,
|
||||
1AAF5402180E39D4000584C8 /* libCocosDenshion iOS.a in Frameworks */,
|
||||
1AAF5400180E39D4000584C8 /* libcocos2d iOS.a in Frameworks */,
|
||||
1AAF5401180E39D4000584C8 /* libextension iOS.a in Frameworks */,
|
||||
1AAF5402180E39D4000584C8 /* libcocosdenshion iOS.a in Frameworks */,
|
||||
D60AE43417F7FFE100757E4B /* CoreMotion.framework in Frameworks */,
|
||||
A07A521E1783A1D20073F6A7 /* libz.dylib in Frameworks */,
|
||||
A07A521F1783A1D20073F6A7 /* Foundation.framework in Frameworks */,
|
||||
|
@ -7639,6 +7596,8 @@
|
|||
29FBBC00196A9F0D00E65826 /* UIAndEditorTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
295824571987415900F9746D /* UIScale9SpriteTest.cpp */,
|
||||
295824581987415900F9746D /* UIScale9SpriteTest.h */,
|
||||
29080D1F191B595E0066F8DF /* CocosGUIScene.cpp */,
|
||||
29080D20191B595E0066F8DF /* CocosGUIScene.h */,
|
||||
29080D37191B595E0066F8DF /* GUIEditorTest.cpp */,
|
||||
|
@ -7763,26 +7722,26 @@
|
|||
46A15F9D1807A4F8005B8026 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */,
|
||||
46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */,
|
||||
B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */,
|
||||
B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */,
|
||||
B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */,
|
||||
B2DB49391976819900411E16 /* libcocosSpine Mac.a */,
|
||||
B244F3161976878700ED1926 /* libcocosNetwork Mac.a */,
|
||||
46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */,
|
||||
46A15FB21807A4F9005B8026 /* libextension Mac.a */,
|
||||
B2DB4799197668CA00411E16 /* libui Mac.a */,
|
||||
B2DB48C219767D3600411E16 /* libcocostudio Mac.a */,
|
||||
B2DB480819766E3C00411E16 /* libcocosbuilder Mac.a */,
|
||||
B2DB49391976819900411E16 /* libspine Mac.a */,
|
||||
B244F3161976878700ED1926 /* libnetwork Mac.a */,
|
||||
46A15FB41807A4F9005B8026 /* libchipmunk Mac.a */,
|
||||
46A15FB61807A4F9005B8026 /* libbox2d Mac.a */,
|
||||
46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */,
|
||||
46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */,
|
||||
46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */,
|
||||
46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */,
|
||||
46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */,
|
||||
46A15FC01807A4F9005B8026 /* libextension iOS.a */,
|
||||
46A15FC21807A4F9005B8026 /* libchipmunk iOS.a */,
|
||||
46A15FC41807A4F9005B8026 /* libbox2d iOS.a */,
|
||||
46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */,
|
||||
B2CC5039197763A20041958E /* libcocosGUI iOS.a */,
|
||||
B2CC503B197763A20041958E /* libcocosStudio iOS.a */,
|
||||
B2CC503D197763A20041958E /* libcocosBuilder iOS.a */,
|
||||
B2CC503F197763A20041958E /* libcocosSpine iOS.a */,
|
||||
B2CC5041197763A20041958E /* libcocosNetwork iOS.a */,
|
||||
46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */,
|
||||
B2CC5039197763A20041958E /* libui iOS.a */,
|
||||
B2CC503B197763A20041958E /* libcocostudio iOS.a */,
|
||||
B2CC503D197763A20041958E /* libcocosbuilder iOS.a */,
|
||||
B2CC503F197763A20041958E /* libspine iOS.a */,
|
||||
B2CC5041197763A20041958E /* libnetwork iOS.a */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
|
@ -7824,7 +7783,6 @@
|
|||
1A0EE1D118CDF6DA004CD58F /* Resources */,
|
||||
1A0EE1F618CDF6DA004CD58F /* Sources */,
|
||||
1A0EE29F18CDF6DA004CD58F /* Frameworks */,
|
||||
B24024D81978DE0800FDE433 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -7845,7 +7803,6 @@
|
|||
1A0EE2C318CDF733004CD58F /* Sources */,
|
||||
1A0EE2C818CDF733004CD58F /* Frameworks */,
|
||||
1A0EE2D818CDF733004CD58F /* Resources */,
|
||||
B24024E21978ED4B00FDE433 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -7920,7 +7877,6 @@
|
|||
1ABCA28218CD91510087CE3A /* Sources */,
|
||||
1ABCA28318CD91510087CE3A /* Frameworks */,
|
||||
1ABCA28418CD91510087CE3A /* Resources */,
|
||||
B24024E41978ED5800FDE433 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -7975,7 +7931,6 @@
|
|||
1D60588D0D05DD3D006BFB54 /* Resources */,
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */,
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */,
|
||||
B24024DC1978EBFE00FDE433 /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -8107,17 +8062,17 @@
|
|||
remoteRef = 1ABCA27F18CD90A50087CE3A /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FB01807A4F9005B8026 /* libcocos2dx Mac.dylib */ = {
|
||||
46A15FB01807A4F9005B8026 /* libcocos2d Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocos2dx Mac.dylib";
|
||||
path = "libcocos2d Mac.a";
|
||||
remoteRef = 46A15FAF1807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FB21807A4F9005B8026 /* libcocos2dx-extensions Mac.a */ = {
|
||||
46A15FB21807A4F9005B8026 /* libextension Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocos2dx-extensions Mac.a";
|
||||
path = "libextension Mac.a";
|
||||
remoteRef = 46A15FB11807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
|
@ -8135,24 +8090,24 @@
|
|||
remoteRef = 46A15FB51807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FB81807A4F9005B8026 /* libCocosDenshion Mac.a */ = {
|
||||
46A15FB81807A4F9005B8026 /* libcocosdenshion Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libCocosDenshion Mac.a";
|
||||
path = "libcocosdenshion Mac.a";
|
||||
remoteRef = 46A15FB71807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FBE1807A4F9005B8026 /* libcocos2dx iOS.a */ = {
|
||||
46A15FBE1807A4F9005B8026 /* libcocos2d iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocos2dx iOS.a";
|
||||
path = "libcocos2d iOS.a";
|
||||
remoteRef = 46A15FBD1807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FC01807A4F9005B8026 /* libcocos2dx-extensions iOS.a */ = {
|
||||
46A15FC01807A4F9005B8026 /* libextension iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocos2dx-extensions iOS.a";
|
||||
path = "libextension iOS.a";
|
||||
remoteRef = 46A15FBF1807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
|
@ -8170,80 +8125,80 @@
|
|||
remoteRef = 46A15FC31807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
46A15FC61807A4F9005B8026 /* libCocosDenshion iOS.a */ = {
|
||||
46A15FC61807A4F9005B8026 /* libcocosdenshion iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libCocosDenshion iOS.a";
|
||||
path = "libcocosdenshion iOS.a";
|
||||
remoteRef = 46A15FC51807A4F9005B8026 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B244F3161976878700ED1926 /* libcocosNetwork Mac.a */ = {
|
||||
B244F3161976878700ED1926 /* libnetwork Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosNetwork Mac.a";
|
||||
path = "libnetwork Mac.a";
|
||||
remoteRef = B244F3151976878700ED1926 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2CC5039197763A20041958E /* libcocosGUI iOS.a */ = {
|
||||
B2CC5039197763A20041958E /* libui iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosGUI iOS.a";
|
||||
path = "libui iOS.a";
|
||||
remoteRef = B2CC5038197763A20041958E /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2CC503B197763A20041958E /* libcocosStudio iOS.a */ = {
|
||||
B2CC503B197763A20041958E /* libcocostudio iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosStudio iOS.a";
|
||||
path = "libcocostudio iOS.a";
|
||||
remoteRef = B2CC503A197763A20041958E /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2CC503D197763A20041958E /* libcocosBuilder iOS.a */ = {
|
||||
B2CC503D197763A20041958E /* libcocosbuilder iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosBuilder iOS.a";
|
||||
path = "libcocosbuilder iOS.a";
|
||||
remoteRef = B2CC503C197763A20041958E /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2CC503F197763A20041958E /* libcocosSpine iOS.a */ = {
|
||||
B2CC503F197763A20041958E /* libspine iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosSpine iOS.a";
|
||||
path = "libspine iOS.a";
|
||||
remoteRef = B2CC503E197763A20041958E /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2CC5041197763A20041958E /* libcocosNetwork iOS.a */ = {
|
||||
B2CC5041197763A20041958E /* libnetwork iOS.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosNetwork iOS.a";
|
||||
path = "libnetwork iOS.a";
|
||||
remoteRef = B2CC5040197763A20041958E /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2DB4799197668CA00411E16 /* libcocosGUI Mac.a */ = {
|
||||
B2DB4799197668CA00411E16 /* libui Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosGUI Mac.a";
|
||||
path = "libui Mac.a";
|
||||
remoteRef = B2DB4798197668CA00411E16 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2DB480819766E3C00411E16 /* libcocosBuilder Mac.a */ = {
|
||||
B2DB480819766E3C00411E16 /* libcocosbuilder Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosBuilder Mac.a";
|
||||
path = "libcocosbuilder Mac.a";
|
||||
remoteRef = B2DB480719766E3C00411E16 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2DB48C219767D3600411E16 /* libcocosStudio Mac.a */ = {
|
||||
B2DB48C219767D3600411E16 /* libcocostudio Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosStudio Mac.a";
|
||||
path = "libcocostudio Mac.a";
|
||||
remoteRef = B2DB48C119767D3600411E16 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
B2DB49391976819900411E16 /* libcocosSpine Mac.a */ = {
|
||||
B2DB49391976819900411E16 /* libspine Mac.a */ = {
|
||||
isa = PBXReferenceProxy;
|
||||
fileType = archive.ar;
|
||||
path = "libcocosSpine Mac.a";
|
||||
path = "libspine Mac.a";
|
||||
remoteRef = B2DB49381976819900411E16 /* PBXContainerItemProxy */;
|
||||
sourceTree = BUILT_PRODUCTS_DIR;
|
||||
};
|
||||
|
@ -8880,6 +8835,7 @@
|
|||
1AC35B8118CECF0C00F37B72 /* SceneController.cpp in Sources */,
|
||||
1AC35B3318CECF0C00F37B72 /* Test.cpp in Sources */,
|
||||
1AC35C2318CECF0C00F37B72 /* ParticleTest.cpp in Sources */,
|
||||
295824591987415900F9746D /* UIScale9SpriteTest.cpp in Sources */,
|
||||
1AC35C6118CECF0C00F37B72 /* TouchesTest.cpp in Sources */,
|
||||
1AC35C6318CECF0C00F37B72 /* TransitionsTest.cpp in Sources */,
|
||||
29080DB3191B595E0066F8DF /* UILayoutTest_Editor.cpp in Sources */,
|
||||
|
@ -8962,6 +8918,7 @@
|
|||
1AC35BFA18CECF0C00F37B72 /* WebSocketTest.cpp in Sources */,
|
||||
1AC35BF218CECF0C00F37B72 /* EditBoxTest.cpp in Sources */,
|
||||
38FA2E74194AEBE100FF2BE4 /* ActionTimelineTestScene.cpp in Sources */,
|
||||
2958245A1987415900F9746D /* UIScale9SpriteTest.cpp in Sources */,
|
||||
1AC35B3A18CECF0C00F37B72 /* Bug-1174.cpp in Sources */,
|
||||
1AC35BE418CECF0C00F37B72 /* CCControlColourPickerTest.cpp in Sources */,
|
||||
29080DD4191B595E0066F8DF /* UITextAtlasTest.cpp in Sources */,
|
||||
|
@ -9689,7 +9646,7 @@
|
|||
1A0EE2B018CDF6DA004CD58F /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -9704,7 +9661,7 @@
|
|||
1A0EE2B118CDF6DA004CD58F /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
|
@ -9720,7 +9677,7 @@
|
|||
1A0EE31218CDF733004CD58F /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
@ -9740,7 +9697,7 @@
|
|||
1A0EE31318CDF733004CD58F /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
@ -9827,7 +9784,7 @@
|
|||
1ABCA2B318CD91520087CE3A /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
@ -9847,7 +9804,7 @@
|
|||
1ABCA2B418CD91520087CE3A /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
@ -9901,7 +9858,7 @@
|
|||
1D6058940D05DD3E006BFB54 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
@ -9915,7 +9872,7 @@
|
|||
1D6058950D05DD3E006BFB54 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"$(inherited)",
|
||||
CC_TARGET_OS_MAC,
|
||||
|
|
|
@ -31,11 +31,10 @@
|
|||
|
||||
|
||||
#include "2d/CCNode.h"
|
||||
#include "ui/GUIExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
class CC_GUI_DLL ProtectedNode : public Node
|
||||
class CC_DLL ProtectedNode : public Node
|
||||
{
|
||||
public:
|
||||
static ProtectedNode * create(void);
|
|
@ -58,6 +58,7 @@ set(COCOS_2D_SRC
|
|||
2d/CCParticleSystem.cpp
|
||||
2d/CCParticleSystemQuad.cpp
|
||||
2d/CCProgressTimer.cpp
|
||||
2d/CCProtectedNode.cpp
|
||||
2d/CCRenderTexture.cpp
|
||||
2d/CCScene.cpp
|
||||
2d/CCSpriteBatchNode.cpp
|
||||
|
|
|
@ -103,6 +103,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\websockets\prebuilt\win32\*.*" "$(OutDi
|
|||
xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\zlib\prebuilt\*.*" "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\icon\prebuilt\*.*" "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(OutDir)"
|
||||
xcopy /Y /Q "$(ProjectDir)..\..\external\sqlite3\libraries\win32\*.*" "$(OutDir)"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
|
@ -338,6 +339,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
|
|||
<ClCompile Include="CCParticleSystem.cpp" />
|
||||
<ClCompile Include="CCParticleSystemQuad.cpp" />
|
||||
<ClCompile Include="CCProgressTimer.cpp" />
|
||||
<ClCompile Include="CCProtectedNode.cpp" />
|
||||
<ClCompile Include="CCRenderTexture.cpp" />
|
||||
<ClCompile Include="CCScene.cpp" />
|
||||
<ClCompile Include="CCSprite.cpp" />
|
||||
|
@ -545,6 +547,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\gles\prebuilt\*.*" "$(Ou
|
|||
<ClInclude Include="CCParticleSystem.h" />
|
||||
<ClInclude Include="CCParticleSystemQuad.h" />
|
||||
<ClInclude Include="CCProgressTimer.h" />
|
||||
<ClInclude Include="CCProtectedNode.h" />
|
||||
<ClInclude Include="CCRenderTexture.h" />
|
||||
<ClInclude Include="CCScene.h" />
|
||||
<ClInclude Include="CCSprite.h" />
|
||||
|
|
|
@ -595,6 +595,9 @@
|
|||
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp">
|
||||
<Filter>storage</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="CCProtectedNode.cpp">
|
||||
<Filter>2d</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
||||
|
@ -1210,6 +1213,9 @@
|
|||
<ClInclude Include="..\storage\local-storage\LocalStorage.h">
|
||||
<Filter>storage</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="CCProtectedNode.h">
|
||||
<Filter>2d</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\math\Mat4.inl">
|
||||
|
|
|
@ -55,6 +55,7 @@ cocos2d.cpp \
|
|||
2d/CCParticleSystem.cpp \
|
||||
2d/CCParticleSystemQuad.cpp \
|
||||
2d/CCProgressTimer.cpp \
|
||||
2d/CCProtectedNode.cpp \
|
||||
2d/CCRenderTexture.cpp \
|
||||
2d/CCScene.cpp \
|
||||
2d/CCSprite.cpp \
|
||||
|
|
|
@ -268,9 +268,6 @@ THE SOFTWARE.
|
|||
#include "3d/CCAnimation3D.h"
|
||||
#include "3d/CCSprite3DMaterial.h"
|
||||
|
||||
// Audio
|
||||
#include "audio/include/SimpleAudioEngine.h"
|
||||
|
||||
// Deprecated include
|
||||
#include "deprecated/CCDictionary.h"
|
||||
#include "deprecated/CCArray.h"
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)extensions;$(EngineRoot)cocos\audio\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
|
|
|
@ -222,7 +222,7 @@
|
|||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;_USRSTUDIODLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USRSTUDIODLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;$(EngineRoot)external\win32-specific\zlib\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
-- @module Helper
|
||||
-- @parent_module ccui
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Helper] getSubStringOfUTF8String
|
||||
-- @param self
|
||||
-- @param #string str
|
||||
-- @param #unsigned long long
|
||||
-- @param #unsigned long long
|
||||
-- @return string#string ret (return value: string)
|
||||
|
||||
--------------------------------
|
||||
-- @function [parent=#Helper] seekWidgetByTag
|
||||
-- @param self
|
||||
|
|
|
@ -15722,6 +15722,43 @@ int lua_register_cocos2dx_ui_PageView(lua_State* tolua_S)
|
|||
return 1;
|
||||
}
|
||||
|
||||
int lua_cocos2dx_ui_Helper_getSubStringOfUTF8String(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
bool ok = true;
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_Error tolua_err;
|
||||
#endif
|
||||
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
if (!tolua_isusertable(tolua_S,1,"ccui.Helper",0,&tolua_err)) goto tolua_lerror;
|
||||
#endif
|
||||
|
||||
argc = lua_gettop(tolua_S) - 1;
|
||||
|
||||
if (argc == 3)
|
||||
{
|
||||
std::string arg0;
|
||||
unsigned long arg1;
|
||||
unsigned long arg2;
|
||||
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccui.Helper:getSubStringOfUTF8String");
|
||||
ok &= luaval_to_ulong(tolua_S, 3, &arg1, "ccui.Helper:getSubStringOfUTF8String");
|
||||
ok &= luaval_to_ulong(tolua_S, 4, &arg2, "ccui.Helper:getSubStringOfUTF8String");
|
||||
if(!ok)
|
||||
return 0;
|
||||
std::string ret = cocos2d::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2);
|
||||
tolua_pushcppstring(tolua_S,ret);
|
||||
return 1;
|
||||
}
|
||||
CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Helper:getSubStringOfUTF8String",argc, 3);
|
||||
return 0;
|
||||
#if COCOS2D_DEBUG >= 1
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ui_Helper_getSubStringOfUTF8String'.",&tolua_err);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
int lua_cocos2dx_ui_Helper_seekWidgetByTag(lua_State* tolua_S)
|
||||
{
|
||||
int argc = 0;
|
||||
|
@ -15839,6 +15876,7 @@ int lua_register_cocos2dx_ui_Helper(lua_State* tolua_S)
|
|||
tolua_cclass(tolua_S,"Helper","ccui.Helper","",nullptr);
|
||||
|
||||
tolua_beginmodule(tolua_S,"Helper");
|
||||
tolua_function(tolua_S,"getSubStringOfUTF8String", lua_cocos2dx_ui_Helper_getSubStringOfUTF8String);
|
||||
tolua_function(tolua_S,"seekWidgetByTag", lua_cocos2dx_ui_Helper_seekWidgetByTag);
|
||||
tolua_function(tolua_S,"seekActionWidgetByActionTag", lua_cocos2dx_ui_Helper_seekActionWidgetByActionTag);
|
||||
tolua_function(tolua_S,"seekWidgetByName", lua_cocos2dx_ui_Helper_seekWidgetByName);
|
||||
|
|
|
@ -397,6 +397,7 @@ int register_all_cocos2dx_ui(lua_State* tolua_S);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __cocos2dx_ui_h__
|
||||
|
|
|
@ -47,6 +47,7 @@ cocos2d::log(__VA_ARGS__); \
|
|||
|
||||
extern bool luaval_is_usertype(lua_State* L,int lo,const char* type, int def);
|
||||
// to native
|
||||
extern bool luaval_to_ulong(lua_State* L,int lo, unsigned long* outValue, const char* funcName="");
|
||||
extern bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_int32(lua_State* L,int lo,int* outValue, const char* funcName = "");
|
||||
extern bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue, const char* funcName = "");
|
||||
|
|
|
@ -1,103 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\LocalStorage.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\LocalStorage.h" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{632A8F38-D0F0-4D22-86B3-D69F5E6BF63A}</ProjectGuid>
|
||||
<RootNamespace>libLocalStorage</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0'">v120</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '10.0'">v100</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0'">v110</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '11.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v110_xp</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0'">v120</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '12.0' and exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A')">v120_xp</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\2d\cocos2d_headers.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\2d\cocos2d_headers.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir>$(Configuration).win32\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir>$(Configuration).win32\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot)external\sqlite3\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MinSpace</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot)external\sqlite3\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{0310200c-b520-4f77-85f6-46f568b10f4d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{69cfa37c-4b20-409e-ad74-a26314878d8a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\LocalStorage.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\LocalStorage.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
|
@ -25,12 +25,12 @@ UILoadingBar.cpp \
|
|||
UISlider.cpp \
|
||||
UITextField.cpp \
|
||||
UIRichText.cpp \
|
||||
CCProtectedNode.cpp \
|
||||
UIHBox.cpp \
|
||||
UIVBox.cpp \
|
||||
UIRelativeBox.cpp \
|
||||
UIVideoPlayerAndroid.cpp \
|
||||
UIDeprecated.cpp \
|
||||
UIScale9Sprite.cpp \
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/.. \
|
||||
$(LOCAL_PATH)/../editor-support
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
set(COCOS_UI_SRC
|
||||
ui/CCProtectedNode.cpp
|
||||
ui/CocosGUI.cpp
|
||||
ui/UIButton.cpp
|
||||
ui/UICheckBox.cpp
|
||||
|
@ -23,5 +22,6 @@ set(COCOS_UI_SRC
|
|||
ui/UIVBox.cpp
|
||||
ui/UIWidget.cpp
|
||||
ui/UIDeprecated.cpp
|
||||
ui/UIScale9Sprite.cpp
|
||||
)
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ THE SOFTWARE.
|
|||
#endif
|
||||
#include "ui/UIDeprecated.h"
|
||||
#include "ui/GUIExport.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
|
|
@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "ui/UIButton.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
#include "2d/CCLabel.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "2d/CCActionInterval.h"
|
||||
|
@ -135,9 +135,13 @@ bool Button::init()
|
|||
|
||||
void Button::initRenderer()
|
||||
{
|
||||
_buttonNormalRenderer = Sprite::create();
|
||||
_buttonClickedRenderer = Sprite::create();
|
||||
_buttonDisableRenderer = Sprite::create();
|
||||
_buttonNormalRenderer = Scale9Sprite::create();
|
||||
_buttonClickedRenderer = Scale9Sprite::create();
|
||||
_buttonDisableRenderer = Scale9Sprite::create();
|
||||
_buttonClickedRenderer->setScale9Enabled(false);
|
||||
_buttonNormalRenderer->setScale9Enabled(false);
|
||||
_buttonDisableRenderer->setScale9Enabled(false);
|
||||
|
||||
_titleRenderer = Label::create();
|
||||
_titleRenderer->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
|
||||
|
||||
|
@ -153,33 +157,13 @@ void Button::setScale9Enabled(bool able)
|
|||
{
|
||||
return;
|
||||
}
|
||||
_brightStyle = BrightStyle::NONE;
|
||||
|
||||
_scale9Enabled = able;
|
||||
removeProtectedChild(_buttonNormalRenderer);
|
||||
removeProtectedChild(_buttonClickedRenderer);
|
||||
removeProtectedChild(_buttonDisableRenderer);
|
||||
_buttonNormalRenderer = nullptr;
|
||||
_buttonClickedRenderer = nullptr;
|
||||
_buttonDisableRenderer = nullptr;
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_buttonNormalRenderer = extension::Scale9Sprite::create();
|
||||
_buttonClickedRenderer = extension::Scale9Sprite::create();
|
||||
_buttonDisableRenderer = extension::Scale9Sprite::create();
|
||||
}
|
||||
else
|
||||
{
|
||||
_buttonNormalRenderer = Sprite::create();
|
||||
_buttonClickedRenderer = Sprite::create();
|
||||
_buttonDisableRenderer = Sprite::create();
|
||||
}
|
||||
|
||||
loadTextureNormal(_normalFileName, _normalTexType);
|
||||
loadTexturePressed(_clickedFileName, _pressedTexType);
|
||||
loadTextureDisabled(_disabledFileName, _disabledTexType);
|
||||
addProtectedChild(_buttonNormalRenderer, NORMAL_RENDERER_Z, -1);
|
||||
addProtectedChild(_buttonClickedRenderer, PRESSED_RENDERER_Z, -1);
|
||||
addProtectedChild(_buttonDisableRenderer, DISABLED_RENDERER_Z, -1);
|
||||
|
||||
_buttonNormalRenderer->setScale9Enabled(_scale9Enabled);
|
||||
_buttonClickedRenderer->setScale9Enabled(_scale9Enabled);
|
||||
_buttonDisableRenderer->setScale9Enabled(_scale9Enabled);
|
||||
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
bool ignoreBefore = _ignoreSize;
|
||||
|
@ -190,9 +174,12 @@ void Button::setScale9Enabled(bool able)
|
|||
{
|
||||
ignoreContentAdaptWithSize(_prevIgnoreSize);
|
||||
}
|
||||
|
||||
setCapInsetsNormalRenderer(_capInsetsNormal);
|
||||
setCapInsetsPressedRenderer(_capInsetsPressed);
|
||||
setCapInsetsDisabledRenderer(_capInsetsDisabled);
|
||||
|
||||
_brightStyle = BrightStyle::NONE;
|
||||
setBright(_bright);
|
||||
}
|
||||
|
||||
|
@ -228,37 +215,19 @@ void Button::loadTextureNormal(const std::string& normal,TextureResType texType)
|
|||
}
|
||||
_normalFileName = normal;
|
||||
_normalTexType = texType;
|
||||
if (_scale9Enabled)
|
||||
|
||||
switch (_normalTexType)
|
||||
{
|
||||
extension::Scale9Sprite* normalRendererScale9 = static_cast<extension::Scale9Sprite*>(_buttonNormalRenderer);
|
||||
switch (_normalTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
normalRendererScale9->initWithFile(normal);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
normalRendererScale9->initWithSpriteFrameName(normal);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
normalRendererScale9->setCapInsets(_capInsetsNormal);
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* normalRenderer = static_cast<Sprite*>(_buttonNormalRenderer);
|
||||
switch (_normalTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
normalRenderer->setTexture(normal);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
normalRenderer->setSpriteFrame(normal);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case TextureResType::LOCAL:
|
||||
_buttonNormalRenderer->initWithFile(normal);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
_buttonNormalRenderer->initWithSpriteFrameName(normal);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_normalTextureSize = _buttonNormalRenderer->getContentSize();
|
||||
updateFlippedX();
|
||||
updateFlippedY();
|
||||
|
@ -276,38 +245,21 @@ void Button::loadTexturePressed(const std::string& selected,TextureResType texTy
|
|||
}
|
||||
_clickedFileName = selected;
|
||||
_pressedTexType = texType;
|
||||
if (_scale9Enabled)
|
||||
|
||||
switch (_pressedTexType)
|
||||
{
|
||||
extension::Scale9Sprite* clickedRendererScale9 = static_cast<extension::Scale9Sprite*>(_buttonClickedRenderer);
|
||||
switch (_pressedTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
clickedRendererScale9->initWithFile(selected);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
clickedRendererScale9->initWithSpriteFrameName(selected);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
clickedRendererScale9->setCapInsets(_capInsetsPressed);
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* clickedRenderer = static_cast<Sprite*>(_buttonClickedRenderer);
|
||||
switch (_pressedTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
clickedRenderer->setTexture(selected);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
clickedRenderer->setSpriteFrame(selected);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case TextureResType::LOCAL:
|
||||
_buttonClickedRenderer->initWithFile(selected);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
_buttonClickedRenderer->initWithSpriteFrameName(selected);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_pressedTextureSize = _buttonClickedRenderer->getContentSize();
|
||||
//TODO: mark as dirty
|
||||
updateFlippedX();
|
||||
updateFlippedY();
|
||||
|
||||
|
@ -323,37 +275,19 @@ void Button::loadTextureDisabled(const std::string& disabled,TextureResType texT
|
|||
}
|
||||
_disabledFileName = disabled;
|
||||
_disabledTexType = texType;
|
||||
if (_scale9Enabled)
|
||||
|
||||
switch (_disabledTexType)
|
||||
{
|
||||
extension::Scale9Sprite* disabledScale9 = static_cast<extension::Scale9Sprite*>(_buttonDisableRenderer);
|
||||
switch (_disabledTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
disabledScale9->initWithFile(disabled);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
disabledScale9->initWithSpriteFrameName(disabled);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
disabledScale9->setCapInsets(_capInsetsDisabled);
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* disabledRenderer = static_cast<Sprite*>(_buttonDisableRenderer);
|
||||
switch (_disabledTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
disabledRenderer->setTexture(disabled);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
disabledRenderer->setSpriteFrame(disabled);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
case TextureResType::LOCAL:
|
||||
_buttonDisableRenderer->initWithFile(disabled);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
_buttonDisableRenderer->initWithSpriteFrameName(disabled);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_disabledTextureSize = _buttonDisableRenderer->getContentSize();
|
||||
updateFlippedX();
|
||||
updateFlippedY();
|
||||
|
@ -376,7 +310,7 @@ void Button::setCapInsetsNormalRenderer(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_buttonNormalRenderer)->setCapInsets(capInsets);
|
||||
_buttonNormalRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& Button::getCapInsetsNormalRenderer()const
|
||||
|
@ -391,7 +325,7 @@ void Button::setCapInsetsPressedRenderer(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_buttonClickedRenderer)->setCapInsets(capInsets);
|
||||
_buttonClickedRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& Button::getCapInsetsPressedRenderer()const
|
||||
|
@ -406,7 +340,7 @@ void Button::setCapInsetsDisabledRenderer(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_buttonDisableRenderer)->setCapInsets(capInsets);
|
||||
_buttonDisableRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& Button::getCapInsetsDisabledRenderer()const
|
||||
|
@ -432,28 +366,10 @@ void Button::onPressStateChangedToNormal()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
updateTexturesRGBA();
|
||||
}
|
||||
else
|
||||
{
|
||||
_buttonNormalRenderer->stopAllActions();
|
||||
_buttonNormalRenderer->setScale(_normalTextureScaleXInSize, _normalTextureScaleYInSize);
|
||||
}
|
||||
_buttonNormalRenderer->stopAllActions();
|
||||
_buttonNormalRenderer->setScale(_normalTextureScaleXInSize, _normalTextureScaleYInSize);
|
||||
}
|
||||
}
|
||||
|
||||
void Button::updateTexturesRGBA()
|
||||
{
|
||||
_buttonNormalRenderer->setColor(this->getColor());
|
||||
_buttonClickedRenderer->setColor(this->getColor());
|
||||
_buttonDisableRenderer->setColor(this->getColor());
|
||||
|
||||
_buttonNormalRenderer->setOpacity(this->getOpacity());
|
||||
_buttonClickedRenderer->setOpacity(this->getOpacity());
|
||||
_buttonDisableRenderer->setOpacity(this->getOpacity());
|
||||
}
|
||||
|
||||
void Button::onPressStateChangedToPressed()
|
||||
{
|
||||
|
@ -462,6 +378,7 @@ void Button::onPressStateChangedToPressed()
|
|||
_buttonNormalRenderer->setVisible(false);
|
||||
_buttonClickedRenderer->setVisible(true);
|
||||
_buttonDisableRenderer->setVisible(false);
|
||||
|
||||
if (_pressedActionEnabled)
|
||||
{
|
||||
_buttonNormalRenderer->stopAllActions();
|
||||
|
@ -501,36 +418,19 @@ void Button::updateFlippedX()
|
|||
{
|
||||
float flip = _flippedX ? -1.0f : 1.0f;
|
||||
_titleRenderer->setScaleX(flip);
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_buttonNormalRenderer->setScaleX(flip);
|
||||
_buttonClickedRenderer->setScaleX(flip);
|
||||
_buttonDisableRenderer->setScaleX(flip);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_buttonNormalRenderer)->setFlippedX(_flippedX);
|
||||
static_cast<Sprite*>(_buttonClickedRenderer)->setFlippedX(_flippedX);
|
||||
static_cast<Sprite*>(_buttonDisableRenderer)->setFlippedX(_flippedX);
|
||||
}
|
||||
|
||||
_buttonNormalRenderer->setFlippedX(_flippedX);
|
||||
_buttonClickedRenderer->setFlippedX(_flippedX);
|
||||
_buttonDisableRenderer->setFlippedX(_flippedX);
|
||||
}
|
||||
|
||||
void Button::updateFlippedY()
|
||||
{
|
||||
float flip = _flippedY ? -1.0f : 1.0f;
|
||||
_titleRenderer->setScaleY(flip);
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_buttonNormalRenderer->setScaleY(flip);
|
||||
_buttonClickedRenderer->setScaleY(flip);
|
||||
_buttonDisableRenderer->setScaleY(flip);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_buttonNormalRenderer)->setFlippedY(_flippedY);
|
||||
static_cast<Sprite*>(_buttonClickedRenderer)->setFlippedY(_flippedY);
|
||||
static_cast<Sprite*>(_buttonDisableRenderer)->setFlippedY(_flippedY);
|
||||
}
|
||||
_buttonNormalRenderer->setFlippedY(_flippedY);
|
||||
_buttonClickedRenderer->setFlippedY(_flippedY);
|
||||
_buttonDisableRenderer->setFlippedY(_flippedY);
|
||||
}
|
||||
|
||||
void Button::updateTitleLocation()
|
||||
|
@ -605,8 +505,9 @@ void Button::normalTextureScaleChangedWithSize()
|
|||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_buttonNormalRenderer)->setPreferredSize(_contentSize);
|
||||
_buttonNormalRenderer->setPreferredSize(_contentSize);
|
||||
_normalTextureScaleXInSize = _normalTextureScaleYInSize = 1.0f;
|
||||
_buttonNormalRenderer->setScale(_normalTextureScaleXInSize,_normalTextureScaleYInSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -641,8 +542,9 @@ void Button::pressedTextureScaleChangedWithSize()
|
|||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_buttonClickedRenderer)->setPreferredSize(_contentSize);
|
||||
_buttonClickedRenderer->setPreferredSize(_contentSize);
|
||||
_pressedTextureScaleXInSize = _pressedTextureScaleYInSize = 1.0f;
|
||||
_buttonClickedRenderer->setScale(_pressedTextureScaleXInSize,_pressedTextureScaleYInSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -676,7 +578,8 @@ void Button::disabledTextureScaleChangedWithSize()
|
|||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_buttonDisableRenderer)->setPreferredSize(_contentSize);
|
||||
_buttonDisableRenderer->setScale(1.0);
|
||||
_buttonDisableRenderer->setPreferredSize(_contentSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -33,7 +33,8 @@ NS_CC_BEGIN
|
|||
class Label;
|
||||
|
||||
namespace ui{
|
||||
|
||||
|
||||
class Scale9Sprite;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -205,9 +206,7 @@ protected:
|
|||
|
||||
virtual void updateFlippedX() override;
|
||||
virtual void updateFlippedY() override;
|
||||
|
||||
void updateTexturesRGBA();
|
||||
|
||||
|
||||
void normalTextureScaleChangedWithSize();
|
||||
void pressedTextureScaleChangedWithSize();
|
||||
void disabledTextureScaleChangedWithSize();
|
||||
|
@ -219,10 +218,11 @@ protected:
|
|||
virtual void copySpecialProperties(Widget* model) override;
|
||||
|
||||
protected:
|
||||
Node* _buttonNormalRenderer;
|
||||
Node* _buttonClickedRenderer;
|
||||
Node* _buttonDisableRenderer;
|
||||
Scale9Sprite* _buttonNormalRenderer;
|
||||
Scale9Sprite* _buttonClickedRenderer;
|
||||
Scale9Sprite* _buttonDisableRenderer;
|
||||
Label* _titleRenderer;
|
||||
|
||||
std::string _normalFileName;
|
||||
std::string _clickedFileName;
|
||||
std::string _disabledFileName;
|
||||
|
|
|
@ -108,6 +108,43 @@ Widget* Helper::seekActionWidgetByActionTag(Widget* root, int tag)
|
|||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string Helper::getSubStringOfUTF8String(const std::string& str, std::string::size_type start, std::string::size_type length)
|
||||
{
|
||||
if (length==0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
std::string::size_type c, i, ix, q, min=std::string::npos, max=std::string::npos;
|
||||
for (q=0, i=0, ix=str.length(); i < ix; i++, q++)
|
||||
{
|
||||
if (q==start)
|
||||
{
|
||||
min = i;
|
||||
}
|
||||
if (q <= start+length || length==std::string::npos)
|
||||
{
|
||||
max = i;
|
||||
}
|
||||
|
||||
c = (unsigned char) str[i];
|
||||
|
||||
if (c<=127) i+=0;
|
||||
else if ((c & 0xE0) == 0xC0) i+=1;
|
||||
else if ((c & 0xF0) == 0xE0) i+=2;
|
||||
else if ((c & 0xF8) == 0xF0) i+=3;
|
||||
else return "";//invalid utf8
|
||||
}
|
||||
if (q <= start+length || length == std::string::npos)
|
||||
{
|
||||
max = i;
|
||||
}
|
||||
if (min==std::string::npos || max==std::string::npos)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return str.substr(min,max);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,18 @@ public:
|
|||
|
||||
/*temp action*/
|
||||
static Widget* seekActionWidgetByActionTag(Widget* root, int tag);
|
||||
|
||||
/**
|
||||
* @brief Get a UTF8 substring from a std::string with a given start position and length
|
||||
* Sample: std::string str = "中国中国中国”; substr = getSubStringOfUTF8String(str,0,2) will = "中国"
|
||||
* @param start The start position of the substring.
|
||||
* @param length The length of the substring in UTF8 count
|
||||
* @return a UTF8 substring
|
||||
*/
|
||||
static std::string getSubStringOfUTF8String(const std::string& str,
|
||||
std::string::size_type start,
|
||||
std::string::size_type length);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -23,16 +23,12 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "ui/UIImageView.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
#include "2d/CCSprite.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
namespace ui {
|
||||
|
||||
|
||||
#define STATIC_CAST_CCSPRITE static_cast<Sprite*>(_imageRenderer)
|
||||
#define STATIC_CAST_SCALE9SPRITE static_cast<extension::Scale9Sprite*>(_imageRenderer)
|
||||
|
||||
static const int IMAGE_RENDERER_Z = (-1);
|
||||
|
||||
|
@ -108,7 +104,9 @@ bool ImageView::init(const std::string &imageFileName, TextureResType texType)
|
|||
|
||||
void ImageView::initRenderer()
|
||||
{
|
||||
_imageRenderer = Sprite::create();
|
||||
_imageRenderer = Scale9Sprite::create();
|
||||
_imageRenderer->setScale9Enabled(false);
|
||||
|
||||
addProtectedChild(_imageRenderer, IMAGE_RENDERER_Z, -1);
|
||||
}
|
||||
|
||||
|
@ -123,34 +121,15 @@ void ImageView::loadTexture(const std::string& fileName, TextureResType texType)
|
|||
switch (_imageTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
extension::Scale9Sprite* imageRendererScale9 = STATIC_CAST_SCALE9SPRITE;
|
||||
imageRendererScale9->initWithFile(fileName);
|
||||
imageRendererScale9->setCapInsets(_capInsets);
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* imageRenderer = STATIC_CAST_CCSPRITE;
|
||||
imageRenderer->setTexture(fileName);
|
||||
}
|
||||
_imageRenderer->initWithFile(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
extension::Scale9Sprite* imageRendererScale9 = STATIC_CAST_SCALE9SPRITE;
|
||||
imageRendererScale9->initWithSpriteFrameName(fileName);
|
||||
imageRendererScale9->setCapInsets(_capInsets);
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* imageRenderer = STATIC_CAST_CCSPRITE;
|
||||
imageRenderer->setSpriteFrame(fileName);
|
||||
}
|
||||
_imageRenderer->initWithSpriteFrameName(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_imageTextureSize = _imageRenderer->getContentSize();
|
||||
updateFlippedX();
|
||||
updateFlippedY();
|
||||
|
@ -161,39 +140,32 @@ void ImageView::loadTexture(const std::string& fileName, TextureResType texType)
|
|||
|
||||
void ImageView::setTextureRect(const Rect &rect)
|
||||
{
|
||||
//This API should be refactor
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
STATIC_CAST_CCSPRITE->setTextureRect(rect);
|
||||
auto sprite = _imageRenderer->getSprite();
|
||||
if (sprite)
|
||||
{
|
||||
sprite->setTextureRect(rect);
|
||||
}
|
||||
else
|
||||
{
|
||||
CCLOG("Warning!! you should load texture before set the texture's rect!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ImageView::updateFlippedX()
|
||||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
int flip = _flippedX ? -1 : 1;
|
||||
STATIC_CAST_SCALE9SPRITE->setScaleX(flip);
|
||||
}
|
||||
else
|
||||
{
|
||||
STATIC_CAST_CCSPRITE->setFlippedX(_flippedX);
|
||||
}
|
||||
_imageRenderer->setFlippedX(_flippedX);
|
||||
}
|
||||
|
||||
void ImageView::updateFlippedY()
|
||||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
int flip = _flippedY ? -1 : 1;
|
||||
STATIC_CAST_SCALE9SPRITE->setScaleY(flip);
|
||||
}
|
||||
else
|
||||
{
|
||||
STATIC_CAST_CCSPRITE->setFlippedY(_flippedY);
|
||||
}
|
||||
_imageRenderer->setFlippedY(_flippedY);
|
||||
|
||||
}
|
||||
|
||||
|
@ -206,18 +178,8 @@ void ImageView::setScale9Enabled(bool able)
|
|||
|
||||
|
||||
_scale9Enabled = able;
|
||||
removeProtectedChild(_imageRenderer);
|
||||
_imageRenderer = nullptr;
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_imageRenderer = extension::Scale9Sprite::create();
|
||||
}
|
||||
else
|
||||
{
|
||||
_imageRenderer = Sprite::create();
|
||||
}
|
||||
loadTexture(_textureFile,_imageTexType);
|
||||
addProtectedChild(_imageRenderer, IMAGE_RENDERER_Z, -1);
|
||||
_imageRenderer->setScale9Enabled(_scale9Enabled);
|
||||
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
bool ignoreBefore = _ignoreSize;
|
||||
|
@ -252,7 +214,7 @@ void ImageView::setCapInsets(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
STATIC_CAST_SCALE9SPRITE->setCapInsets(capInsets);
|
||||
_imageRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& ImageView::getCapInsets()const
|
||||
|
@ -298,7 +260,7 @@ void ImageView::imageTextureScaleChangedWithSize()
|
|||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_imageRenderer)->setPreferredSize(_contentSize);
|
||||
_imageRenderer->setPreferredSize(_contentSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
|||
NS_CC_BEGIN
|
||||
|
||||
namespace ui {
|
||||
|
||||
class Scale9Sprite;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -132,7 +132,7 @@ protected:
|
|||
bool _scale9Enabled;
|
||||
bool _prevIgnoreSize;
|
||||
Rect _capInsets;
|
||||
Node* _imageRenderer;
|
||||
Scale9Sprite* _imageRenderer;
|
||||
std::string _textureFile;
|
||||
TextureResType _imageTexType;
|
||||
Size _imageTextureSize;
|
||||
|
|
|
@ -24,7 +24,7 @@ THE SOFTWARE.
|
|||
|
||||
#include "ui/UILayout.h"
|
||||
#include "ui/UIHelper.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
#include "renderer/CCGLProgram.h"
|
||||
#include "renderer/CCGLProgramCache.h"
|
||||
#include "base/CCDirector.h"
|
||||
|
@ -577,7 +577,7 @@ void Layout::onSizeChanged()
|
|||
_backGroundImage->setPosition(Vec2(_contentSize.width/2.0f, _contentSize.height/2.0f));
|
||||
if (_backGroundScale9Enabled && _backGroundImage)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_backGroundImage)->setPreferredSize(_contentSize);
|
||||
_backGroundImage->setPreferredSize(_contentSize);
|
||||
}
|
||||
}
|
||||
if (_colorRender)
|
||||
|
@ -596,11 +596,13 @@ void Layout::setBackGroundImageScale9Enabled(bool able)
|
|||
{
|
||||
return;
|
||||
}
|
||||
removeProtectedChild(_backGroundImage);
|
||||
_backGroundImage = nullptr;
|
||||
_backGroundScale9Enabled = able;
|
||||
addBackGroundImage();
|
||||
setBackGroundImage(_backGroundImageFileName,_bgImageTexType);
|
||||
if (nullptr == _backGroundImage)
|
||||
{
|
||||
addBackGroundImage();
|
||||
setBackGroundImage(_backGroundImageFileName,_bgImageTexType);
|
||||
}
|
||||
_backGroundImage->setScale9Enabled(_backGroundScale9Enabled);
|
||||
setBackGroundImageCapInsets(_backGroundImageCapInsets);
|
||||
}
|
||||
|
||||
|
@ -621,36 +623,22 @@ void Layout::setBackGroundImage(const std::string& fileName,TextureResType texTy
|
|||
}
|
||||
_backGroundImageFileName = fileName;
|
||||
_bgImageTexType = texType;
|
||||
if (_backGroundScale9Enabled)
|
||||
|
||||
switch (_bgImageTexType)
|
||||
{
|
||||
extension::Scale9Sprite* bgiScale9 = static_cast<extension::Scale9Sprite*>(_backGroundImage);
|
||||
switch (_bgImageTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
bgiScale9->initWithFile(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
bgiScale9->initWithSpriteFrameName(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
bgiScale9->setPreferredSize(_contentSize);
|
||||
case TextureResType::LOCAL:
|
||||
_backGroundImage->initWithFile(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
_backGroundImage->initWithSpriteFrameName(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (_bgImageTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
static_cast<Sprite*>(_backGroundImage)->setTexture(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
static_cast<Sprite*>(_backGroundImage)->setSpriteFrame(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (_backGroundScale9Enabled) {
|
||||
_backGroundImage->setPreferredSize(_contentSize);
|
||||
}
|
||||
|
||||
_backGroundImageTextureSize = _backGroundImage->getContentSize();
|
||||
_backGroundImage->setPosition(Vec2(_contentSize.width/2.0f, _contentSize.height/2.0f));
|
||||
updateBackGroundImageRGBA();
|
||||
|
@ -661,7 +649,7 @@ void Layout::setBackGroundImageCapInsets(const Rect &capInsets)
|
|||
_backGroundImageCapInsets = capInsets;
|
||||
if (_backGroundScale9Enabled && _backGroundImage)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_backGroundImage)->setCapInsets(capInsets);
|
||||
_backGroundImage->setCapInsets(capInsets);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -706,17 +694,11 @@ void Layout::supplyTheLayoutParameterLackToChild(Widget *child)
|
|||
|
||||
void Layout::addBackGroundImage()
|
||||
{
|
||||
if (_backGroundScale9Enabled)
|
||||
{
|
||||
_backGroundImage = extension::Scale9Sprite::create();
|
||||
addProtectedChild(_backGroundImage, BACKGROUNDIMAGE_Z, -1);
|
||||
static_cast<extension::Scale9Sprite*>(_backGroundImage)->setPreferredSize(_contentSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
_backGroundImage = Sprite::create();
|
||||
addProtectedChild(_backGroundImage, BACKGROUNDIMAGE_Z, -1);
|
||||
}
|
||||
_backGroundImage = Scale9Sprite::create();
|
||||
_backGroundImage->setScale9Enabled(false);
|
||||
|
||||
addProtectedChild(_backGroundImage, BACKGROUNDIMAGE_Z, -1);
|
||||
|
||||
_backGroundImage->setPosition(Vec2(_contentSize.width/2.0f, _contentSize.height/2.0f));
|
||||
}
|
||||
|
||||
|
|
|
@ -36,10 +36,11 @@ class DrawNode;
|
|||
class LayerColor;
|
||||
class LayerGradient;
|
||||
|
||||
|
||||
namespace ui {
|
||||
|
||||
class LayoutManager;
|
||||
|
||||
class Scale9Sprite;
|
||||
|
||||
class CC_GUI_DLL LayoutProtocol
|
||||
{
|
||||
|
@ -466,7 +467,7 @@ protected:
|
|||
|
||||
//background
|
||||
bool _backGroundScale9Enabled;
|
||||
Node* _backGroundImage;
|
||||
Scale9Sprite* _backGroundImage;
|
||||
std::string _backGroundImageFileName;
|
||||
Rect _backGroundImageCapInsets;
|
||||
BackGroundColorType _colorType;
|
||||
|
|
|
@ -24,7 +24,6 @@ THE SOFTWARE.
|
|||
|
||||
#include "ui/UIListView.h"
|
||||
#include "ui/UIHelper.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "ui/UILoadingBar.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
#include "2d/CCSprite.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -81,7 +81,8 @@ LoadingBar* LoadingBar::create(const std::string &textureName, float percentage)
|
|||
|
||||
void LoadingBar::initRenderer()
|
||||
{
|
||||
_barRenderer = Sprite::create();
|
||||
_barRenderer = Scale9Sprite::create();
|
||||
_barRenderer->setScale9Enabled(false);
|
||||
addProtectedChild(_barRenderer, BAR_RENDERER_Z, -1);
|
||||
_barRenderer->setAnchorPoint(Vec2(0.0,0.5));
|
||||
}
|
||||
|
@ -100,17 +101,15 @@ void LoadingBar::setDirection(cocos2d::ui::LoadingBar::Direction direction)
|
|||
case Direction::LEFT:
|
||||
_barRenderer->setAnchorPoint(Vec2(0.0f,0.5f));
|
||||
_barRenderer->setPosition(Vec2(-_totalLength*0.5f,0.0f));
|
||||
if (!_scale9Enabled)
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setFlippedX(false);
|
||||
if (!_scale9Enabled) {
|
||||
_barRenderer->setFlippedX(false);
|
||||
}
|
||||
break;
|
||||
case Direction::RIGHT:
|
||||
_barRenderer->setAnchorPoint(Vec2(1.0f,0.5f));
|
||||
_barRenderer->setPosition(Vec2(_totalLength*0.5f,0.0f));
|
||||
if (!_scale9Enabled)
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setFlippedX(true);
|
||||
if (!_scale9Enabled) {
|
||||
_barRenderer->setFlippedX(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -134,28 +133,10 @@ void LoadingBar::loadTexture(const std::string& texture,TextureResType texType)
|
|||
switch (_renderBarTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
extension::Scale9Sprite* barRendererScale9 = static_cast<extension::Scale9Sprite*>(_barRenderer);
|
||||
barRendererScale9->initWithFile(texture);
|
||||
barRendererScale9->setCapInsets(_capInsets);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setTexture(texture);
|
||||
}
|
||||
_barRenderer->initWithFile(texture);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
extension::Scale9Sprite* barRendererScale9 = static_cast<extension::Scale9Sprite*>(_barRenderer);
|
||||
barRendererScale9->initWithSpriteFrameName(texture);
|
||||
barRendererScale9->setCapInsets(_capInsets);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setSpriteFrame(texture);
|
||||
}
|
||||
_barRenderer->initWithSpriteFrameName(texture);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -167,19 +148,19 @@ void LoadingBar::loadTexture(const std::string& texture,TextureResType texType)
|
|||
{
|
||||
case Direction::LEFT:
|
||||
_barRenderer->setAnchorPoint(Vec2(0.0f,0.5f));
|
||||
if (!_scale9Enabled)
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setFlippedX(false);
|
||||
if (!_scale9Enabled) {
|
||||
_barRenderer->setFlippedX(false);
|
||||
}
|
||||
break;
|
||||
case Direction::RIGHT:
|
||||
_barRenderer->setAnchorPoint(Vec2(1.0f,0.5f));
|
||||
if (!_scale9Enabled)
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setFlippedX(true);
|
||||
if (!_scale9Enabled) {
|
||||
_barRenderer->setFlippedX(true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
_barRenderer->setCapInsets(_capInsets);
|
||||
|
||||
barRendererScaleChangedWithSize();
|
||||
updateContentSizeWithTextureSize(_barRendererTextureSize);
|
||||
_barRendererAdaptDirty = true;
|
||||
|
@ -192,18 +173,8 @@ void LoadingBar::setScale9Enabled(bool enabled)
|
|||
return;
|
||||
}
|
||||
_scale9Enabled = enabled;
|
||||
removeProtectedChild(_barRenderer);
|
||||
_barRenderer = nullptr;
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_barRenderer = extension::Scale9Sprite::create();
|
||||
}
|
||||
else
|
||||
{
|
||||
_barRenderer = Sprite::create();
|
||||
}
|
||||
loadTexture(_textureFile,_renderBarTexType);
|
||||
addProtectedChild(_barRenderer, BAR_RENDERER_Z, -1);
|
||||
_barRenderer->setScale9Enabled(_scale9Enabled);
|
||||
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
bool ignoreBefore = _ignoreSize;
|
||||
|
@ -230,7 +201,7 @@ void LoadingBar::setCapInsets(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->setCapInsets(capInsets);
|
||||
_barRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& LoadingBar::getCapInsets()const
|
||||
|
@ -257,7 +228,7 @@ void LoadingBar::setPercent(float percent)
|
|||
}
|
||||
else
|
||||
{
|
||||
Sprite* spriteRenderer = static_cast<Sprite*>(_barRenderer);
|
||||
Sprite* spriteRenderer = _barRenderer->getSprite();
|
||||
Rect rect = spriteRenderer->getTextureRect();
|
||||
rect.size.width = _barRendererTextureSize.width * res;
|
||||
spriteRenderer->setTextureRect(rect, spriteRenderer->isTextureRectRotated(), rect.size);
|
||||
|
@ -351,7 +322,7 @@ void LoadingBar::barRendererScaleChangedWithSize()
|
|||
void LoadingBar::setScale9Scale()
|
||||
{
|
||||
float width = (float)(_percent) / 100.0f * _totalLength;
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->setPreferredSize(Size(width, _contentSize.height));
|
||||
_barRenderer->setPreferredSize(Size(width, _contentSize.height));
|
||||
}
|
||||
|
||||
std::string LoadingBar::getDescription() const
|
||||
|
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
|||
NS_CC_BEGIN
|
||||
|
||||
namespace ui {
|
||||
|
||||
class Scale9Sprite;
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
|
@ -154,7 +154,7 @@ protected:
|
|||
Direction _direction;
|
||||
float _percent;
|
||||
float _totalLength;
|
||||
Node* _barRenderer;
|
||||
Scale9Sprite* _barRenderer;
|
||||
TextureResType _renderBarTexType;
|
||||
Size _barRendererTextureSize;
|
||||
bool _scale9Enabled;
|
||||
|
|
|
@ -27,47 +27,12 @@
|
|||
#include "2d/CCLabel.h"
|
||||
#include "2d/CCSprite.h"
|
||||
#include "base/ccUTF8.h"
|
||||
#include "ui/UIHelper.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
namespace ui {
|
||||
|
||||
static std::string utf8_substr(const std::string& str, unsigned long start, unsigned long leng)
|
||||
{
|
||||
if (leng==0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
unsigned long c, i, ix, q, min=std::string::npos, max=std::string::npos;
|
||||
for (q=0, i=0, ix=str.length(); i < ix; i++, q++)
|
||||
{
|
||||
if (q==start)
|
||||
{
|
||||
min = i;
|
||||
}
|
||||
if (q <= start+leng || leng==std::string::npos)
|
||||
{
|
||||
max = i;
|
||||
}
|
||||
|
||||
c = (unsigned char) str[i];
|
||||
|
||||
if (c<=127) i+=0;
|
||||
else if ((c & 0xE0) == 0xC0) i+=1;
|
||||
else if ((c & 0xF0) == 0xE0) i+=2;
|
||||
else if ((c & 0xF8) == 0xF0) i+=3;
|
||||
else return "";//invalid utf8
|
||||
}
|
||||
if (q <= start+leng || leng == std::string::npos)
|
||||
{
|
||||
max = i;
|
||||
}
|
||||
if (min==std::string::npos || max==std::string::npos)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return str.substr(min,max);
|
||||
}
|
||||
|
||||
|
||||
bool RichElement::init(int tag, const Color3B &color, GLubyte opacity)
|
||||
{
|
||||
|
@ -318,18 +283,18 @@ void RichText::handleTextRenderer(const std::string& text, const std::string& fo
|
|||
std::string curText = text;
|
||||
size_t stringLength = StringUtils::getCharacterCountInUTF8String(text);
|
||||
int leftLength = stringLength * (1.0f - overstepPercent);
|
||||
std::string leftWords = utf8_substr(curText,0,leftLength);
|
||||
std::string cutWords = utf8_substr(curText, leftLength, stringLength - leftLength);
|
||||
std::string leftWords = Helper::getSubStringOfUTF8String(curText,0,leftLength);
|
||||
std::string cutWords = Helper::getSubStringOfUTF8String(curText, leftLength, stringLength - leftLength);
|
||||
if (leftLength > 0)
|
||||
{
|
||||
Label* leftRenderer = nullptr;
|
||||
if (fileExist)
|
||||
{
|
||||
leftRenderer = Label::createWithTTF(utf8_substr(leftWords, 0, leftLength), fontName, fontSize);
|
||||
leftRenderer = Label::createWithTTF(Helper::getSubStringOfUTF8String(leftWords, 0, leftLength), fontName, fontSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
leftRenderer = Label::createWithSystemFont(utf8_substr(leftWords, 0, leftLength), fontName, fontSize);
|
||||
leftRenderer = Label::createWithSystemFont(Helper::getSubStringOfUTF8String(leftWords, 0, leftLength), fontName, fontSize);
|
||||
}
|
||||
if (leftRenderer)
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,414 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __cocos2d_libs__UIScale9Sprite__
|
||||
#define __cocos2d_libs__UIScale9Sprite__
|
||||
|
||||
#include "2d/CCNode.h"
|
||||
#include "2d/CCSpriteFrame.h"
|
||||
#include "2d/CCSpriteBatchNode.h"
|
||||
#include "base/CCPlatformMacros.h"
|
||||
#include "ui/GUIExport.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
namespace ui {
|
||||
|
||||
/**
|
||||
* A 9-slice sprite for cocos2d.
|
||||
*
|
||||
* 9-slice scaling allows you to specify how scaling is applied
|
||||
* to specific areas of a sprite. With 9-slice scaling (3x3 grid),
|
||||
* you can ensure that the sprite does not become distorted when
|
||||
* scaled.
|
||||
* Note: When you set _scale9Enabled to false, then you could call scale9Sprite->getSprite() to return a new Sprite pointer.
|
||||
* Then you could call any methods of Sprite class with the return pointers.
|
||||
*
|
||||
*/
|
||||
class CC_GUI_DLL Scale9Sprite : public Node
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
Scale9Sprite();
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual ~Scale9Sprite();
|
||||
|
||||
public:
|
||||
static Scale9Sprite* create();
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with a texture file, a delimitation zone and
|
||||
* with the specified cap insets.
|
||||
*
|
||||
* @see initWithFile(const char *file, const Rect& rect, const Rect& capInsets)
|
||||
*/
|
||||
static Scale9Sprite* create(const std::string& file, const Rect& rect, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with a texture file. The whole texture will be
|
||||
* broken down into a 3×3 grid of equal blocks.
|
||||
*
|
||||
* @see initWithFile(const Rect& capInsets, const char *file)
|
||||
*/
|
||||
static Scale9Sprite* create(const Rect& capInsets, const std::string& file);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with a texture file and a delimitation zone. The
|
||||
* texture will be broken down into a 3×3 grid of equal blocks.
|
||||
*
|
||||
* @see initWithFile(const char *file, const Rect& rect)
|
||||
*/
|
||||
static Scale9Sprite* create(const std::string& file, const Rect& rect);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with a texture file. The whole texture will be
|
||||
* broken down into a 3×3 grid of equal blocks.
|
||||
*
|
||||
* @see initWithFile(const char *file)
|
||||
*/
|
||||
static Scale9Sprite* create(const std::string& file);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with an sprite frame.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @see initWithSpriteFrame(SpriteFrame *spriteFrame)
|
||||
*/
|
||||
static Scale9Sprite* createWithSpriteFrame(SpriteFrame* spriteFrame);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with an sprite frame and the centre of its zone.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @see initWithSpriteFrame(SpriteFrame *spriteFrame, const Rect& capInsets)
|
||||
*/
|
||||
static Scale9Sprite* createWithSpriteFrame(SpriteFrame* spriteFrame, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with an sprite frame name.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @see initWithSpriteFrameName(const char *spriteFrameName)
|
||||
*/
|
||||
static Scale9Sprite* createWithSpriteFrameName(const std::string& spriteFrameName);
|
||||
|
||||
/**
|
||||
* Creates a 9-slice sprite with an sprite frame name and the centre of its
|
||||
* zone.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @see initWithSpriteFrameName(const char *spriteFrameName, const Rect& capInsets)
|
||||
*/
|
||||
static Scale9Sprite* createWithSpriteFrameName(const std::string& spriteFrameName, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with a texture file, a delimitation zone and
|
||||
* with the specified cap insets.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param file The name of the texture file.
|
||||
* @param rect The rectangle that describes the sub-part of the texture that
|
||||
* is the whole image. If the shape is the whole texture, set this to the
|
||||
* texture's full rect.
|
||||
* @param capInsets The values to use for the cap insets.
|
||||
*/
|
||||
virtual bool initWithFile(const std::string& file, const Rect& rect, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with a texture file and a delimitation zone. The
|
||||
* texture will be broken down into a 3×3 grid of equal blocks.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param file The name of the texture file.
|
||||
* @param rect The rectangle that describes the sub-part of the texture that
|
||||
* is the whole image. If the shape is the whole texture, set this to the
|
||||
* texture's full rect.
|
||||
*/
|
||||
virtual bool initWithFile(const std::string& file, const Rect& rect);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with a texture file and with the specified cap
|
||||
* insets.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param file The name of the texture file.
|
||||
* @param capInsets The values to use for the cap insets.
|
||||
*/
|
||||
virtual bool initWithFile(const Rect& capInsets, const std::string& file);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with a texture file. The whole texture will be
|
||||
* broken down into a 3×3 grid of equal blocks.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param file The name of the texture file.
|
||||
*/
|
||||
virtual bool initWithFile(const std::string& file);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with an sprite frame and with the specified
|
||||
* cap insets.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param spriteFrame The sprite frame object.
|
||||
* @param capInsets The values to use for the cap insets.
|
||||
*/
|
||||
virtual bool initWithSpriteFrame(SpriteFrame* spriteFrame, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with an sprite frame.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param spriteFrame The sprite frame object.
|
||||
*/
|
||||
virtual bool initWithSpriteFrame(SpriteFrame* spriteFrame);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with an sprite frame name and with the specified
|
||||
* cap insets.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param spriteFrameName The sprite frame name.
|
||||
* @param capInsets The values to use for the cap insets.
|
||||
*/
|
||||
virtual bool initWithSpriteFrameName(const std::string& spriteFrameName, const Rect& capInsets);
|
||||
|
||||
/**
|
||||
* Initializes a 9-slice sprite with an sprite frame name.
|
||||
* Once the sprite is created, you can then call its "setContentSize:" method
|
||||
* to resize the sprite will all it's 9-slice goodness intract.
|
||||
* It respects the anchorPoint too.
|
||||
*
|
||||
* @param spriteFrameName The sprite frame name.
|
||||
*/
|
||||
virtual bool initWithSpriteFrameName(const std::string& spriteFrameName);
|
||||
|
||||
virtual bool init();
|
||||
virtual bool init(Sprite* sprite, const Rect& rect, bool rotated, const Rect& capInsets);
|
||||
virtual bool init(Sprite* sprite, const Rect& rect, const Rect& capInsets);
|
||||
/**
|
||||
* Creates and returns a new sprite object with the specified cap insets.
|
||||
* You use this method to add cap insets to a sprite or to change the existing
|
||||
* cap insets of a sprite. In both cases, you get back a new image and the
|
||||
* original sprite remains untouched.
|
||||
*
|
||||
* @param capInsets The values to use for the cap insets.
|
||||
*/
|
||||
Scale9Sprite* resizableSpriteWithCapInsets(const Rect& capInsets);
|
||||
|
||||
virtual bool updateWithSprite(Sprite* sprite, const Rect& rect, bool rotated, const Rect& capInsets);
|
||||
virtual void setSpriteFrame(SpriteFrame * spriteFrame);
|
||||
|
||||
// overrides
|
||||
virtual void setContentSize(const Size & size) override;
|
||||
virtual void setAnchorPoint(const Vec2& anchorPoint) override;
|
||||
|
||||
Size getOriginalSize() const;
|
||||
void setPreferredSize(const Size& size);
|
||||
Size getPreferredSize() const;
|
||||
void setCapInsets(const Rect& rect);
|
||||
Rect getCapInsets()const;
|
||||
void setInsetLeft(float leftInset);
|
||||
float getInsetLeft()const;
|
||||
void setInsetTop(float topInset);
|
||||
float getInsetTop()const;
|
||||
void setInsetRight(float rightInset);
|
||||
float getInsetRight()const;
|
||||
void setInsetBottom(float bottomInset);
|
||||
float getInsetBottom()const;
|
||||
void setScale9Enabled(bool enabled);
|
||||
bool isScale9Enabled()const;
|
||||
|
||||
|
||||
|
||||
/// @} end of Children and Parent
|
||||
|
||||
virtual void visit(Renderer *renderer, const Mat4 &parentTransform, uint32_t parentFlags) override;
|
||||
|
||||
virtual void cleanup() override;
|
||||
|
||||
virtual void onEnter() override;
|
||||
|
||||
/** Event callback that is invoked when the Node enters in the 'stage'.
|
||||
* If the Node enters the 'stage' with a transition, this event is called when the transition finishes.
|
||||
* If you override onEnterTransitionDidFinish, you shall call its parent's one, e.g. Node::onEnterTransitionDidFinish()
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onEnterTransitionDidFinish() override;
|
||||
|
||||
/**
|
||||
* Event callback that is invoked every time the Node leaves the 'stage'.
|
||||
* If the Node leaves the 'stage' with a transition, this event is called when the transition finishes.
|
||||
* During onExit you can't access a sibling node.
|
||||
* If you override onExit, you shall call its parent's one, e.g., Node::onExit().
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onExit() override;
|
||||
|
||||
/**
|
||||
* Event callback that is called every time the Node leaves the 'stage'.
|
||||
* If the Node leaves the 'stage' with a transition, this callback is called when the transition starts.
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
virtual void onExitTransitionDidStart() override;
|
||||
|
||||
virtual void updateDisplayedOpacity(GLubyte parentOpacity) override;
|
||||
virtual void updateDisplayedColor(const Color3B& parentColor) override;
|
||||
virtual void disableCascadeColor() override;
|
||||
|
||||
Sprite* getSprite()const;
|
||||
|
||||
/**
|
||||
* Sets whether the widget should be flipped horizontally or not.
|
||||
*
|
||||
* @param bFlippedX true if the widget should be flipped horizaontally, false otherwise.
|
||||
*/
|
||||
virtual void setFlippedX(bool flippedX);
|
||||
|
||||
/**
|
||||
* Returns the flag which indicates whether the widget is flipped horizontally or not.
|
||||
*
|
||||
* It only flips the texture of the widget, and not the texture of the widget's children.
|
||||
* Also, flipping the texture doesn't alter the anchorPoint.
|
||||
* If you want to flip the anchorPoint too, and/or to flip the children too use:
|
||||
* widget->setScaleX(sprite->getScaleX() * -1);
|
||||
*
|
||||
* @return true if the widget is flipped horizaontally, false otherwise.
|
||||
*/
|
||||
virtual bool isFlippedX()const;
|
||||
|
||||
/**
|
||||
* Sets whether the widget should be flipped vertically or not.
|
||||
*
|
||||
* @param bFlippedY true if the widget should be flipped vertically, flase otherwise.
|
||||
*/
|
||||
virtual void setFlippedY(bool flippedY);
|
||||
|
||||
/**
|
||||
* Return the flag which indicates whether the widget is flipped vertically or not.
|
||||
*
|
||||
* It only flips the texture of the widget, and not the texture of the widget's children.
|
||||
* Also, flipping the texture doesn't alter the anchorPoint.
|
||||
* If you want to flip the anchorPoint too, and/or to flip the children too use:
|
||||
* widget->setScaleY(widget->getScaleY() * -1);
|
||||
*
|
||||
* @return true if the widget is flipped vertically, flase otherwise.
|
||||
*/
|
||||
virtual bool isFlippedY()const;
|
||||
|
||||
protected:
|
||||
void updateCapInset();
|
||||
void updatePositions();
|
||||
void createSlicedSprites(const Rect& rect, bool rotated);
|
||||
void cleanupSlicedSprites();
|
||||
void adjustScale9ImagePosition();
|
||||
/**
|
||||
* Sorts the children array once before drawing, instead of every time when a child is added or reordered.
|
||||
* This appraoch can improves the performance massively.
|
||||
* @note Don't call this manually unless a child added needs to be removed in the same frame
|
||||
*/
|
||||
virtual void sortAllProtectedChildren();
|
||||
|
||||
bool _spritesGenerated;
|
||||
Rect _spriteRect;
|
||||
bool _spriteFrameRotated;
|
||||
Rect _capInsetsInternal;
|
||||
bool _positionsAreDirty;
|
||||
|
||||
Sprite* _scale9Image; //the original sprite
|
||||
Sprite* _topLeft;
|
||||
Sprite* _top;
|
||||
Sprite* _topRight;
|
||||
Sprite* _left;
|
||||
Sprite* _centre;
|
||||
Sprite* _right;
|
||||
Sprite* _bottomLeft;
|
||||
Sprite* _bottom;
|
||||
Sprite* _bottomRight;
|
||||
|
||||
bool _scale9Enabled;
|
||||
|
||||
/** Original sprite's size. */
|
||||
Size _originalSize;
|
||||
/** Prefered sprite's size. By default the prefered size is the original size. */
|
||||
|
||||
//if the preferredSize component is given as -1, it is ignored
|
||||
Size _preferredSize;
|
||||
/**
|
||||
* The end-cap insets.
|
||||
* On a non-resizeable sprite, this property is set to CGRect::ZERO; the sprite
|
||||
* does not use end caps and the entire sprite is subject to stretching.
|
||||
*/
|
||||
Rect _capInsets;
|
||||
/** Sets the left side inset */
|
||||
float _insetLeft;
|
||||
/** Sets the top side inset */
|
||||
float _insetTop;
|
||||
/** Sets the right side inset */
|
||||
float _insetRight;
|
||||
/** Sets the bottom side inset */
|
||||
float _insetBottom;
|
||||
|
||||
/// helper that reorder a child
|
||||
void addProtectedChild(Node* child);
|
||||
|
||||
Vector<Node*> _protectedChildren; ///holds the 9 sprites
|
||||
bool _reorderProtectedChildDirty;
|
||||
|
||||
bool _flippedX;
|
||||
bool _flippedY;
|
||||
};
|
||||
|
||||
}} //end of namespace
|
||||
|
||||
#endif /* defined(__cocos2d_libs__UIScale9Sprite__) */
|
|
@ -23,7 +23,7 @@ THE SOFTWARE.
|
|||
****************************************************************************/
|
||||
|
||||
#include "ui/UISlider.h"
|
||||
#include "extensions/GUI/CCControlExtension/CCScale9Sprite.h"
|
||||
#include "ui/UIScale9Sprite.h"
|
||||
#include "2d/CCSprite.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
@ -98,20 +98,28 @@ bool Slider::init()
|
|||
|
||||
void Slider::initRenderer()
|
||||
{
|
||||
_barRenderer = Sprite::create();
|
||||
_progressBarRenderer = Sprite::create();
|
||||
_barRenderer = Scale9Sprite::create();
|
||||
_progressBarRenderer = Scale9Sprite::create();
|
||||
_barRenderer->setScale9Enabled(false);
|
||||
_progressBarRenderer->setScale9Enabled(false);
|
||||
|
||||
_progressBarRenderer->setAnchorPoint(Vec2(0.0f, 0.5f));
|
||||
|
||||
addProtectedChild(_barRenderer, BASEBAR_RENDERER_Z, -1);
|
||||
addProtectedChild(_progressBarRenderer, PROGRESSBAR_RENDERER_Z, -1);
|
||||
|
||||
_slidBallNormalRenderer = Sprite::create();
|
||||
_slidBallPressedRenderer = Sprite::create();
|
||||
_slidBallPressedRenderer->setVisible(false);
|
||||
_slidBallDisabledRenderer = Sprite::create();
|
||||
_slidBallDisabledRenderer->setVisible(false);
|
||||
|
||||
_slidBallRenderer = Node::create();
|
||||
|
||||
_slidBallRenderer->addChild(_slidBallNormalRenderer);
|
||||
_slidBallRenderer->addChild(_slidBallPressedRenderer);
|
||||
_slidBallRenderer->addChild(_slidBallDisabledRenderer);
|
||||
|
||||
addProtectedChild(_slidBallRenderer, SLIDBALL_RENDERER_Z, -1);
|
||||
}
|
||||
|
||||
|
@ -126,24 +134,10 @@ void Slider::loadBarTexture(const std::string& fileName, TextureResType texType)
|
|||
switch (_barTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->initWithFile(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setTexture(fileName);
|
||||
}
|
||||
_barRenderer->initWithFile(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->initWithSpriteFrameName(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_barRenderer)->setSpriteFrame(fileName);
|
||||
}
|
||||
_barRenderer->initWithSpriteFrameName(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -165,24 +159,10 @@ void Slider::loadProgressBarTexture(const std::string& fileName, TextureResType
|
|||
switch (_progressBarTexType)
|
||||
{
|
||||
case TextureResType::LOCAL:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_progressBarRenderer)->initWithFile(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_progressBarRenderer)->setTexture(fileName);
|
||||
}
|
||||
_progressBarRenderer->initWithFile(fileName);
|
||||
break;
|
||||
case TextureResType::PLIST:
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_progressBarRenderer)->initWithSpriteFrameName(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
static_cast<Sprite*>(_progressBarRenderer)->setSpriteFrame(fileName);
|
||||
}
|
||||
_progressBarRenderer->initWithSpriteFrameName(fileName);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -201,24 +181,9 @@ void Slider::setScale9Enabled(bool able)
|
|||
}
|
||||
|
||||
_scale9Enabled = able;
|
||||
removeProtectedChild(_barRenderer);
|
||||
removeProtectedChild(_progressBarRenderer);
|
||||
_barRenderer = nullptr;
|
||||
_progressBarRenderer = nullptr;
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
_barRenderer = extension::Scale9Sprite::create();
|
||||
_progressBarRenderer = extension::Scale9Sprite::create();
|
||||
}
|
||||
else
|
||||
{
|
||||
_barRenderer = Sprite::create();
|
||||
_progressBarRenderer = Sprite::create();
|
||||
}
|
||||
loadBarTexture(_textureFile, _barTexType);
|
||||
loadProgressBarTexture(_progressBarTextureFile, _progressBarTexType);
|
||||
addProtectedChild(_barRenderer, BASEBAR_RENDERER_Z, -1);
|
||||
addProtectedChild(_progressBarRenderer, PROGRESSBAR_RENDERER_Z, -1);
|
||||
_barRenderer->setScale9Enabled(_scale9Enabled);
|
||||
_progressBarRenderer->setScale9Enabled(_scale9Enabled);
|
||||
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
bool ignoreBefore = _ignoreSize;
|
||||
|
@ -260,7 +225,7 @@ void Slider::setCapInsetsBarRenderer(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->setCapInsets(capInsets);
|
||||
_barRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& Slider::getCapInsetsBarRenderer()const
|
||||
|
@ -275,7 +240,7 @@ void Slider::setCapInsetProgressBarRebderer(const Rect &capInsets)
|
|||
{
|
||||
return;
|
||||
}
|
||||
static_cast<extension::Scale9Sprite*>(_progressBarRenderer)->setCapInsets(capInsets);
|
||||
_progressBarRenderer->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& Slider::getCapInsetsProgressBarRebderer()const
|
||||
|
@ -369,14 +334,17 @@ void Slider::setPercent(int percent)
|
|||
_slidBallRenderer->setPosition(Vec2(dis, _contentSize.height / 2.0f));
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_progressBarRenderer)->setPreferredSize(Size(dis,_progressBarTextureSize.height));
|
||||
_progressBarRenderer->setPreferredSize(Size(dis,_progressBarTextureSize.height));
|
||||
}
|
||||
else
|
||||
{
|
||||
Sprite* spriteRenderer = static_cast<Sprite*>(_progressBarRenderer);
|
||||
Rect rect = spriteRenderer->getTextureRect();
|
||||
rect.size.width = _progressBarTextureSize.width * res;
|
||||
spriteRenderer->setTextureRect(rect, spriteRenderer->isTextureRectRotated(), rect.size);
|
||||
Sprite* spriteRenderer = _progressBarRenderer->getSprite();
|
||||
|
||||
if (nullptr != spriteRenderer) {
|
||||
Rect rect = spriteRenderer->getTextureRect();
|
||||
rect.size.width = _progressBarTextureSize.width * res;
|
||||
spriteRenderer->setTextureRect(rect, spriteRenderer->isTextureRectRotated(), rect.size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -497,7 +465,7 @@ void Slider::barRendererScaleChangedWithSize()
|
|||
_barLength = _contentSize.width;
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_barRenderer)->setPreferredSize(_contentSize);
|
||||
_barRenderer->setPreferredSize(_contentSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -534,7 +502,7 @@ void Slider::progressBarRendererScaleChangedWithSize()
|
|||
{
|
||||
if (_scale9Enabled)
|
||||
{
|
||||
static_cast<extension::Scale9Sprite*>(_progressBarRenderer)->setPreferredSize(_contentSize);
|
||||
_progressBarRenderer->setPreferredSize(_contentSize);
|
||||
_progressBarTextureSize = _progressBarRenderer->getContentSize();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -33,7 +33,8 @@ NS_CC_BEGIN
|
|||
class Sprite;
|
||||
|
||||
namespace ui {
|
||||
|
||||
class Scale9Sprite;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
SLIDER_PERCENTCHANGED
|
||||
|
@ -226,8 +227,8 @@ protected:
|
|||
virtual void copySpecialProperties(Widget* model) override;
|
||||
virtual void adaptRenderers() override;
|
||||
protected:
|
||||
Node* _barRenderer;
|
||||
Node* _progressBarRenderer;
|
||||
Scale9Sprite* _barRenderer;
|
||||
Scale9Sprite* _progressBarRenderer;
|
||||
Size _progressBarTextureSize;
|
||||
|
||||
Sprite* _slidBallNormalRenderer;
|
||||
|
|
|
@ -24,27 +24,12 @@ THE SOFTWARE.
|
|||
|
||||
#include "ui/UITextField.h"
|
||||
#include "platform/CCFileUtils.h"
|
||||
#include "ui/UIHelper.h"
|
||||
#include "base/ccUTF8.h"
|
||||
|
||||
NS_CC_BEGIN
|
||||
|
||||
namespace ui {
|
||||
|
||||
static int _calcCharCount(const char * pszText)
|
||||
{
|
||||
int n = 0;
|
||||
char ch = 0;
|
||||
while ((ch = *pszText))
|
||||
{
|
||||
CC_BREAK_IF(! ch);
|
||||
|
||||
if (0x80 != (0xC0 & ch))
|
||||
{
|
||||
++n;
|
||||
}
|
||||
++pszText;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
UICCTextField::UICCTextField()
|
||||
: _maxLengthEnabled(false)
|
||||
|
@ -130,7 +115,7 @@ void UICCTextField::insertText(const char* text, size_t len)
|
|||
{
|
||||
if (_maxLengthEnabled)
|
||||
{
|
||||
int text_count = _calcCharCount(getString().c_str());
|
||||
long text_count = StringUtils::getCharacterCountInUTF8String(getString());
|
||||
if (text_count >= _maxLength)
|
||||
{
|
||||
// password
|
||||
|
@ -141,69 +126,16 @@ void UICCTextField::insertText(const char* text, size_t len)
|
|||
return;
|
||||
}
|
||||
|
||||
#if ((CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32))
|
||||
int input_count = _calcCharCount(text);
|
||||
int total = total = text_count + input_count;
|
||||
long input_count = StringUtils::getCharacterCountInUTF8String(text);
|
||||
long total = text_count + input_count;
|
||||
|
||||
if (total > _maxLength)
|
||||
{
|
||||
int end = 0;
|
||||
int length = _maxLength - text_count;
|
||||
long length = _maxLength - text_count;
|
||||
|
||||
for (int i = 0; i < length; ++i)
|
||||
{
|
||||
char value = text[i];
|
||||
|
||||
if (value >= 0 && value <= 127) // ascii
|
||||
{
|
||||
end++;
|
||||
}
|
||||
else
|
||||
{
|
||||
end += 3;
|
||||
}
|
||||
}
|
||||
input_text = input_text.substr(0, end);
|
||||
len = end;
|
||||
input_text = Helper::getSubStringOfUTF8String(input_text, 0, length);
|
||||
len = input_text.length();
|
||||
}
|
||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
int input_count = _calcCharCount(text);
|
||||
int total = text_count + input_count;
|
||||
if (total > _maxLength)
|
||||
{
|
||||
int ascii = 0;
|
||||
int unicode = 0;
|
||||
int end = 0;
|
||||
int count = 0;
|
||||
|
||||
for (int i = 0; i < total * 3; ++i)
|
||||
{
|
||||
char value = text[i];
|
||||
|
||||
if (value >= 0 && value <= 127) // ascii
|
||||
{
|
||||
ascii++;
|
||||
count++;
|
||||
}
|
||||
else
|
||||
{
|
||||
unicode++;
|
||||
if (unicode % 3 == 0)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
if (count == _maxLength)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
end = ascii + unicode;
|
||||
input_text = input_text.substr(0, end);
|
||||
len = end;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
TextFieldTTF::insertText(input_text.c_str(), len);
|
||||
|
@ -294,8 +226,8 @@ void UICCTextField::setPasswordStyleText(const std::string& styleText)
|
|||
void UICCTextField::setPasswordText(const std::string& text)
|
||||
{
|
||||
std::string tempStr = "";
|
||||
int text_count = _calcCharCount(text.c_str());
|
||||
int max = text_count;
|
||||
long text_count = StringUtils::getCharacterCountInUTF8String(text);
|
||||
long max = text_count;
|
||||
|
||||
if (_maxLengthEnabled)
|
||||
{
|
||||
|
@ -479,40 +411,11 @@ void TextField::setText(const std::string& text)
|
|||
if (isMaxLengthEnabled())
|
||||
{
|
||||
int max = _textFieldRenderer->getMaxLength();
|
||||
int text_count = _calcCharCount(text.c_str());
|
||||
int total = text_count + _calcCharCount(getStringValue().c_str());
|
||||
long text_count = StringUtils::getCharacterCountInUTF8String(text);
|
||||
long total = text_count + StringUtils::getCharacterCountInUTF8String(getStringValue());
|
||||
if (total > max)
|
||||
{
|
||||
int ascii = 0;
|
||||
int unicode = 0;
|
||||
int end = 0;
|
||||
int count = 0;
|
||||
|
||||
for (int i = 0; i < total * 3; ++i)
|
||||
{
|
||||
char value = text[i];
|
||||
|
||||
if (value >= 0 && value <= 127) // ascii
|
||||
{
|
||||
ascii++;
|
||||
count++;
|
||||
}
|
||||
else
|
||||
{
|
||||
unicode++;
|
||||
if (unicode % 3 == 0)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
if (count == max)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
end = ascii + unicode;
|
||||
strText = strText.substr(0, end);
|
||||
strText = Helper::getSubStringOfUTF8String(strText, 0, max);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
|||
#ifndef __UIWIDGET_H__
|
||||
#define __UIWIDGET_H__
|
||||
|
||||
#include "ui/CCProtectedNode.h"
|
||||
#include "2d/CCProtectedNode.h"
|
||||
#include "ui/UILayoutParameter.h"
|
||||
#include "ui/GUIDefine.h"
|
||||
#include "ui/GUIExport.h"
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\CCProtectedNode.h" />
|
||||
<ClInclude Include="..\CocosGUI.h" />
|
||||
<ClInclude Include="..\GUIExport.h" />
|
||||
<ClInclude Include="..\UIButton.h" />
|
||||
|
@ -28,6 +27,7 @@
|
|||
<ClInclude Include="..\UIPageView.h" />
|
||||
<ClInclude Include="..\UIRelativeBox.h" />
|
||||
<ClInclude Include="..\UIRichText.h" />
|
||||
<ClInclude Include="..\UIScale9Sprite.h" />
|
||||
<ClInclude Include="..\UIScrollView.h" />
|
||||
<ClInclude Include="..\UISlider.h" />
|
||||
<ClInclude Include="..\UIText.h" />
|
||||
|
@ -38,7 +38,6 @@
|
|||
<ClInclude Include="..\UIWidget.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\CCProtectedNode.cpp" />
|
||||
<ClCompile Include="..\CocosGUI.cpp" />
|
||||
<ClCompile Include="..\UIButton.cpp" />
|
||||
<ClCompile Include="..\UICheckBox.cpp" />
|
||||
|
@ -54,6 +53,7 @@
|
|||
<ClCompile Include="..\UIPageView.cpp" />
|
||||
<ClCompile Include="..\UIRelativeBox.cpp" />
|
||||
<ClCompile Include="..\UIRichText.cpp" />
|
||||
<ClCompile Include="..\UIScale9Sprite.cpp" />
|
||||
<ClCompile Include="..\UIScrollView.cpp" />
|
||||
<ClCompile Include="..\UISlider.cpp" />
|
||||
<ClCompile Include="..\UIText.cpp" />
|
||||
|
@ -145,7 +145,7 @@
|
|||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>
|
||||
</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;_USEGUIDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USEGUIDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
|
|
|
@ -72,9 +72,6 @@
|
|||
<ClInclude Include="..\UIRichText.h">
|
||||
<Filter>UIWidgets</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\CCProtectedNode.h">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\UIHBox.h">
|
||||
<Filter>Layouts</Filter>
|
||||
</ClInclude>
|
||||
|
@ -93,6 +90,9 @@
|
|||
<ClInclude Include="..\GUIExport.h">
|
||||
<Filter>System</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\UIScale9Sprite.h">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\UIScrollView.cpp">
|
||||
|
@ -149,9 +149,6 @@
|
|||
<ClCompile Include="..\UIRichText.cpp">
|
||||
<Filter>UIWidgets</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\CCProtectedNode.cpp">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\UIHBox.cpp">
|
||||
<Filter>Layouts</Filter>
|
||||
</ClCompile>
|
||||
|
@ -167,5 +164,8 @@
|
|||
<ClCompile Include="..\UIDeprecated.cpp">
|
||||
<Filter>System</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\UIScale9Sprite.cpp">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -188,6 +188,7 @@
|
|||
<ClInclude Include="..\UIHBox.h" />
|
||||
<ClInclude Include="..\UILayoutManager.h" />
|
||||
<ClInclude Include="..\UIRelativeBox.h" />
|
||||
<ClInclude Include="..\UIScale9Sprite.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\ui\CCProtectedNode.cpp" />
|
||||
|
@ -214,5 +215,6 @@
|
|||
<ClCompile Include="..\UIHBox.cpp" />
|
||||
<ClCompile Include="..\UILayoutManager.cpp" />
|
||||
<ClCompile Include="..\UIRelativeBox.cpp" />
|
||||
<ClCompile Include="..\UIScale9Sprite.cpp" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -87,6 +87,9 @@
|
|||
<ClInclude Include="..\UIDeprecated.h">
|
||||
<Filter>System</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\UIScale9Sprite.h">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\ui\UILayout.cpp">
|
||||
|
@ -161,5 +164,8 @@
|
|||
<ClCompile Include="..\UIDeprecated.cpp">
|
||||
<Filter>System</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\UIScale9Sprite.cpp">
|
||||
<Filter>BaseClasses</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -95,7 +95,7 @@
|
|||
<Optimization>MinSpace</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v7.1A\include;$(EngineRoot);$(EngineRoot)cocos\audio\include;$(EngineRoot)external;$(EngineRoot)external\unzip;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\sqlite3\include;$(EngineRoot)external\libwebsockets\win32\include;$(EngineRoot)external\win32-specific\zlib\include;..\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;_USREXDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USREXDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
|
|
|
@ -981,9 +981,6 @@
|
|||
"cocos/storage/local-storage/LocalStorage.cpp",
|
||||
"cocos/storage/local-storage/LocalStorage.h",
|
||||
"cocos/storage/local-storage/LocalStorageAndroid.cpp",
|
||||
"cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj",
|
||||
"cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.filters",
|
||||
"cocos/storage/local-storage/proj.win32/libLocalStorage.vcxproj.user",
|
||||
"cocos/storage/local-storage/proj.wp8/libLocalStorage.vcxproj",
|
||||
"cocos/storage/local-storage/proj.wp8/libLocalStorage.vcxproj.filters",
|
||||
"cocos/ui/Android.mk",
|
||||
|
@ -1022,6 +1019,8 @@
|
|||
"cocos/ui/UIRelativeBox.h",
|
||||
"cocos/ui/UIRichText.cpp",
|
||||
"cocos/ui/UIRichText.h",
|
||||
"cocos/ui/UIScale9Sprite.cpp",
|
||||
"cocos/ui/UIScale9Sprite.h",
|
||||
"cocos/ui/UIScrollView.cpp",
|
||||
"cocos/ui/UIScrollView.h",
|
||||
"cocos/ui/UISlider.cpp",
|
||||
|
@ -3561,6 +3560,12 @@
|
|||
"tools/fbx-conv/README.md",
|
||||
"tools/fbx-conv/mac/fbx-conv",
|
||||
"tools/fbx-conv/mac/libfbxsdk.dylib",
|
||||
"tools/gen-prebuilt/README.md",
|
||||
"tools/gen-prebuilt/build_config.json",
|
||||
"tools/gen-prebuilt/excopy.py",
|
||||
"tools/gen-prebuilt/gen_prebuilt_libs.py",
|
||||
"tools/gen-prebuilt/module_config.json",
|
||||
"tools/gen-prebuilt/module_organize.py",
|
||||
"tools/particle/convert_YCoordFlipped.py"
|
||||
],
|
||||
"lua": [
|
||||
|
|
|
@ -68,6 +68,7 @@ Classes/UITest/CocoStudioGUITest/CocostudioParserTest.cpp \
|
|||
Classes/UITest/CocoStudioGUITest/GUIEditorTest.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/CustomGUIScene.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/UIScene.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/UISceneManager.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp \
|
||||
Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp \
|
||||
|
|
|
@ -80,6 +80,7 @@ set(SAMPLE_SRC
|
|||
Classes/UITest/CocoStudioGUITest/GUIEditorTest.cpp
|
||||
Classes/UITest/CocoStudioGUITest/CustomGUIScene.cpp
|
||||
Classes/UITest/CocoStudioGUITest/UIScene.cpp
|
||||
Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp
|
||||
Classes/UITest/CocoStudioGUITest/UISceneManager.cpp
|
||||
Classes/UITest/CocoStudioGUITest/CocostudioParserTest/CocostudioParserJsonTest.cpp
|
||||
Classes/UITest/CocoStudioGUITest/CocostudioParserTest.cpp
|
||||
|
|
|
@ -108,7 +108,7 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
// a bug in DirectX 11 level9-x on the device prevents ResolutionPolicy::NO_BORDER from working correctly
|
||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
|
||||
#else
|
||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::NO_BORDER);
|
||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
|
||||
#endif
|
||||
|
||||
auto scene = Scene::create();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define _TIMELINE_TESTLAYER_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "audio/include/SimpleAudioEngine.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "cocosbuilder/CocosBuilder.h"
|
||||
|
||||
|
|
|
@ -42,6 +42,18 @@ g_guisTests[] =
|
|||
Scene* scene = sceneManager->currentUIScene();
|
||||
Director::getInstance()->replaceScene(scene);
|
||||
}
|
||||
},
|
||||
{
|
||||
"Scale9 Sprite Test",
|
||||
[](Ref* sender)
|
||||
{
|
||||
UISceneManager* sceneManager = UISceneManager::sharedUISceneManager();
|
||||
sceneManager->setCurrentUISceneId(kUIScale9SpriteTest);
|
||||
sceneManager->setMinUISceneId(kUIScale9SpriteTest);
|
||||
sceneManager->setMaxUISceneId(kUIS9Flip);
|
||||
Scene* scene = sceneManager->currentUIScene();
|
||||
Director::getInstance()->replaceScene(scene);
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
|
@ -51,7 +63,7 @@ g_guisTests[] =
|
|||
UISceneManager* sceneManager = UISceneManager::sharedUISceneManager();
|
||||
sceneManager->setCurrentUISceneId(kUIButtonTest);
|
||||
sceneManager->setMinUISceneId(kUIButtonTest);
|
||||
sceneManager->setMaxUISceneId(kUIButtonTest_RemoveSelf);
|
||||
sceneManager->setMaxUISceneId(kUIButtonTestSwitchScale9);
|
||||
Scene* scene = sceneManager->currentUIScene();
|
||||
Director::getInstance()->replaceScene(scene);
|
||||
}
|
||||
|
|
|
@ -378,13 +378,23 @@ bool UIButtonTestRemoveSelf::init()
|
|||
|
||||
_uiLayer->addChild(alert);
|
||||
|
||||
Layout *layout = Layout::create();
|
||||
layout->setContentSize(widgetSize * 0.6);
|
||||
layout->setBackGroundColor(Color3B::GREEN);
|
||||
layout->setBackGroundColorType(Layout::BackGroundColorType::SOLID);
|
||||
layout->setBackGroundColorOpacity(100);
|
||||
layout->setPosition(Size(widgetSize.width/2, widgetSize.height/2));
|
||||
layout->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
|
||||
layout->setTag(12);
|
||||
_uiLayer->addChild(layout);
|
||||
|
||||
// Create the button
|
||||
Button* button = Button::create("cocosui/animationbuttonnormal.png",
|
||||
"cocosui/animationbuttonpressed.png");
|
||||
button->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||
button->setPosition(Vec2(layout->getContentSize().width / 2.0f, layout->getContentSize().height / 2.0f));
|
||||
// button->addTouchEventListener(this, toucheventselector(UIButtonTest::touchEvent));
|
||||
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTestRemoveSelf::touchEvent, this));
|
||||
_uiLayer->addChild(button);
|
||||
layout->addChild(button);
|
||||
|
||||
|
||||
|
||||
|
@ -408,8 +418,86 @@ void UIButtonTestRemoveSelf::touchEvent(Ref *pSender, Widget::TouchEventType typ
|
|||
case Widget::TouchEventType::ENDED:
|
||||
{
|
||||
_displayValueLabel->setString(String::createWithFormat("Touch Up")->getCString());
|
||||
|
||||
_uiLayer->removeFromParentAndCleanup(true);
|
||||
auto layout = _uiLayer->getChildByTag(12);
|
||||
layout->removeFromParentAndCleanup(true);
|
||||
}
|
||||
break;
|
||||
|
||||
case Widget::TouchEventType::CANCELED:
|
||||
_displayValueLabel->setString(String::createWithFormat("Touch Cancelled")->getCString());
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// UIButtonTestSwitchScale9
|
||||
UIButtonTestSwitchScale9::UIButtonTestSwitchScale9()
|
||||
: _displayValueLabel(nullptr)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
UIButtonTestSwitchScale9::~UIButtonTestSwitchScale9()
|
||||
{
|
||||
}
|
||||
|
||||
bool UIButtonTestSwitchScale9::init()
|
||||
{
|
||||
if (UIScene::init())
|
||||
{
|
||||
Size widgetSize = _widget->getContentSize();
|
||||
|
||||
// Add a label in which the button events will be displayed
|
||||
_displayValueLabel = Text::create("No Event", "fonts/Marker Felt.ttf",32);
|
||||
_displayValueLabel->setAnchorPoint(Vec2(0.5f, -1.0f));
|
||||
_displayValueLabel->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||
_uiLayer->addChild(_displayValueLabel);
|
||||
|
||||
// Add the alert
|
||||
Text* alert = Text::create("Button","fonts/Marker Felt.ttf",30);
|
||||
alert->setColor(Color3B(159, 168, 176));
|
||||
|
||||
alert->setPosition(Vec2(widgetSize.width / 2.0f,
|
||||
widgetSize.height / 2.0f - alert->getContentSize().height * 1.75f));
|
||||
|
||||
_uiLayer->addChild(alert);
|
||||
|
||||
// Create the button
|
||||
Button* button = Button::create("cocosui/animationbuttonnormal.png",
|
||||
"cocosui/animationbuttonpressed.png");
|
||||
button->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTestSwitchScale9::touchEvent, this));
|
||||
button->ignoreContentAdaptWithSize(false);
|
||||
|
||||
_uiLayer->addChild(button);
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void UIButtonTestSwitchScale9::touchEvent(Ref *pSender, Widget::TouchEventType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case Widget::TouchEventType::BEGAN:
|
||||
_displayValueLabel->setString(String::createWithFormat("Touch Down")->getCString());
|
||||
break;
|
||||
|
||||
case Widget::TouchEventType::MOVED:
|
||||
_displayValueLabel->setString(String::createWithFormat("Touch Move")->getCString());
|
||||
break;
|
||||
|
||||
case Widget::TouchEventType::ENDED:
|
||||
{
|
||||
_displayValueLabel->setString(String::createWithFormat("Touch Up")->getCString());
|
||||
auto btn = ((Button*)pSender);
|
||||
btn->setScale9Enabled(!btn->isScale9Enabled());
|
||||
btn->setContentSize(Size(200,100));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -92,4 +92,17 @@ protected:
|
|||
Text* _displayValueLabel;
|
||||
};
|
||||
|
||||
class UIButtonTestSwitchScale9 : public UIScene
|
||||
{
|
||||
public:
|
||||
UIButtonTestSwitchScale9();
|
||||
~UIButtonTestSwitchScale9();
|
||||
bool init();
|
||||
void touchEvent(Ref *pSender, Widget::TouchEventType type);
|
||||
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIButtonTestSwitchScale9)
|
||||
Text* _displayValueLabel;
|
||||
};
|
||||
|
||||
#endif /* defined(__TestCpp__UIButtonTest__) */
|
||||
|
|
|
@ -20,6 +20,19 @@ bool UIRichTextTest::init()
|
|||
{
|
||||
Size widgetSize = _widget->getContentSize();
|
||||
|
||||
std::string str1 = "中国中国中";
|
||||
std::string str2 = "ご静聴ありがとうございました!!ご静聴ありがとうございました!!";
|
||||
CCLOG("str1:%s ascii length = %ld, utf8 length = %ld, substr = %s",
|
||||
str1.c_str(),
|
||||
str1.length(),
|
||||
StringUtils::getCharacterCountInUTF8String(str1),
|
||||
Helper::getSubStringOfUTF8String(str1, 0, 5).c_str());
|
||||
CCLOG("str2:%s ascii length = %ld, utf8 length = %ld, substr = %s",
|
||||
str2.c_str(),
|
||||
str2.length(),
|
||||
StringUtils::getCharacterCountInUTF8String(str2),
|
||||
Helper::getSubStringOfUTF8String(str2, 0, 2).c_str());
|
||||
|
||||
// Add the alert
|
||||
Text *alert = Text::create("RichText", "fonts/Marker Felt.ttf", 30);
|
||||
alert->setColor(Color3B(159, 168, 176));
|
||||
|
@ -31,7 +44,6 @@ bool UIRichTextTest::init()
|
|||
button->setTouchEnabled(true);
|
||||
button->setTitleText("switch");
|
||||
button->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f + button->getContentSize().height * 2.5));
|
||||
// button->addTouchEventListener(this, toucheventselector(UIRichTextTest::touchEvent));
|
||||
button->addTouchEventListener(CC_CALLBACK_2(UIRichTextTest::touchEvent, this));
|
||||
button->setLocalZOrder(10);
|
||||
_widget->addChild(button);
|
||||
|
@ -45,7 +57,7 @@ bool UIRichTextTest::init()
|
|||
RichElementText* re1 = RichElementText::create(1, Color3B::WHITE, 255, "中国中国中国中国中国中国中国中国中国中国", "Marker Felt", 10);
|
||||
RichElementText* re2 = RichElementText::create(2, Color3B::YELLOW, 255, "And this is yellow. ", "Helvetica", 10);
|
||||
RichElementText* re3 = RichElementText::create(3, Color3B::GRAY, 255, "ご静聴ありがとうございました!!ご静聴ありがとうございました!!", "Helvetica", 10);
|
||||
RichElementText* re4 = RichElementText::create(4, Color3B::GREEN, 255, "And green. ", "Helvetica", 10);
|
||||
RichElementText* re4 = RichElementText::create(4, Color3B::GREEN, 255, "And green with TTF support. ", "fonts/Marker Felt.ttf", 10);
|
||||
RichElementText* re5 = RichElementText::create(5, Color3B::RED, 255, "Last one is red ", "Helvetica", 10);
|
||||
|
||||
RichElementImage* reimg = RichElementImage::create(6, Color3B::WHITE, 255, "cocosui/sliderballnormal.png");
|
||||
|
|
|
@ -0,0 +1,661 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "UIScale9SpriteTest.h"
|
||||
#include "testResource.h"
|
||||
|
||||
// UIScale9SpriteTest
|
||||
UIScale9SpriteTest::UIScale9SpriteTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
UIScale9SpriteTest::~UIScale9SpriteTest()
|
||||
{
|
||||
}
|
||||
|
||||
bool UIScale9SpriteTest::init()
|
||||
{
|
||||
if (UIScene::init())
|
||||
{
|
||||
Size widgetSize = _widget->getContentSize();
|
||||
|
||||
auto moveTo = MoveBy::create(1.0, Vec2(30,0));
|
||||
auto moveBack = moveTo->reverse();
|
||||
auto rotateBy = RotateBy::create(1.0, 180);
|
||||
auto action = Sequence::create(moveTo,moveBack, rotateBy, NULL);
|
||||
|
||||
|
||||
Sprite *normalSprite1 = Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
normalSprite1->setPosition(100, 270);
|
||||
// normalSprite1->setAnchorPoint(Vec2(0.5,0.5));
|
||||
// normalSprite1->setContentSize(Size(100,100));
|
||||
|
||||
this->addChild(normalSprite1);
|
||||
normalSprite1->runAction((FiniteTimeAction*)action->clone());
|
||||
|
||||
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
normalSprite2->setPosition(120, 270);
|
||||
normalSprite2->setScale9Enabled(false);
|
||||
// normalSprite2->setContentSize(Size(100,100));
|
||||
// normalSprite2->setAnchorPoint(Vec2(0.5,0.5));
|
||||
normalSprite2->setOpacity(100);
|
||||
this->addChild(normalSprite2);
|
||||
normalSprite2->setColor(Color3B::GREEN);
|
||||
normalSprite2->runAction(action);
|
||||
|
||||
auto action2 = action->clone();
|
||||
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
sp1->setPosition(100, 160);
|
||||
sp1->setScale(1.2);
|
||||
sp1->setContentSize(Size(100,100));
|
||||
sp1->setColor(Color3B::GREEN);
|
||||
// sp1->setScale9Enabled(false);
|
||||
this->addChild(sp1);
|
||||
sp1->runAction((FiniteTimeAction*)action2);
|
||||
|
||||
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
sp2->setPosition(350, 160);
|
||||
sp2->setPreferredSize(sp1->getContentSize() * 1.2);
|
||||
sp2->setColor(Color3B::GREEN);
|
||||
sp2->setContentSize(Size(100,100));
|
||||
|
||||
this->addChild(sp2);
|
||||
auto action3 = action->clone();
|
||||
sp2->runAction((FiniteTimeAction*)action3);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
UIScale9SpriteHierarchialTest::UIScale9SpriteHierarchialTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
UIScale9SpriteHierarchialTest::~UIScale9SpriteHierarchialTest()
|
||||
{
|
||||
}
|
||||
|
||||
bool UIScale9SpriteHierarchialTest::init()
|
||||
{
|
||||
if (UIScene::init())
|
||||
{
|
||||
Size widgetSize = _widget->getContentSize();
|
||||
|
||||
auto moveTo = MoveBy::create(1.0, Vec2(30,0));
|
||||
auto moveBack = moveTo->reverse();
|
||||
auto rotateBy = RotateBy::create(1.0, 180);
|
||||
auto fadeOut = FadeOut::create(2.0);
|
||||
auto action = Sequence::create(moveTo,moveBack, rotateBy,fadeOut, NULL);
|
||||
|
||||
|
||||
Sprite *normalSprite1 = Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
normalSprite1->setPosition(100, 270);
|
||||
// normalSprite1->setAnchorPoint(Vec2(0.5,0.5));
|
||||
// normalSprite1->setContentSize(Size(100,100));
|
||||
|
||||
// Sprite *childSprite = Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
normalSprite1->setCascadeColorEnabled(true);
|
||||
normalSprite1->setCascadeOpacityEnabled(true);
|
||||
normalSprite1->setColor(Color3B::GREEN);
|
||||
|
||||
|
||||
|
||||
this->addChild(normalSprite1);
|
||||
normalSprite1->runAction((FiniteTimeAction*)action->clone());
|
||||
|
||||
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
// normalSprite2->setPosition(120, 270);
|
||||
normalSprite2->setScale9Enabled(false);
|
||||
// normalSprite2->setContentSize(Size(100,100));
|
||||
// normalSprite2->setAnchorPoint(Vec2(0.5,0.5));
|
||||
normalSprite2->setOpacity(100);
|
||||
normalSprite1->addChild(normalSprite2);
|
||||
|
||||
auto action2 = action->clone();
|
||||
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
sp1->setPosition(200, 160);
|
||||
sp1->setScale(1.2);
|
||||
sp1->setContentSize(Size(100,100));
|
||||
sp1->setColor(Color3B::GREEN);
|
||||
// sp1->setScale9Enabled(false);
|
||||
this->addChild(sp1);
|
||||
sp1->runAction((FiniteTimeAction*)action2);
|
||||
|
||||
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||
// sp2->setPosition(350, 160);
|
||||
sp2->setPreferredSize(sp1->getContentSize() * 1.2);
|
||||
sp2->setColor(Color3B::GREEN);
|
||||
sp2->setContentSize(Size(100,100));
|
||||
|
||||
sp1->addChild(sp2);
|
||||
// auto action3 = action->clone();
|
||||
// sp2->runAction((FiniteTimeAction*)action3);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
UIScale9SpriteTouchTest::UIScale9SpriteTouchTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
UIScale9SpriteTouchTest::~UIScale9SpriteTouchTest()
|
||||
{
|
||||
}
|
||||
|
||||
bool UIScale9SpriteTouchTest::init()
|
||||
{
|
||||
if (UIScene::init())
|
||||
{
|
||||
|
||||
Vec2 origin = Director::getInstance()->getVisibleOrigin();
|
||||
Size size = Director::getInstance()->getVisibleSize();
|
||||
|
||||
auto containerForSprite1 = Node::create();
|
||||
auto sprite1 = cocos2d::ui::Scale9Sprite::create("Images/CyanSquare.png");
|
||||
// sprite1->setScale9Enabled(false);
|
||||
sprite1->setPosition(origin+Vec2(size.width/2, size.height/2) + Vec2(-80, 80));
|
||||
containerForSprite1->addChild(sprite1);
|
||||
addChild(containerForSprite1, 10);
|
||||
|
||||
auto sprite2 = ui::Scale9Sprite::create("Images/MagentaSquare.png");
|
||||
sprite2->setPosition(origin+Vec2(size.width/2, size.height/2));
|
||||
// sprite2->setCascadeOpacityEnabled(false);
|
||||
// sprite2->setScale9Enabled(false);
|
||||
|
||||
addChild(sprite2, 20);
|
||||
|
||||
auto sprite3 = ui::Scale9Sprite::create("Images/YellowSquare.png");
|
||||
sprite3->setPosition(Vec2(0, 0));
|
||||
sprite3->setCascadeOpacityEnabled(false);
|
||||
sprite2->addChild(sprite3, 1);
|
||||
// sprite3->setScale9Enabled(false);
|
||||
|
||||
|
||||
// Make sprite1 touchable
|
||||
auto listener1 = EventListenerTouchOneByOne::create();
|
||||
listener1->setSwallowTouches(true);
|
||||
|
||||
listener1->onTouchBegan = [](Touch* touch, Event* event){
|
||||
auto target = static_cast<Sprite*>(event->getCurrentTarget());
|
||||
|
||||
Vec2 locationInNode = target->convertToNodeSpace(touch->getLocation());
|
||||
Size s = target->getContentSize();
|
||||
Rect rect = Rect(0, 0, s.width, s.height);
|
||||
|
||||
if (rect.containsPoint(locationInNode))
|
||||
{
|
||||
log("sprite began... x = %f, y = %f", locationInNode.x, locationInNode.y);
|
||||
target->setOpacity(180);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
listener1->onTouchMoved = [](Touch* touch, Event* event){
|
||||
auto target = static_cast<Sprite*>(event->getCurrentTarget());
|
||||
target->setPosition(target->getPosition() + touch->getDelta());
|
||||
};
|
||||
|
||||
listener1->onTouchEnded = [=](Touch* touch, Event* event){
|
||||
auto target = static_cast<ui::Scale9Sprite*>(event->getCurrentTarget());
|
||||
log("sprite onTouchesEnded.. ");
|
||||
target->setOpacity(255);
|
||||
if (target == sprite2)
|
||||
{
|
||||
containerForSprite1->setLocalZOrder(100);
|
||||
}
|
||||
else if(target == sprite1)
|
||||
{
|
||||
containerForSprite1->setLocalZOrder(0);
|
||||
}
|
||||
};
|
||||
|
||||
_eventDispatcher->addEventListenerWithSceneGraphPriority(listener1, sprite1);
|
||||
_eventDispatcher->addEventListenerWithSceneGraphPriority(listener1->clone(), sprite2);
|
||||
_eventDispatcher->addEventListenerWithSceneGraphPriority(listener1->clone(), sprite3);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9BatchNodeBasic::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
|
||||
auto sprite = Sprite::create("Images/blocks9.png");
|
||||
|
||||
auto blocks = ui::Scale9Sprite::create();
|
||||
|
||||
blocks->updateWithSprite(sprite, Rect(0, 0, 96, 96), false, Rect(0, 0, 96, 96));
|
||||
|
||||
blocks->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheet::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
|
||||
auto blocks = ui::Scale9Sprite::createWithSpriteFrameName("blocks9.png");
|
||||
|
||||
blocks->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool UIS9FrameNameSpriteSheetRotated::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto blocks = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
blocks->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool UIS9BatchNodeScaledNoInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
// scaled without insets
|
||||
auto sprite_scaled = Sprite::create("Images/blocks9.png");
|
||||
|
||||
auto blocks_scaled = ui::Scale9Sprite::create();
|
||||
blocks_scaled->updateWithSprite(sprite_scaled, Rect(0, 0, 96, 96), false, Rect(0, 0, 96, 96));
|
||||
|
||||
blocks_scaled->setPosition(Vec2(x, y));
|
||||
|
||||
blocks_scaled->setContentSize(Size(96 * 4, 96*2));
|
||||
|
||||
this->addChild(blocks_scaled);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetScaledNoInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto blocks_scaled = ui::Scale9Sprite::createWithSpriteFrameName("blocks9.png");
|
||||
|
||||
blocks_scaled->setPosition(Vec2(x, y));
|
||||
|
||||
blocks_scaled->setContentSize(Size(96 * 4, 96*2));
|
||||
|
||||
this->addChild(blocks_scaled);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetRotatedScaledNoInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
|
||||
auto blocks_scaled = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
blocks_scaled->setPosition(Vec2(x, y));
|
||||
|
||||
blocks_scaled->setContentSize(Size(96 * 4, 96*2));
|
||||
|
||||
this->addChild(blocks_scaled);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool UIS9BatchNodeScaleWithCapInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
|
||||
auto sprite_scaled_with_insets = Sprite::create("Images/blocks9.png");
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::create();
|
||||
|
||||
blocks_scaled_with_insets->updateWithSprite(sprite_scaled_with_insets, Rect(0, 0, 96, 96), false, Rect(32, 32, 32, 32));
|
||||
|
||||
blocks_scaled_with_insets->setContentSize(Size(96 * 4.5, 96 * 2.5));
|
||||
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_scaled_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
|
||||
auto blocks_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9.png", Rect(32, 32, 32, 32));
|
||||
|
||||
blocks_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetInsetsScaled::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9.png", Rect(32, 32, 32, 32));
|
||||
|
||||
blocks_scaled_with_insets->setContentSize(Size(96 * 4.5, 96 * 2.5));
|
||||
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_scaled_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetRotatedInsets::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto blocks_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png", Rect(32, 32, 32, 32));
|
||||
|
||||
blocks_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9_TexturePacker::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_ui_plist);
|
||||
|
||||
float x = winSize.width / 4;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto s = ui::Scale9Sprite::createWithSpriteFrameName("button_normal.png");
|
||||
|
||||
s->setPosition(Vec2(x, y));
|
||||
|
||||
s->setContentSize(Size(14 * 16, 10 * 16));
|
||||
|
||||
this->addChild(s);
|
||||
|
||||
x = winSize.width * 3/4;
|
||||
|
||||
auto s2 = ui::Scale9Sprite::createWithSpriteFrameName("button_actived.png");
|
||||
|
||||
s2->setPosition(Vec2(x, y));
|
||||
|
||||
s2->setContentSize(Size(14 * 16, 10 * 16));
|
||||
|
||||
this->addChild(s2);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetRotatedInsetsScaled::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9.png", Rect(32, 32, 32, 32));
|
||||
|
||||
blocks_scaled_with_insets->setContentSize(Size(96 * 4.5, 96 * 2.5));
|
||||
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_scaled_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9FrameNameSpriteSheetRotatedSetCapInsetLater::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
blocks_scaled_with_insets->setInsetLeft(32);
|
||||
blocks_scaled_with_insets->setInsetRight(32);
|
||||
|
||||
blocks_scaled_with_insets->setPreferredSize(Size(32*5.5f, 32*4));
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
this->addChild(blocks_scaled_with_insets);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9CascadeOpacityAndColor::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
auto rgba = Layer::create();
|
||||
rgba->setCascadeColorEnabled(true);
|
||||
rgba->setCascadeOpacityEnabled(true);
|
||||
this->addChild(rgba);
|
||||
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
|
||||
rgba->addChild(blocks_scaled_with_insets);
|
||||
auto actions = Sequence::create(FadeIn::create(1),
|
||||
TintTo::create(1, 0, 255, 0),
|
||||
TintTo::create(1, 255, 255, 255),
|
||||
FadeOut::create(1),
|
||||
nullptr);
|
||||
auto repeat = RepeatForever::create(actions);
|
||||
rgba->runAction(repeat);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9ZOrder::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
auto blocks_scaled_with_insets = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
blocks_scaled_with_insets->setPosition(Vec2(x, y));
|
||||
this->addChild(blocks_scaled_with_insets);
|
||||
|
||||
Sprite *normalSprite = Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
normalSprite->setColor(Color3B::RED);
|
||||
blocks_scaled_with_insets->addChild(normalSprite);
|
||||
|
||||
auto topLabel = Label::createWithSystemFont("I Must be On the Top", "Arial", 15);
|
||||
topLabel->setPosition(Vec2(20,20));
|
||||
blocks_scaled_with_insets->addChild(topLabel);
|
||||
|
||||
auto bottomLabel = Label::createWithSystemFont("I Must be On the Bottom", "Arial", 15);
|
||||
bottomLabel->setPosition(Vec2(80,80));
|
||||
bottomLabel->setColor(Color3B::BLUE);
|
||||
blocks_scaled_with_insets->addChild(bottomLabel,-1);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UIS9Flip::init()
|
||||
{
|
||||
if (UIScene::init()) {
|
||||
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(s_s9s_blocks9_plist);
|
||||
|
||||
auto winSize = Director::getInstance()->getWinSize();
|
||||
float x = winSize.width / 2;
|
||||
float y = 0 + (winSize.height / 2);
|
||||
|
||||
|
||||
auto normalSprite = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
normalSprite->setPosition(Vec2(x, y ));
|
||||
this->addChild(normalSprite);
|
||||
|
||||
|
||||
auto normalLabel = Label::createWithSystemFont("Normal Sprite","Airal",10);
|
||||
normalLabel->setPosition(normalSprite->getPosition() + Vec2(0, normalSprite->getContentSize().height/2 + 10));
|
||||
this->addChild(normalLabel);
|
||||
|
||||
|
||||
|
||||
auto flipXSprite = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
flipXSprite->setPosition(Vec2(x - 120, y ));
|
||||
this->addChild(flipXSprite);
|
||||
|
||||
flipXSprite->setFlippedX(true);
|
||||
|
||||
auto flipXLabel = Label::createWithSystemFont("Sprite FlipX","Airal",10);
|
||||
flipXLabel->setPosition(flipXSprite->getPosition() + Vec2(0, flipXSprite->getContentSize().height/2 + 10));
|
||||
this->addChild(flipXLabel);
|
||||
|
||||
|
||||
auto flipYSprite = ui::Scale9Sprite::createWithSpriteFrameName("blocks9r.png");
|
||||
|
||||
flipYSprite->setPosition(Vec2(x + 120, y));
|
||||
this->addChild(flipYSprite);
|
||||
|
||||
flipYSprite->setFlippedY(true);
|
||||
|
||||
auto flipYLabel = Label::createWithSystemFont("Sprite FlipY","Airal",10);
|
||||
flipYLabel->setPosition(flipYSprite->getPosition() + Vec2(0, flipYSprite->getContentSize().height/2 + 10));
|
||||
this->addChild(flipYLabel);
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
|
@ -0,0 +1,259 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||
|
||||
http://www.cocos2d-x.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __cocos2d_tests__UIScale9SpriteTest__
|
||||
#define __cocos2d_tests__UIScale9SpriteTest__
|
||||
#include "UIScene.h"
|
||||
|
||||
class UIScale9SpriteTest : public UIScene
|
||||
{
|
||||
public:
|
||||
UIScale9SpriteTest();
|
||||
~UIScale9SpriteTest();
|
||||
bool init();
|
||||
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIScale9SpriteTest)
|
||||
};
|
||||
|
||||
class UIScale9SpriteHierarchialTest : public UIScene
|
||||
{
|
||||
public:
|
||||
UIScale9SpriteHierarchialTest();
|
||||
~UIScale9SpriteHierarchialTest();
|
||||
bool init();
|
||||
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIScale9SpriteHierarchialTest)
|
||||
};
|
||||
|
||||
class UIScale9SpriteTouchTest : public UIScene
|
||||
{
|
||||
public:
|
||||
UIScale9SpriteTouchTest();
|
||||
~UIScale9SpriteTouchTest();
|
||||
bool init();
|
||||
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIScale9SpriteTouchTest)
|
||||
};
|
||||
|
||||
// S9BatchNodeBasic
|
||||
|
||||
class UIS9BatchNodeBasic : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9BatchNodeBasic);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9BatchNodeBasic)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheet
|
||||
|
||||
class UIS9FrameNameSpriteSheet : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheet);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheet)
|
||||
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetRotated
|
||||
|
||||
class UIS9FrameNameSpriteSheetRotated : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetRotated);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetRotated)
|
||||
};
|
||||
|
||||
// S9BatchNodeScaledNoInsets
|
||||
|
||||
class UIS9BatchNodeScaledNoInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9BatchNodeScaledNoInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9BatchNodeScaledNoInsets)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetScaledNoInsets
|
||||
|
||||
class UIS9FrameNameSpriteSheetScaledNoInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetScaledNoInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetScaledNoInsets)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetRotatedScaledNoInsets
|
||||
|
||||
class UIS9FrameNameSpriteSheetRotatedScaledNoInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedScaledNoInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedScaledNoInsets)
|
||||
};
|
||||
|
||||
|
||||
// S9BatchNodeScaleWithCapInsets
|
||||
|
||||
class UIS9BatchNodeScaleWithCapInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9BatchNodeScaleWithCapInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9BatchNodeScaleWithCapInsets)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetInsets
|
||||
|
||||
class UIS9FrameNameSpriteSheetInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetInsets)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetInsetsScaled
|
||||
|
||||
class UIS9FrameNameSpriteSheetInsetsScaled : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetInsetsScaled);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetInsetsScaled)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetRotatedInsets
|
||||
|
||||
class UIS9FrameNameSpriteSheetRotatedInsets : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsets);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsets)
|
||||
};
|
||||
|
||||
// S9_TexturePacker
|
||||
|
||||
class UIS9_TexturePacker : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9_TexturePacker);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9_TexturePacker)
|
||||
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetRotatedInsetsScaled
|
||||
|
||||
class UIS9FrameNameSpriteSheetRotatedInsetsScaled : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsetsScaled);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedInsetsScaled)
|
||||
};
|
||||
|
||||
// S9FrameNameSpriteSheetRotatedInsetsScaled
|
||||
|
||||
class UIS9FrameNameSpriteSheetRotatedSetCapInsetLater : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedSetCapInsetLater);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9FrameNameSpriteSheetRotatedSetCapInsetLater)
|
||||
};
|
||||
|
||||
// S9CascadeOpacityAndColor
|
||||
|
||||
class UIS9CascadeOpacityAndColor : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9CascadeOpacityAndColor);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9CascadeOpacityAndColor)
|
||||
};
|
||||
|
||||
// Scale9Sprite ZOrder
|
||||
|
||||
class UIS9ZOrder : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9ZOrder);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9ZOrder)
|
||||
|
||||
};
|
||||
|
||||
// Scale9Sprite Flip
|
||||
|
||||
class UIS9Flip : public UIScene
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UIS9Flip);
|
||||
|
||||
bool init();
|
||||
protected:
|
||||
UI_SCENE_CREATE_FUNC(UIS9Flip)
|
||||
};
|
||||
|
||||
|
||||
#endif /* defined(__cocos2d_tests__UIScale9SpriteTest__) */
|
|
@ -21,21 +21,8 @@
|
|||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
#include "UIVideoPlayerTest/UIVideoPlayerTest.h"
|
||||
#endif
|
||||
/*
|
||||
#include "UISwitchTest/UISwitchTest.h"
|
||||
*/
|
||||
/*
|
||||
#include "UIProgressTimerTest/UIProgressTimerTest.h"
|
||||
*/
|
||||
/*
|
||||
#include "UIPotentiometerTest/UIPotentiometerTest.h"
|
||||
*/
|
||||
/*
|
||||
#include "UIGridViewTest/UIGridViewTest.h"
|
||||
*/
|
||||
/*
|
||||
#include "UIPickerViewTest/UIPickerViewTest.h"
|
||||
*/
|
||||
#include "UIScale9SpriteTest.h"
|
||||
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
|
@ -46,17 +33,11 @@ static const char* s_testArray[] =
|
|||
"UIButtonTest_PressedAction",
|
||||
"UIButtonTest_Title",
|
||||
"UIButtonTest_RemoveSelf",
|
||||
"UIButtonTestSwitchScale9",
|
||||
"UICheckBoxTest",
|
||||
"UISliderTest",
|
||||
"UISliderTest_Scale9",
|
||||
/*
|
||||
"UIPotentiometerTest",
|
||||
*/
|
||||
/*
|
||||
"UISwitchTest_Horizontal",
|
||||
"UISwitchTest_Vertical",
|
||||
"UISwitchTest_VerticalAndTitleVertical",
|
||||
*/
|
||||
|
||||
"UIImageViewTest",
|
||||
"UIImageViewTest_Scale9",
|
||||
"UIImageViewTest_ContentSize",
|
||||
|
@ -64,15 +45,7 @@ static const char* s_testArray[] =
|
|||
"UILoadingBarTest_Right",
|
||||
"UILoadingBarTest_Left_Scale9",
|
||||
"UILoadingBarTest_Right_Scale9",
|
||||
/*
|
||||
"UIProgressTimerTest_Radial",
|
||||
"UIProgressTimerTest_Horizontal",
|
||||
"UIProgressTimerTest_Vertical",
|
||||
"UIProgressTimerTest_RadialMidpointChanged",
|
||||
"UIProgressTimerTest_BarVarious",
|
||||
"UIProgressTimerTest_BarTintAndFade",
|
||||
"UIProgressTimerTest_WithSpriteFrame",
|
||||
*/
|
||||
|
||||
"UITextAtlasTest",
|
||||
"UITextTest",
|
||||
"UITextTest_LineWrap",
|
||||
|
@ -95,9 +68,7 @@ static const char* s_testArray[] =
|
|||
"UILayoutTest_Layout_Linear_Horizontal",
|
||||
"UILayoutTest_Layout_Relative_Align_Parent",
|
||||
"UILayoutTest_Layout_Relative_Location",
|
||||
/*
|
||||
"UILayoutTest_Layout_Grid",
|
||||
*/
|
||||
|
||||
"UIScrollViewTest_Vertical",
|
||||
"UIScrollViewTest_Horizontal",
|
||||
"UIScrollViewTest_Both",
|
||||
|
@ -107,14 +78,7 @@ static const char* s_testArray[] =
|
|||
"UIPageViewButtonTest",
|
||||
"UIListViewTest_Vertical",
|
||||
"UIListViewTest_Horizontal",
|
||||
/*
|
||||
"UIGridViewTest_Mode_Column",
|
||||
"UIGridViewTest_Mode_Row",
|
||||
*/
|
||||
/*
|
||||
"UIPickerViewTest_Vertical",
|
||||
"UIPickerViewTest_Horizontal",
|
||||
*/
|
||||
|
||||
"UIWidgetAddNodeTest",
|
||||
"UIRichTextTest",
|
||||
"UIFocusTest-HBox",
|
||||
|
@ -124,8 +88,27 @@ static const char* s_testArray[] =
|
|||
"UIFocusTest-NestedLayout3",
|
||||
"UIFocusTest-ListView",
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
"UIVideoPlayerTest"
|
||||
"UIVideoPlayerTest",
|
||||
#endif
|
||||
"UIScale9SpriteTest",
|
||||
"UIScale9SpriteHierarchialTest",
|
||||
"UIScale9SpriteTouchTest",
|
||||
"UIS9BatchNodeBasic",
|
||||
"UIS9FrameNameSpriteSheet",
|
||||
"UIS9FrameNameSpriteSheetRotated",
|
||||
"UIS9BatchNodeScaledNoInsets",
|
||||
"UIS9FrameNameSpriteSheetScaledNoInsets",
|
||||
"UIS9FrameNameSpriteSheetRotatedScaledNoInsets",
|
||||
"UIS9BatchNodeScaleWithCapInsets",
|
||||
"UIS9FrameNameSpriteSheetInsets",
|
||||
"UIS9FrameNameSpriteSheetInsetsScaled",
|
||||
"UIS9FrameNameSpriteSheetRotatedInsets",
|
||||
"UIS9_TexturePacker",
|
||||
"UIS9FrameNameSpriteSheetRotatedInsetsScaled",
|
||||
"UIS9FrameNameSpriteSheetRotatedSetCapInsetLater",
|
||||
"UIS9CascadeOpacityAndColor",
|
||||
"UIS9ZOrder",
|
||||
"UIS9Flip",
|
||||
};
|
||||
|
||||
static UISceneManager *sharedInstance = nullptr;
|
||||
|
@ -194,6 +177,8 @@ Scene *UISceneManager::currentUIScene()
|
|||
return UIButtonTest_Title::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIButtonTest_RemoveSelf:
|
||||
return UIButtonTestRemoveSelf::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIButtonTestSwitchScale9:
|
||||
return UIButtonTestSwitchScale9::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUICheckBoxTest:
|
||||
return UICheckBoxTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
|
||||
|
@ -329,6 +314,44 @@ Scene *UISceneManager::currentUIScene()
|
|||
case kUIVideoPlayerTest:
|
||||
return VideoPlayerTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
#endif
|
||||
case kUIScale9SpriteTest:
|
||||
return UIScale9SpriteTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIScale9SpriteHierarchialTest:
|
||||
return UIScale9SpriteHierarchialTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIScale9SpriteTouchTest:
|
||||
return UIScale9SpriteTouchTest::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9BatchNodeBasic:
|
||||
return UIS9BatchNodeBasic::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheet:
|
||||
return UIS9FrameNameSpriteSheet::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetRotated:
|
||||
return UIS9FrameNameSpriteSheetRotated::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9BatchNodeScaledNoInsets:
|
||||
return UIS9BatchNodeScaledNoInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetScaledNoInsets:
|
||||
return UIS9FrameNameSpriteSheetScaledNoInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetRotatedScaledNoInsets:
|
||||
return UIS9FrameNameSpriteSheetRotatedScaledNoInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9BatchNodeScaleWithCapInsets:
|
||||
return UIS9BatchNodeScaleWithCapInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetInsets:
|
||||
return UIS9FrameNameSpriteSheetInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetInsetsScaled:
|
||||
return UIS9FrameNameSpriteSheetInsetsScaled::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetRotatedInsets:
|
||||
return UIS9FrameNameSpriteSheetRotatedInsets::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9_TexturePacker:
|
||||
return UIS9_TexturePacker::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetRotatedInsetsScaled:
|
||||
return UIS9FrameNameSpriteSheetRotatedInsetsScaled::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9FrameNameSpriteSheetRotatedSetCapInsetLater:
|
||||
return UIS9FrameNameSpriteSheetRotatedSetCapInsetLater::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9CascadeOpacityAndColor:
|
||||
return UIS9CascadeOpacityAndColor::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9ZOrder:
|
||||
return UIS9ZOrder::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
case kUIS9Flip:
|
||||
return UIS9Flip::sceneWithTitle(s_testArray[_currentUISceneId]);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
@ -36,17 +36,10 @@ enum
|
|||
kUIButtonTest_PressedAction,
|
||||
kUIButtonTest_Title,
|
||||
kUIButtonTest_RemoveSelf,
|
||||
kUIButtonTestSwitchScale9,
|
||||
kUICheckBoxTest,
|
||||
kUISliderTest,
|
||||
kUISliderTest_Scale9,
|
||||
/*
|
||||
kUIPotentiometerTest,
|
||||
*/
|
||||
/*
|
||||
kUISwitchTest_Horizontal,
|
||||
kUISwitchTest_Vertical,
|
||||
kUISwitchTest_VerticalAndTitleVertical,
|
||||
*/
|
||||
kUIImageViewTest,
|
||||
kUIImageViewTest_Scale9,
|
||||
kUIImageViewTest_ContentSize,
|
||||
|
@ -54,15 +47,6 @@ enum
|
|||
kUILoadingBarTest_Right,
|
||||
kUILoadingBarTest_Left_Scale9,
|
||||
kUILoadingBarTest_Right_Scale9,
|
||||
/*
|
||||
kUIProgressTimerTest_Radial,
|
||||
kUIProgressTimerTest_Horizontal,
|
||||
kUIProgressTimerTest_Vertical,
|
||||
kUIProgressTimerTest_RadialMidpointChanged,
|
||||
kUIProgressTimerTest_BarVarious,
|
||||
kUIProgressTimerTest_BarTintAndFade,
|
||||
kUIProgressTimerTest_WithSpriteFrame,
|
||||
*/
|
||||
kUITextAtlasTest,
|
||||
kUITextTest,
|
||||
kUITextTest_LineWrap,
|
||||
|
@ -84,9 +68,6 @@ enum
|
|||
kUILayoutTest_Layout_Linear_Horizontal,
|
||||
kUILayoutTest_Layout_Relative_Align_Parent,
|
||||
kUILayoutTest_Layout_Relative_Location,
|
||||
/*
|
||||
kUILayoutTest_Layout_Grid,
|
||||
*/
|
||||
kUIScrollViewTest_Vertical,
|
||||
kUIScrollViewTest_Horizontal,
|
||||
kUIScrollViewTest_Both,
|
||||
|
@ -96,12 +77,6 @@ enum
|
|||
kUIPageViewButtonTest,
|
||||
kUIListViewTest_Vertical,
|
||||
kUIListViewTest_Horizontal,
|
||||
/*
|
||||
kUIGridViewTest_Mode_Column,
|
||||
kUIGridViewTest_Mode_Row,
|
||||
kUIPickerViewTest_Vertical,
|
||||
kUIPickerViewTest_Horizontal,
|
||||
*/
|
||||
kUIWidgetAddNodeTest,
|
||||
kUIRichTextTest,
|
||||
KUIFocusTest_HBox,
|
||||
|
@ -113,6 +88,25 @@ enum
|
|||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
kUIVideoPlayerTest,
|
||||
#endif
|
||||
kUIScale9SpriteTest,
|
||||
kUIScale9SpriteHierarchialTest,
|
||||
kUIScale9SpriteTouchTest,
|
||||
kUIS9BatchNodeBasic,
|
||||
kUIS9FrameNameSpriteSheet,
|
||||
kUIS9FrameNameSpriteSheetRotated,
|
||||
kUIS9BatchNodeScaledNoInsets,
|
||||
kUIS9FrameNameSpriteSheetScaledNoInsets,
|
||||
kUIS9FrameNameSpriteSheetRotatedScaledNoInsets,
|
||||
kUIS9BatchNodeScaleWithCapInsets,
|
||||
kUIS9FrameNameSpriteSheetInsets,
|
||||
kUIS9FrameNameSpriteSheetInsetsScaled,
|
||||
kUIS9FrameNameSpriteSheetRotatedInsets,
|
||||
kUIS9_TexturePacker,
|
||||
kUIS9FrameNameSpriteSheetRotatedInsetsScaled,
|
||||
kUIS9FrameNameSpriteSheetRotatedSetCapInsetLater,
|
||||
kUIS9CascadeOpacityAndColor,
|
||||
kUIS9ZOrder,
|
||||
kUIS9Flip,
|
||||
kUITestMax
|
||||
};
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ bool UITextFieldTest::init()
|
|||
_uiLayer->addChild(alert);
|
||||
|
||||
// Create the textfield
|
||||
TextField* textField = TextField::create("input words here","fonts/Marker Felt.ttf",30);
|
||||
TextField* textField = TextField::create("input words here","Arial",30);
|
||||
|
||||
textField->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||
textField->addEventListener(CC_CALLBACK_2(UITextFieldTest::textFieldEvent, this));
|
||||
|
@ -110,7 +110,7 @@ bool UITextFieldTest_MaxLength::init()
|
|||
_uiLayer->addChild(alert);
|
||||
|
||||
// Create the textfield
|
||||
TextField* textField = TextField::create("input words here","fonts/Marker Felt.ttf",30);
|
||||
TextField* textField = TextField::create("input words here","Arial",30);
|
||||
textField->setMaxLengthEnabled(true);
|
||||
textField->setMaxLength(3);
|
||||
textField->setPosition(Vec2(screenSize.width / 2.0f, screenSize.height / 2.0f));
|
||||
|
@ -194,7 +194,7 @@ bool UITextFieldTest_Password::init()
|
|||
_uiLayer->addChild(alert);
|
||||
|
||||
// Create the textfield
|
||||
TextField* textField = TextField::create("input password here","fonts/Marker Felt.ttf",30);
|
||||
TextField* textField = TextField::create("input password here","Arial",30);
|
||||
textField->setPasswordEnabled(true);
|
||||
textField->setPasswordStyleText("*");
|
||||
textField->setPosition(Vec2(screenSize.width / 2.0f, screenSize.height / 2.0f));
|
||||
|
@ -276,7 +276,8 @@ bool UITextFieldTest_LineWrap::init()
|
|||
TextField* textField = TextField::create("input words here","fonts/Marker Felt.ttf",30);
|
||||
textField->ignoreContentAdaptWithSize(false);
|
||||
((Label*)(textField->getVirtualRenderer()))->setLineBreakWithoutSpace(true);
|
||||
textField->setContentSize(Size(240, 70));
|
||||
textField->setContentSize(Size(240, 170));
|
||||
textField->setText("input words here");
|
||||
textField->setTextHorizontalAlignment(TextHAlignment::CENTER);
|
||||
textField->setTextVerticalAlignment(TextVAlignment::CENTER);
|
||||
textField->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||
|
@ -297,7 +298,7 @@ void UITextFieldTest_LineWrap::textFieldEvent(Ref *pSender, TextField::EventType
|
|||
TextField* textField = dynamic_cast<TextField*>(pSender);
|
||||
Size widgetSize = _widget->getContentSize();
|
||||
textField->runAction(CCMoveTo::create(0.225f,
|
||||
Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f + textField->getContentSize().height / 2)));
|
||||
Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f + 30)));
|
||||
textField->setTextHorizontalAlignment(TextHAlignment::LEFT);
|
||||
textField->setTextVerticalAlignment(TextVAlignment::TOP);
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define _TEST_BASIC_H_
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "audio/include/SimpleAudioEngine.h"
|
||||
#include "VisibleRect.h"
|
||||
|
||||
USING_NS_CC;
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<Optimization>MaxSpeed</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<AdditionalIncludeDirectories>..\Classes;$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\editor-support;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\network;$(EngineRoot)external;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\curl\include\win32;$(EngineRoot)external\websockets\win32\include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_CONSTRUCTOR_ACCESS=public;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
|
@ -214,6 +214,7 @@
|
|||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest_Editor.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIRichTextTest\UIRichTextTest.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIScene.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UISceneManager.cpp" />
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UISceneManager_Editor.cpp" />
|
||||
|
@ -399,6 +400,7 @@
|
|||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest_Editor.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIRichTextTest\UIRichTextTest.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIScene.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UISceneManager.h" />
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UISceneManager_Editor.h" />
|
||||
|
|
|
@ -855,6 +855,9 @@
|
|||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\CustomWidget\CustomReader.cpp">
|
||||
<Filter>Classes\UITest\CocostudioGUISceneTest\CustomWidget</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.cpp">
|
||||
<Filter>Classes\UITest\CocostudioGUISceneTest</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="main.h">
|
||||
|
@ -1580,5 +1583,8 @@
|
|||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\CustomWidget\CustomReader.h">
|
||||
<Filter>Classes\UITest\CocostudioGUISceneTest\CustomWidget</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.h">
|
||||
<Filter>Classes\UITest\CocostudioGUISceneTest</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -260,6 +260,7 @@
|
|||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest_Editor.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIRichTextTest\UIRichTextTest.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIScene.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UISceneManager.cpp" />
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UISceneManager_Editor.cpp" />
|
||||
|
@ -460,6 +461,7 @@
|
|||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIPageViewTest\UIPageViewTest_Editor.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIRichTextTest\UIRichTextTest.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIScene.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UISceneManager.h" />
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UISceneManager_Editor.h" />
|
||||
|
|
|
@ -855,6 +855,9 @@
|
|||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\CocostudioParserTest.cpp">
|
||||
<Filter>Classes\UITest\CocosStudioGUITest</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.cpp">
|
||||
<Filter>Classes\UITest\CocosStudioGUITest</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\Classes\AppDelegate.h">
|
||||
|
@ -1584,6 +1587,9 @@
|
|||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\CocostudioParserTest.h">
|
||||
<Filter>Classes\UITest\CocosStudioGUITest</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\Classes\UITest\CocoStudioGUITest\UIScale9SpriteTest.h">
|
||||
<Filter>Classes\UITest\CocosStudioGUITest</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\..\external\curl\prebuilt\wp8\arm\libcurl.dll" />
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
.idea/*
|
||||
build/*
|
||||
prebuilt*
|
||||
cocos2d-x/*
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
# Generate prebuilt engine
|
||||
|
||||
## Purpose
|
||||
|
||||
The tools in `gen-prebuilt` are used for generating prebuilt engine.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Generate prebuilt libs
|
||||
* First, build libs for `Mac, iOS & android`: Run `python gen_prebuilt_libs.py` on Mac.
|
||||
* Second, build libs for `Windows`: Run `python gen_prebuilt_libs.py -n` on Windows.
|
||||
2. Organize the prebuilt libs with modules
|
||||
Run command `python module_organize.py` on Windows or Mac.
|
||||
|
||||
## Script Details
|
||||
|
||||
1. gen_prebuilt_libs.py
|
||||
|
||||
```
|
||||
Usage: gen_prebuilt_libs.py [options]
|
||||
|
||||
Options:
|
||||
-c Remove the "prebuilt" directory first.
|
||||
-n, --no-android Not build android libs.
|
||||
-s, --strip Enable strip when generating iOS, Mac & Android libs.
|
||||
-i, --incredibuild Use incredibuild to build win32 projects. Only available on windows.
|
||||
```
|
||||
|
||||
The result of the script is : A folder named `prebuilt` which contains prebuilt libs will generated.
|
||||
|
||||
2. module_organize.py
|
||||
|
||||
```
|
||||
Usage: module_organize.py [options]
|
||||
|
||||
Options:
|
||||
-d, --dst-root Specify a path where to place the engine organized by modules. Default value is the same path with `module_organize.py`.
|
||||
```
|
||||
|
||||
The result of the script is : A folder named `cocos2d-x` will generated in the `dst-root`.
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"xcode_proj_info" : {
|
||||
"build/cocos2d_libs.xcodeproj" : {
|
||||
"outputdir" : "prebuilt",
|
||||
"targets" :[ "build all libs" ]
|
||||
}
|
||||
},
|
||||
"win32_proj_info" : {
|
||||
"build/cocos2d-win32.vc2012.sln" : {
|
||||
"outputdir" : "prebuilt/win32",
|
||||
"targets" : [
|
||||
"libcocosdenshion", "libbox2d", "libchipmunk",
|
||||
"libcocos2d", "libcocosbuilder", "libcocostudio",
|
||||
"libextension", "libui", "liblua",
|
||||
"libnetwork", "libspine"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
#!/usr/bin/python
|
||||
# ----------------------------------------------------------------------------
|
||||
# extend methods for copy files/dirs
|
||||
#
|
||||
# Copyright 2014 (C) zhangbin
|
||||
#
|
||||
# License: MIT
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
def copy_files_in_dir(src, dst):
|
||||
|
||||
for item in os.listdir(src):
|
||||
path = os.path.join(src, item)
|
||||
if os.path.isfile(path):
|
||||
shutil.copy(path, dst)
|
||||
if os.path.isdir(path):
|
||||
new_dst = os.path.join(dst, item)
|
||||
if not os.path.isdir(new_dst):
|
||||
os.makedirs(new_dst)
|
||||
copy_files_in_dir(path, new_dst)
|
||||
|
||||
def copy_files_with_config(config, src_root, dst_root):
|
||||
src_dir = config["from"]
|
||||
dst_dir = config["to"]
|
||||
|
||||
src_dir = os.path.join(src_root, src_dir)
|
||||
dst_dir = os.path.join(dst_root, dst_dir)
|
||||
|
||||
include_rules = None
|
||||
if config.has_key("include"):
|
||||
include_rules = config["include"]
|
||||
include_rules = convert_rules(include_rules)
|
||||
|
||||
exclude_rules = None
|
||||
if config.has_key("exclude"):
|
||||
exclude_rules = config["exclude"]
|
||||
exclude_rules = convert_rules(exclude_rules)
|
||||
|
||||
copy_files_with_rules(src_dir, src_dir, dst_dir, include_rules, exclude_rules)
|
||||
|
||||
def copy_files_with_rules(src_rootDir, src, dst, include = None, exclude = None):
|
||||
if os.path.isfile(src):
|
||||
if not os.path.exists(dst):
|
||||
os.makedirs(dst)
|
||||
shutil.copy(src, dst)
|
||||
return
|
||||
|
||||
if (include is None) and (exclude is None):
|
||||
if not os.path.exists(dst):
|
||||
os.makedirs(dst)
|
||||
copy_files_in_dir(src, dst)
|
||||
elif (include is not None):
|
||||
# have include
|
||||
for name in os.listdir(src):
|
||||
abs_path = os.path.join(src, name)
|
||||
rel_path = os.path.relpath(abs_path, src_rootDir)
|
||||
if os.path.isdir(abs_path):
|
||||
sub_dst = os.path.join(dst, name)
|
||||
copy_files_with_rules(src_rootDir, abs_path, sub_dst, include = include)
|
||||
elif os.path.isfile(abs_path):
|
||||
if _in_rules(rel_path, include):
|
||||
if not os.path.exists(dst):
|
||||
os.makedirs(dst)
|
||||
shutil.copy(abs_path, dst)
|
||||
elif (exclude is not None):
|
||||
# have exclude
|
||||
for name in os.listdir(src):
|
||||
abs_path = os.path.join(src, name)
|
||||
rel_path = os.path.relpath(abs_path, src_rootDir)
|
||||
if os.path.isdir(abs_path):
|
||||
sub_dst = os.path.join(dst, name)
|
||||
copy_files_with_rules(src_rootDir, abs_path, sub_dst, exclude = exclude)
|
||||
elif os.path.isfile(abs_path):
|
||||
if not _in_rules(rel_path, exclude):
|
||||
if not os.path.exists(dst):
|
||||
os.makedirs(dst)
|
||||
shutil.copy(abs_path, dst)
|
||||
|
||||
def _in_rules(rel_path, rules):
|
||||
import re
|
||||
ret = False
|
||||
path_str = rel_path.replace("\\", "/")
|
||||
for rule in rules:
|
||||
if re.match(rule, path_str):
|
||||
ret = True
|
||||
|
||||
return ret
|
||||
|
||||
def convert_rules(rules):
|
||||
ret_rules = []
|
||||
for rule in rules:
|
||||
ret = rule.replace('.', '\\.')
|
||||
ret = ret.replace('*', '.*')
|
||||
ret = "%s" % ret
|
||||
ret_rules.append(ret)
|
||||
|
||||
return ret_rules
|
|
@ -0,0 +1,361 @@
|
|||
#!/usr/bin/python
|
||||
# ----------------------------------------------------------------------------
|
||||
# generate the prebuilt libs of engine
|
||||
#
|
||||
# Copyright 2014 (C) zhangbin
|
||||
#
|
||||
# License: MIT
|
||||
# ----------------------------------------------------------------------------
|
||||
'''
|
||||
Generate the prebuilt libs of engine
|
||||
'''
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import shutil
|
||||
import sys
|
||||
import excopy
|
||||
import json
|
||||
|
||||
from argparse import ArgumentParser
|
||||
|
||||
if sys.platform == 'win32':
|
||||
import _winreg
|
||||
|
||||
ANDROID_SO_PATH = "frameworks/runtime-src/proj.android/libs"
|
||||
ANDROID_A_PATH = "frameworks/runtime-src/proj.android/obj/local"
|
||||
MK_PATH = "frameworks/runtime-src/proj.android/jni/Application.mk"
|
||||
CONSOLE_PATH = "tools/cocos2d-console/bin"
|
||||
|
||||
def os_is_win32():
|
||||
return sys.platform == 'win32'
|
||||
|
||||
def os_is_mac():
|
||||
return sys.platform == 'darwin'
|
||||
|
||||
def run_shell(cmd, cwd=None):
|
||||
p = subprocess.Popen(cmd, shell=True, cwd=cwd)
|
||||
p.wait()
|
||||
|
||||
if p.returncode:
|
||||
raise subprocess.CalledProcessError(returncode=p.returncode, cmd=cmd)
|
||||
|
||||
return p.returncode
|
||||
|
||||
class Generator(object):
|
||||
|
||||
XCODE_CMD_FMT = "xcodebuild -project \"%s\" -configuration Release -target \"%s\" %s CONFIGURATION_BUILD_DIR=%s"
|
||||
|
||||
CONFIG_FILE = "build_config.json"
|
||||
KEY_XCODE_PROJ_INFO = "xcode_proj_info"
|
||||
KEY_WIN32_PROJ_INFO = "win32_proj_info"
|
||||
|
||||
KEY_OUTPUT_DIR = "outputdir"
|
||||
KEY_TARGETS = "targets"
|
||||
|
||||
def __init__(self, args):
|
||||
self.need_clean = args.need_clean
|
||||
self.enable_strip = args.enable_strip
|
||||
self.use_incredibuild = args.use_incredibuild
|
||||
self.tool_dir = os.path.realpath(os.path.dirname(__file__))
|
||||
self.no_android = args.no_android
|
||||
|
||||
self.engine_dir = os.path.join(self.tool_dir, os.path.pardir, os.path.pardir)
|
||||
|
||||
self.load_config()
|
||||
|
||||
def load_config(self):
|
||||
cfg_json = os.path.join(self.tool_dir, Generator.CONFIG_FILE)
|
||||
f = open(cfg_json)
|
||||
cfg_info = json.load(f)
|
||||
f.close()
|
||||
|
||||
self.xcode_proj_info = cfg_info[Generator.KEY_XCODE_PROJ_INFO]
|
||||
self.win32_proj_info = cfg_info[Generator.KEY_WIN32_PROJ_INFO]
|
||||
|
||||
def modify_mk(self, mk_file):
|
||||
if os.path.isfile(mk_file):
|
||||
file_obj = open(mk_file, "a")
|
||||
file_obj.write("\nAPP_ABI :=armeabi armeabi-v7a\n")
|
||||
file_obj.close()
|
||||
|
||||
def build_android(self):
|
||||
# build .so for android
|
||||
language = "lua"
|
||||
|
||||
console_dir = os.path.join(self.engine_dir, CONSOLE_PATH)
|
||||
cmd_path = os.path.join(console_dir, "cocos")
|
||||
proj_name = "My%sGame" % language
|
||||
proj_path = os.path.join(self.engine_dir, proj_name)
|
||||
if os.path.exists(proj_path):
|
||||
shutil.rmtree(proj_path)
|
||||
|
||||
# create a runtime project
|
||||
create_cmd = "%s new -l %s -t runtime -d %s %s" % (cmd_path, language, self.engine_dir, proj_name)
|
||||
run_shell(create_cmd)
|
||||
|
||||
# Add multi ABI in Application.mk
|
||||
mk_file = os.path.join(proj_path, MK_PATH)
|
||||
self.modify_mk(mk_file)
|
||||
|
||||
# build it
|
||||
build_cmd = "%s compile -s %s -p android --ndk-mode release -j 4" % (cmd_path, proj_path)
|
||||
run_shell(build_cmd)
|
||||
|
||||
# copy .a to prebuilt dir
|
||||
obj_dir = os.path.join(proj_path, ANDROID_A_PATH)
|
||||
prebuilt_dir = os.path.join(self.tool_dir, "prebuilt", "android")
|
||||
copy_cfg = {
|
||||
"from": obj_dir,
|
||||
"to": prebuilt_dir,
|
||||
"include": [
|
||||
"*.a$"
|
||||
]
|
||||
}
|
||||
excopy.copy_files_with_config(copy_cfg, obj_dir, prebuilt_dir)
|
||||
|
||||
if self.enable_strip:
|
||||
# strip the android libs
|
||||
ndk_root = os.environ["NDK_ROOT"]
|
||||
if os_is_win32():
|
||||
if self.is_32bit_windows():
|
||||
bit_str = "x86"
|
||||
else:
|
||||
bit_str = "x86_64"
|
||||
|
||||
sys_folder_name = "windows-%s" % bit_str
|
||||
elif os_is_mac():
|
||||
sys_folder_name = "darwin-x86_64"
|
||||
|
||||
strip_cmd_path = os.path.join(ndk_root, "toolchains/arm-linux-androideabi-4.8/prebuilt/%s/arm-linux-androideabi/bin/strip" % sys_folder_name)
|
||||
if os.path.exists(strip_cmd_path):
|
||||
strip_cmd = "%s -S %s/armeabi*/*.a" % (strip_cmd_path, prebuilt_dir)
|
||||
run_shell(strip_cmd)
|
||||
|
||||
# remove the project
|
||||
shutil.rmtree(proj_path)
|
||||
|
||||
def get_required_vs_version(self, proj_file):
|
||||
# get the VS version required by the project
|
||||
import re
|
||||
file_obj = open(proj_file)
|
||||
pattern = re.compile(r"^# Visual Studio.+(\d{4})")
|
||||
num = None
|
||||
for line in file_obj:
|
||||
match = pattern.match(line)
|
||||
if match is not None:
|
||||
num = match.group(1)
|
||||
break
|
||||
|
||||
if num is not None:
|
||||
if num == "2012":
|
||||
ret = "11.0"
|
||||
elif num == "2013":
|
||||
ret = "12.0"
|
||||
else:
|
||||
ret = None
|
||||
else:
|
||||
ret = None
|
||||
|
||||
return ret
|
||||
|
||||
def get_vs_cmd_path(self, require_version):
|
||||
# find the VS in register, if system is 64bit, should find vs in both 32bit & 64bit register
|
||||
if self.is_32bit_windows():
|
||||
reg_flag_list = [ _winreg.KEY_WOW64_32KEY ]
|
||||
else:
|
||||
reg_flag_list = [ _winreg.KEY_WOW64_64KEY, _winreg.KEY_WOW64_32KEY ]
|
||||
|
||||
needUpgrade = False
|
||||
vsPath = None
|
||||
|
||||
try:
|
||||
for reg_flag in reg_flag_list:
|
||||
print("find vs in reg : %s" % ("32bit" if reg_flag == _winreg.KEY_WOW64_32KEY else "64bit"))
|
||||
vs = _winreg.OpenKey(
|
||||
_winreg.HKEY_LOCAL_MACHINE,
|
||||
r"SOFTWARE\Microsoft\VisualStudio",
|
||||
0,
|
||||
_winreg.KEY_READ | reg_flag
|
||||
)
|
||||
|
||||
try:
|
||||
i = 0
|
||||
while True:
|
||||
try:
|
||||
# enum the keys in vs reg
|
||||
version = _winreg.EnumKey(vs, i)
|
||||
find_ver = float(version)
|
||||
|
||||
# find the vs which version >= required version
|
||||
if find_ver >= float(require_version):
|
||||
key = _winreg.OpenKey(vs, r"SxS\VS7")
|
||||
vsPath, type = _winreg.QueryValueEx(key, version)
|
||||
|
||||
if os.path.exists(vsPath):
|
||||
if float(version) > float(require_version):
|
||||
needUpgrade = True
|
||||
break
|
||||
else:
|
||||
vsPath = None
|
||||
except:
|
||||
continue
|
||||
finally:
|
||||
i += 1
|
||||
except:
|
||||
pass
|
||||
|
||||
# if find one right vs, break
|
||||
if vsPath is not None:
|
||||
break
|
||||
except WindowsError as e:
|
||||
message = "Visual Studio wasn't installed"
|
||||
print(e)
|
||||
raise Exception(message)
|
||||
|
||||
commandPath = os.path.join(vsPath, "Common7", "IDE", "devenv")
|
||||
return (needUpgrade, commandPath)
|
||||
|
||||
def is_32bit_windows(self):
|
||||
arch = os.environ['PROCESSOR_ARCHITECTURE'].lower()
|
||||
archw = os.environ.has_key("PROCESSOR_ARCHITEW6432")
|
||||
return (arch == "x86" and not archw)
|
||||
|
||||
def build_win32_proj(self, cmd_path, sln_path, proj_name, mode):
|
||||
build_cmd = " ".join([
|
||||
"\"%s\"" % cmd_path,
|
||||
"\"%s\"" % sln_path,
|
||||
"/%s \"Release|Win32\"" % mode,
|
||||
"/Project \"%s\"" % proj_name
|
||||
])
|
||||
run_shell(build_cmd)
|
||||
|
||||
def build_win32(self):
|
||||
print("Building Win32")
|
||||
|
||||
for key in self.win32_proj_info.keys():
|
||||
output_dir = self.win32_proj_info[key][Generator.KEY_OUTPUT_DIR]
|
||||
proj_path = os.path.join(self.engine_dir, key)
|
||||
require_vs_version = self.get_required_vs_version(proj_path)
|
||||
needUpgrade, vs_command = self.get_vs_cmd_path(require_vs_version)
|
||||
|
||||
# get the build folder & win32 output folder
|
||||
build_folder_path = os.path.join(os.path.dirname(proj_path), "Release.win32")
|
||||
if os.path.exists(build_folder_path):
|
||||
shutil.rmtree(build_folder_path)
|
||||
os.makedirs(build_folder_path)
|
||||
|
||||
win32_output_dir = os.path.join(self.tool_dir, output_dir)
|
||||
if os.path.exists(win32_output_dir):
|
||||
shutil.rmtree(win32_output_dir)
|
||||
os.makedirs(win32_output_dir)
|
||||
|
||||
# upgrade projects
|
||||
if needUpgrade:
|
||||
commandUpgrade = ' '.join([
|
||||
"\"%s\"" % vs_command,
|
||||
"\"%s\"" % proj_path,
|
||||
"/Upgrade"
|
||||
])
|
||||
run_shell(commandUpgrade)
|
||||
|
||||
if self.use_incredibuild:
|
||||
# use incredibuild, build whole sln
|
||||
build_cmd = " ".join([
|
||||
"BuildConsole",
|
||||
"%s" % proj_path,
|
||||
"/build",
|
||||
"/cfg=\"Release|Win32\""
|
||||
])
|
||||
run_shell(build_cmd)
|
||||
|
||||
if not self.use_incredibuild:
|
||||
# build the projects
|
||||
for proj_name in self.win32_proj_info[key][Generator.KEY_TARGETS]:
|
||||
self.build_win32_proj(vs_command, proj_path, proj_name, "build")
|
||||
|
||||
lib_file_path = os.path.join(build_folder_path, "%s.lib" % proj_name)
|
||||
if not os.path.exists(lib_file_path):
|
||||
# if the lib is not generated, rebuild the project
|
||||
self.build_win32_proj(vs_command, proj_path, proj_name, "rebuild")
|
||||
|
||||
if not os.path.exists(lib_file_path):
|
||||
raise Exception("Library %s not generated as expected!" % lib_file_path)
|
||||
|
||||
# copy the libs into prebuilt dir
|
||||
for file_name in os.listdir(build_folder_path):
|
||||
file_path = os.path.join(build_folder_path, file_name)
|
||||
shutil.copy(file_path, win32_output_dir)
|
||||
|
||||
print("Win32 build succeeded.")
|
||||
|
||||
def build_ios_mac(self):
|
||||
for key in self.xcode_proj_info.keys():
|
||||
output_dir = self.xcode_proj_info[key][Generator.KEY_OUTPUT_DIR]
|
||||
proj_path = os.path.join(self.engine_dir, key)
|
||||
ios_out_dir = os.path.join(self.tool_dir, output_dir, "ios")
|
||||
mac_out_dir = os.path.join(self.tool_dir, output_dir, "mac")
|
||||
|
||||
ios_sim_libs_dir = os.path.join(ios_out_dir, "simulator")
|
||||
ios_dev_libs_dir = os.path.join(ios_out_dir, "device")
|
||||
for target in self.xcode_proj_info[key][Generator.KEY_TARGETS]:
|
||||
build_cmd = Generator.XCODE_CMD_FMT % (proj_path, "%s iOS" % target, "-sdk iphonesimulator", ios_sim_libs_dir)
|
||||
run_shell(build_cmd, self.tool_dir)
|
||||
|
||||
build_cmd = Generator.XCODE_CMD_FMT % (proj_path, "%s iOS" % target, "-sdk iphoneos", ios_dev_libs_dir)
|
||||
run_shell(build_cmd, self.tool_dir)
|
||||
|
||||
build_cmd = Generator.XCODE_CMD_FMT % (proj_path, "%s Mac" % target, "", mac_out_dir)
|
||||
run_shell(build_cmd, self.tool_dir)
|
||||
|
||||
# generate fat libs for iOS
|
||||
for lib in os.listdir(ios_sim_libs_dir):
|
||||
sim_lib = os.path.join(ios_sim_libs_dir, lib)
|
||||
dev_lib = os.path.join(ios_dev_libs_dir, lib)
|
||||
output_lib = os.path.join(ios_out_dir, lib)
|
||||
lipo_cmd = "lipo -create -output \"%s\" \"%s\" \"%s\"" % (output_lib, sim_lib, dev_lib)
|
||||
|
||||
run_shell(lipo_cmd)
|
||||
|
||||
# remove the simulator & device libs in iOS
|
||||
shutil.rmtree(ios_sim_libs_dir)
|
||||
shutil.rmtree(ios_dev_libs_dir)
|
||||
|
||||
if self.enable_strip:
|
||||
# strip the libs
|
||||
ios_strip_cmd = "xcrun -sdk iphoneos strip -S %s/*.a" % ios_out_dir
|
||||
run_shell(ios_strip_cmd)
|
||||
mac_strip_cmd = "xcrun strip -S %s/*.a" % mac_out_dir
|
||||
run_shell(mac_strip_cmd)
|
||||
|
||||
def build_all_libs(self):
|
||||
if os_is_mac():
|
||||
# build for iOS & Mac
|
||||
self.build_ios_mac()
|
||||
|
||||
if os_is_win32():
|
||||
# build for win32
|
||||
self.build_win32()
|
||||
|
||||
if not self.no_android:
|
||||
self.build_android()
|
||||
|
||||
def do_generate(self):
|
||||
output_dir = os.path.join(self.tool_dir, "prebuilt")
|
||||
if self.need_clean and os.path.exists(output_dir):
|
||||
shutil.rmtree(output_dir)
|
||||
self.build_all_libs()
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = ArgumentParser(description="Generate prebuilt engine for Cocos Engine.")
|
||||
parser.add_argument('-c', dest='need_clean', action="store_true", help='Remove the \"prebuilt\" directory first.')
|
||||
parser.add_argument('-n', "--no-android", dest='no_android', action="store_true", help='Not build android libs.')
|
||||
parser.add_argument('-s', "--strip", dest='enable_strip', action="store_true", help='Strip the generated libs.')
|
||||
parser.add_argument('-i', "--incredibuild", dest='use_incredibuild', action="store_true", help='Use incredibuild to build win32 projects. Only available on windows.')
|
||||
(args, unknown) = parser.parse_known_args()
|
||||
|
||||
if len(unknown) > 0:
|
||||
print("unknown arguments: %s" % unknown)
|
||||
|
||||
gen_obj = Generator(args)
|
||||
gen_obj.do_generate()
|
|
@ -0,0 +1,329 @@
|
|||
{
|
||||
"cocos2d" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "cocos",
|
||||
"win32_lib_file_name" : "libcocos2d",
|
||||
"ios_lib_file_name" : "libcocos2d iOS.a",
|
||||
"mac_lib_file_name" : "libcocos2d Mac.a",
|
||||
"android_lib_name" : "cocos2dx_static",
|
||||
"android_lib_file_name" : "libcocos2d",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos",
|
||||
"to": "cocos/include",
|
||||
"include" : [
|
||||
"2d/*.h", "3d/*.h", "3d/*.inl", "base/*.h",
|
||||
"deprecated/*.h", "math/*.h", "math/*.inl",
|
||||
"physics/*.h", "platform/*.h", "renderer/*.h",
|
||||
"storage/*.h", "cocos2d.h", "2d/*.props"
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": "cocos/platform/android/java",
|
||||
"to": "cocos/include/platform/android/java"
|
||||
},
|
||||
{
|
||||
"from": "external",
|
||||
"to": "external",
|
||||
"include": [
|
||||
"tinyxml2/*.h",
|
||||
"unzip/*.h",
|
||||
"xxhash/*.h",
|
||||
"json/*.h",
|
||||
"win32-specific/*"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include",
|
||||
"../../../modules",
|
||||
"../../../external/tinyxml2",
|
||||
"../../../external/unzip",
|
||||
"../../../external/chipmunk/include/chipmunk",
|
||||
"../../../external/edtaa3func",
|
||||
"../../../external/xxhash",
|
||||
"../../../external/ConvertUTF",
|
||||
"../../../external"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"chipmunk", "freetype", "jpeg",
|
||||
"png", "webp", "tiff",
|
||||
"cocos_android", "curl", "websockets"
|
||||
],
|
||||
"export_ldlibs" : [
|
||||
"GLESv2", "log", "z", "android"
|
||||
],
|
||||
"export_cflags" : [
|
||||
"-Wno-psabi", "-DUSE_FILE32API"
|
||||
],
|
||||
"export_cppflags" : [
|
||||
"-Wno-literal-suffix", "-Wno-deprecated-declarations"
|
||||
]
|
||||
},
|
||||
"freetype" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/freetype2",
|
||||
"target_dir" : "external/freetype2",
|
||||
"android_lib_name" : "cocos_freetype2_static"
|
||||
},
|
||||
"jpeg" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/jpeg",
|
||||
"target_dir" : "external/jpeg",
|
||||
"android_lib_name" : "cocos_jpeg_static"
|
||||
},
|
||||
"png" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/png",
|
||||
"target_dir" : "external/png",
|
||||
"android_lib_name" : "cocos_png_static"
|
||||
},
|
||||
"webp" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/webp",
|
||||
"target_dir" : "external/webp",
|
||||
"android_lib_name" : "cocos_webp_static"
|
||||
},
|
||||
"tiff" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/tiff",
|
||||
"target_dir" : "external/tiff",
|
||||
"android_lib_name" : "cocos_tiff_static"
|
||||
},
|
||||
"curl" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/curl",
|
||||
"target_dir" : "external/curl",
|
||||
"android_lib_name" : "cocos_curl_static"
|
||||
},
|
||||
"websockets" : {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/websockets",
|
||||
"target_dir" : "external/websockets",
|
||||
"android_lib_name" : "websockets_static"
|
||||
},
|
||||
"glfw3": {
|
||||
"module_type" : "prebuilt",
|
||||
"from_dir" : "external/glfw3",
|
||||
"target_dir" : "external/glfw3"
|
||||
},
|
||||
"cocos_android" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "cocos/include/platform/android",
|
||||
"android_lib_name" : "cocos2dxandroid_static",
|
||||
"android_lib_file_name" : "libcocos2dandroid",
|
||||
"export_include" : [
|
||||
"../../"
|
||||
],
|
||||
"export_ldlibs" : [
|
||||
"GLESv1_CM", "GLESv2", "EGL", "log", "z", "android"
|
||||
]
|
||||
},
|
||||
"chipmunk" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/chipmunk",
|
||||
"win32_lib_file_name" : "libchipmunk",
|
||||
"ios_lib_file_name" : "libchipmunk iOS.a",
|
||||
"mac_lib_file_name" : "libchipmunk Mac.a",
|
||||
"android_lib_name" : "chipmunk_static",
|
||||
"android_lib_file_name" : "libchipmunk",
|
||||
"include" : [
|
||||
{
|
||||
"from": "external/chipmunk",
|
||||
"to": "modules/chipmunk",
|
||||
"include" : [
|
||||
"include/*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include/chipmunk"
|
||||
]
|
||||
},
|
||||
"box2d" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/Box2D",
|
||||
"win32_lib_file_name" : "libbox2d",
|
||||
"ios_lib_file_name" : "libbox2d iOS.a",
|
||||
"mac_lib_file_name" : "libbox2d Mac.a",
|
||||
"android_lib_name" : "box2d_static",
|
||||
"android_lib_file_name" : "libbox2d",
|
||||
"include" : [
|
||||
{
|
||||
"from": "external/Box2D",
|
||||
"to": "modules/Box2D/include/Box2D",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
]
|
||||
},
|
||||
"audio" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/audio",
|
||||
"win32_lib_file_name" : "libcocosdenshion",
|
||||
"ios_lib_file_name" : "libcocosdenshion iOS.a",
|
||||
"mac_lib_file_name" : "libcocosdenshion Mac.a",
|
||||
"android_lib_name" : "cocosdenshion_static",
|
||||
"android_lib_file_name" : "libcocosdenshion",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/audio",
|
||||
"to": "modules/audio",
|
||||
"include" : [
|
||||
"include/*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
]
|
||||
},
|
||||
"network" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/network",
|
||||
"win32_lib_file_name" : "libnetwork",
|
||||
"ios_lib_file_name" : "libnetwork iOS.a",
|
||||
"mac_lib_file_name" : "libnetwork Mac.a",
|
||||
"android_lib_name" : "cocos_network_static",
|
||||
"android_lib_file_name" : "libnetwork",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/network",
|
||||
"to": "modules/network/include/network",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"cocos2d", "curl", "websockets"
|
||||
]
|
||||
},
|
||||
"ui" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/ui",
|
||||
"win32_lib_file_name" : "libui",
|
||||
"ios_lib_file_name" : "libui iOS.a",
|
||||
"mac_lib_file_name" : "libui Mac.a",
|
||||
"android_lib_name" : "cocos_ui_static",
|
||||
"android_lib_file_name" : "libui",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/ui",
|
||||
"to": "modules/ui/include/ui",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"cocos2d", "extensions"
|
||||
]
|
||||
},
|
||||
"extensions" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/extensions",
|
||||
"win32_lib_file_name" : "libextension",
|
||||
"ios_lib_file_name" : "libextension iOS.a",
|
||||
"mac_lib_file_name" : "libextension Mac.a",
|
||||
"android_lib_name" : "cocos_extension_static",
|
||||
"android_lib_file_name" : "libextension",
|
||||
"include" : [
|
||||
{
|
||||
"from": "extensions",
|
||||
"to": "modules/extensions/include/extensions",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"cocos2d", "curl", "box2d"
|
||||
]
|
||||
},
|
||||
"cocostudio" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/cocostudio",
|
||||
"win32_lib_file_name" : "libcocostudio",
|
||||
"ios_lib_file_name" : "libcocostudio iOS.a",
|
||||
"mac_lib_file_name" : "libcocostudio Mac.a",
|
||||
"android_lib_name" : "cocostudio_static",
|
||||
"android_lib_file_name" : "libcocostudio",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/editor-support/cocostudio",
|
||||
"to": "modules/cocostudio/include/cocostudio",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"ui", "audio"
|
||||
]
|
||||
},
|
||||
"spine" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/spine",
|
||||
"win32_lib_file_name" : "libspine",
|
||||
"ios_lib_file_name" : "libspine iOS.a",
|
||||
"mac_lib_file_name" : "libspine Mac.a",
|
||||
"android_lib_name" : "spine_static",
|
||||
"android_lib_file_name" : "libspine",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/editor-support/spine",
|
||||
"to": "modules/spine/include/spine",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"cocos2d"
|
||||
]
|
||||
},
|
||||
"cocosbuilder" : {
|
||||
"module_type" : "compiled",
|
||||
"target_dir" : "modules/cocosbuilder",
|
||||
"win32_lib_file_name" : "libcocosbuilder",
|
||||
"ios_lib_file_name" : "libcocosbuilder iOS.a",
|
||||
"mac_lib_file_name" : "libcocosbuilder Mac.a",
|
||||
"android_lib_name" : "cocosbuilder_static",
|
||||
"android_lib_file_name" : "libcocosbuilder",
|
||||
"include" : [
|
||||
{
|
||||
"from": "cocos/editor-support/cocosbuilder",
|
||||
"to": "modules/cocosbuilder/include/cocosbuilder",
|
||||
"include" : [
|
||||
"*.h"
|
||||
]
|
||||
}
|
||||
],
|
||||
"export_include" : [
|
||||
"../../include"
|
||||
],
|
||||
"depend_modules" : [
|
||||
"extensions"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,239 @@
|
|||
import os
|
||||
import shutil
|
||||
import json
|
||||
import excopy
|
||||
|
||||
from argparse import ArgumentParser
|
||||
|
||||
class ModuleOrganizer(object):
|
||||
|
||||
CFG_FILE = "module_config.json"
|
||||
|
||||
KEY_MODULE_TYPE = "module_type"
|
||||
MODULE_TYPE_COMPILED = "compiled"
|
||||
MODULE_TYPE_PREBUILT = "prebuilt"
|
||||
|
||||
KEY_MODULE_FROM_DIR = "from_dir"
|
||||
KEY_MODULE_TARGET_DIR = "target_dir"
|
||||
KEY_MODULE_INCLUDE = "include"
|
||||
KEY_MODULE_ANDROID_LIB_NAME = "android_lib_name"
|
||||
KEY_MODULE_ANDROID_LIB_FILE_NAME = "android_lib_file_name"
|
||||
KEY_MODULE_EXPORT_INCLUDE = "export_include"
|
||||
KEY_MODULE_DEPEND_MODULES = "depend_modules"
|
||||
KEY_MODULE_EXPORT_LDLIBS = "export_ldlibs"
|
||||
KEY_MODULE_EXPORT_CFLAGS = "export_cflags"
|
||||
KEY_MODULE_EXPORT_CPPFLAGS = "export_cppflags"
|
||||
KEY_MODULE_WIN32_LIB_FILE_NAME = "win32_lib_file_name"
|
||||
KEY_MODULE_IOS_LIB_FILE_NAME = "ios_lib_file_name"
|
||||
KEY_MODULE_MAC_LIB_FILE_NAME = "mac_lib_file_name"
|
||||
|
||||
# Parameter 5--9 means:
|
||||
# 5. LOCAL_EXPORT_LDLIBS
|
||||
# 6. LOCAL_EXPORT_CFLAGS
|
||||
# 7. LOCAL_EXPORT_CPPFLAGS
|
||||
# 8. LOCAL_WHOLE_STATIC_LIBRARIES
|
||||
# 9. $(call import-module, xxx)
|
||||
MK_FORMAT = "LOCAL_PATH := $(call my-dir)\n\n" \
|
||||
"include $(CLEAR_VARS)\n\n" \
|
||||
"LOCAL_MODULE := %s\n" \
|
||||
"LOCAL_MODULE_FILENAME := %s\n\n" \
|
||||
"LOCAL_SRC_FILES := %s\n\n" \
|
||||
"LOCAL_EXPORT_C_INCLUDES := %s\n\n" \
|
||||
"%s" \
|
||||
"%s" \
|
||||
"%s" \
|
||||
"%s" \
|
||||
"include $(PREBUILT_STATIC_LIBRARY)\n\n" \
|
||||
"%s\n"
|
||||
|
||||
def __init__(self, dst_root):
|
||||
self.local_path = os.path.realpath(os.path.dirname(__file__))
|
||||
self.modules_info = self._parse_modules()
|
||||
|
||||
self.src_root = os.path.join(self.local_path, os.path.pardir, os.path.pardir)
|
||||
self.prebuilt_dir = os.path.join(self.local_path, "prebuilt")
|
||||
|
||||
if dst_root is None:
|
||||
dst = self.local_path
|
||||
else:
|
||||
if os.path.isabs(dst_root):
|
||||
dst = dst_root
|
||||
else:
|
||||
dst = os.path.abspath(dst_root)
|
||||
self.dst_root = os.path.join(dst, "cocos2d-x")
|
||||
|
||||
def _parse_modules(self):
|
||||
cfg_path = os.path.join(self.local_path, ModuleOrganizer.CFG_FILE)
|
||||
f = open(cfg_path)
|
||||
cfg_info = json.load(f)
|
||||
f.close()
|
||||
|
||||
return cfg_info
|
||||
|
||||
def gen_android_depend_str(self, depends):
|
||||
whole_libs_str = ""
|
||||
call_import_str = ""
|
||||
i = 0
|
||||
for module in depends:
|
||||
depend_info = self.modules_info[module]
|
||||
if i == 0:
|
||||
flag = ":"
|
||||
else:
|
||||
flag = "+"
|
||||
whole_libs_str += ("LOCAL_WHOLE_STATIC_LIBRARIES %s= %s\n" % (flag, depend_info[ModuleOrganizer.KEY_MODULE_ANDROID_LIB_NAME]))
|
||||
call_import_str += ("$(call import-module,%s/prebuilt/android)\n" % depend_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR])
|
||||
i += 1
|
||||
|
||||
whole_libs_str += "\n"
|
||||
return (whole_libs_str, call_import_str)
|
||||
|
||||
def handle_for_android(self, module_info):
|
||||
# copy libs file
|
||||
android_lib_file_name = module_info[ModuleOrganizer.KEY_MODULE_ANDROID_LIB_FILE_NAME]
|
||||
copy_android_lib_cfg = {}
|
||||
copy_android_lib_cfg["from"] = "android"
|
||||
copy_android_lib_cfg["to"] = "%s/prebuilt/android" % module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR]
|
||||
copy_android_lib_cfg["include"] = [
|
||||
"*/%s.a" % android_lib_file_name
|
||||
]
|
||||
excopy.copy_files_with_config(copy_android_lib_cfg, self.prebuilt_dir, self.dst_root)
|
||||
|
||||
# generate the prebuilt Android.mk for the module
|
||||
android_lib_name = module_info[ModuleOrganizer.KEY_MODULE_ANDROID_LIB_NAME]
|
||||
local_src_file = "./$(TARGET_ARCH_ABI)/%s.a" % android_lib_file_name
|
||||
export_include_paths = []
|
||||
for include_path in module_info[ModuleOrganizer.KEY_MODULE_EXPORT_INCLUDE]:
|
||||
temp_path = "${LOCAL_PATH}/%s" % include_path
|
||||
export_include_paths.append(temp_path)
|
||||
export_include_str = " \\\n".join(export_include_paths)
|
||||
|
||||
export_ldlibs_str = ""
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_EXPORT_LDLIBS):
|
||||
export_ldlibs_str = "LOCAL_EXPORT_LDLIBS := "
|
||||
for ldlib in module_info[ModuleOrganizer.KEY_MODULE_EXPORT_LDLIBS]:
|
||||
export_ldlibs_str += ("-l%s " % ldlib)
|
||||
export_ldlibs_str += "\n\n"
|
||||
|
||||
export_cflags_str = ""
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_EXPORT_CFLAGS):
|
||||
export_cflags_str = "LOCAL_EXPORT_CFLAGS := "
|
||||
export_cflags_str += " ".join(module_info[ModuleOrganizer.KEY_MODULE_EXPORT_CFLAGS])
|
||||
export_cflags_str += "\n\n"
|
||||
|
||||
export_cppflags_str = ""
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_EXPORT_CPPFLAGS):
|
||||
export_cppflags_str = "LOCAL_EXPORT_CPPFLAGS := "
|
||||
export_cppflags_str += " ".join(module_info[ModuleOrganizer.KEY_MODULE_EXPORT_CPPFLAGS])
|
||||
export_cppflags_str += "\n\n"
|
||||
|
||||
whole_libs = ""
|
||||
call_libs = ""
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_DEPEND_MODULES):
|
||||
whole_libs, call_libs = self.gen_android_depend_str(module_info[ModuleOrganizer.KEY_MODULE_DEPEND_MODULES])
|
||||
|
||||
mk_content = ModuleOrganizer.MK_FORMAT % \
|
||||
(android_lib_name,
|
||||
android_lib_file_name,
|
||||
local_src_file,
|
||||
export_include_str,
|
||||
export_ldlibs_str,
|
||||
export_cflags_str,
|
||||
export_cppflags_str,
|
||||
whole_libs,
|
||||
call_libs
|
||||
)
|
||||
|
||||
mk_file_path = os.path.join(self.dst_root, module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR], "prebuilt/android/Android.mk")
|
||||
mk_dir = os.path.dirname(mk_file_path)
|
||||
if not os.path.exists(mk_dir):
|
||||
os.makedirs(mk_dir)
|
||||
mk_obj = open(mk_file_path, "w")
|
||||
mk_obj.write(mk_content)
|
||||
mk_obj.close()
|
||||
|
||||
def handle_for_win32(self, module_info):
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_WIN32_LIB_FILE_NAME):
|
||||
dst_dir = os.path.join(self.dst_root, module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR], "prebuilt", "win32")
|
||||
src_lib_file = os.path.join(self.prebuilt_dir, "win32", "%s.lib" % module_info[ModuleOrganizer.KEY_MODULE_WIN32_LIB_FILE_NAME])
|
||||
src_dll_file = os.path.join(self.prebuilt_dir, "win32", "%s.dll" % module_info[ModuleOrganizer.KEY_MODULE_WIN32_LIB_FILE_NAME])
|
||||
if not os.path.exists(dst_dir):
|
||||
os.makedirs(dst_dir)
|
||||
|
||||
if os.path.exists(src_lib_file):
|
||||
shutil.copy(src_lib_file, dst_dir)
|
||||
else:
|
||||
print("\t%s is not existed" % src_lib_file)
|
||||
|
||||
if os.path.exists(src_dll_file):
|
||||
shutil.copy(src_dll_file, dst_dir)
|
||||
|
||||
def handle_for_ios_mac(self, module_info):
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_IOS_LIB_FILE_NAME):
|
||||
dst_dir = os.path.join(self.dst_root, module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR], "prebuilt", "ios")
|
||||
src_lib_file = os.path.join(self.prebuilt_dir, "ios", module_info[ModuleOrganizer.KEY_MODULE_IOS_LIB_FILE_NAME])
|
||||
if not os.path.exists(dst_dir):
|
||||
os.makedirs(dst_dir)
|
||||
|
||||
if os.path.exists(src_lib_file):
|
||||
shutil.copy(src_lib_file, dst_dir)
|
||||
else:
|
||||
print("\t%s is not existed" % src_lib_file)
|
||||
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_MAC_LIB_FILE_NAME):
|
||||
dst_dir = os.path.join(self.dst_root, module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR], "prebuilt", "mac")
|
||||
src_lib_file = os.path.join(self.prebuilt_dir, "mac", module_info[ModuleOrganizer.KEY_MODULE_MAC_LIB_FILE_NAME])
|
||||
if not os.path.exists(dst_dir):
|
||||
os.makedirs(dst_dir)
|
||||
|
||||
if os.path.exists(src_lib_file):
|
||||
shutil.copy(src_lib_file, dst_dir)
|
||||
else:
|
||||
print("\t%s is not existed" % src_lib_file)
|
||||
|
||||
def gen_compiled_module(self, module_name):
|
||||
print("generate compiled module : %s" % module_name)
|
||||
module_info = self.modules_info[module_name]
|
||||
# copy the include files
|
||||
if module_info.has_key(ModuleOrganizer.KEY_MODULE_INCLUDE):
|
||||
for inclue_cfg in module_info[ModuleOrganizer.KEY_MODULE_INCLUDE]:
|
||||
excopy.copy_files_with_config(inclue_cfg, self.src_root, self.dst_root)
|
||||
|
||||
# handle the process for android
|
||||
self.handle_for_android(module_info)
|
||||
|
||||
# handle the process for win32
|
||||
self.handle_for_win32(module_info)
|
||||
|
||||
# handle the process for ios and mac
|
||||
self.handle_for_ios_mac(module_info)
|
||||
|
||||
def gen_prebuilt_module(self, module_name):
|
||||
print("generate prebuilt module : %s" % module_name)
|
||||
module_info = self.modules_info[module_name]
|
||||
copy_cfg = {
|
||||
"from" : module_info[ModuleOrganizer.KEY_MODULE_FROM_DIR],
|
||||
"to": module_info[ModuleOrganizer.KEY_MODULE_TARGET_DIR]
|
||||
}
|
||||
excopy.copy_files_with_config(copy_cfg, self.src_root, self.dst_root)
|
||||
|
||||
def gen_modules(self):
|
||||
if os.path.exists(self.dst_root):
|
||||
shutil.rmtree(self.dst_root)
|
||||
|
||||
for module in self.modules_info.keys():
|
||||
module_info = self.modules_info[module]
|
||||
if module_info[ModuleOrganizer.KEY_MODULE_TYPE] == ModuleOrganizer.MODULE_TYPE_COMPILED:
|
||||
self.gen_compiled_module(module)
|
||||
elif module_info[ModuleOrganizer.KEY_MODULE_TYPE] == ModuleOrganizer.MODULE_TYPE_PREBUILT:
|
||||
self.gen_prebuilt_module(module)
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = ArgumentParser(description="Organize the modules of engine from prebuilt engine.")
|
||||
parser.add_argument('-d', "--dst-root", dest='dst_root', help='The path where to place the engine organized by modules.')
|
||||
(args, unknown) = parser.parse_known_args()
|
||||
|
||||
if len(unknown) > 0:
|
||||
print("unknown arguments: %s" % unknown)
|
||||
|
||||
organizer = ModuleOrganizer(args.dst_root)
|
||||
organizer.gen_modules()
|
|
@ -132,7 +132,7 @@ def main():
|
|||
#reset path to workspace root
|
||||
os.system("cd " + os.environ['WORKSPACE']);
|
||||
#pull latest code
|
||||
os.system("git pull origin V3")
|
||||
os.system("git pull origin v3")
|
||||
os.system("git checkout v3")
|
||||
os.system("git branch -D pull" + str(pr_num))
|
||||
#clean workspace
|
||||
|
|
|
@ -22,7 +22,7 @@ cxxgenerator_headers =
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(cocosdir)s/cocos/cocos2d.h %(cocosdir)s/cocos/audio/include/SimpleAudioEngine.h %(cocosdir)s/cocos/ui/CCProtectedNode.h %(cocosdir)s/cocos/3d/CCAnimation3D.h %(cocosdir)s/cocos/3d/CCAnimate3D.h
|
||||
headers = %(cocosdir)s/cocos/cocos2d.h %(cocosdir)s/cocos/audio/include/SimpleAudioEngine.h %(cocosdir)s/cocos/2d/CCProtectedNode.h %(cocosdir)s/cocos/3d/CCAnimation3D.h %(cocosdir)s/cocos/3d/CCAnimate3D.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||
|
|
Loading…
Reference in New Issue