mirror of https://github.com/axmolengine/axmol.git
Merge branch 'v3_pipu' of https://github.com/pipu/cocos2d-x into v3_pipu
This commit is contained in:
commit
e7385cd634
|
@ -11,6 +11,7 @@ cocos2d-x-3.3-beta1
|
||||||
[NEW] WP8: enabled screen orientation change handling
|
[NEW] WP8: enabled screen orientation change handling
|
||||||
|
|
||||||
[FIX] Accelerometer: using Accelerometer will freeze app and then crash on WP8
|
[FIX] Accelerometer: using Accelerometer will freeze app and then crash on WP8
|
||||||
|
[FIX] Application: getCurrentLanguageCode() always return empty string
|
||||||
[FIX] Action: kRepeatForever macro superseded by CC_REPEAT_FOREVER macro
|
[FIX] Action: kRepeatForever macro superseded by CC_REPEAT_FOREVER macro
|
||||||
[FIX] C++: remove armv7s in VALID_ARCHS for Xcode projects
|
[FIX] C++: remove armv7s in VALID_ARCHS for Xcode projects
|
||||||
[FIX] Cocos Studio reader: UI animation playing crash if GUI JSON file is loaded again
|
[FIX] Cocos Studio reader: UI animation playing crash if GUI JSON file is loaded again
|
||||||
|
|
|
@ -162,7 +162,7 @@ def copy_resources(target, app_android_root):
|
||||||
copy_files(os.path.join(common_script_dir, "cocos2d"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "cocos2d"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "cocosbuilder"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "cocosbuilder"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "cocosdenshion"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "cocosdenshion"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "cocostudio"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "cocosstudio"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "extension"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "extension"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "network"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "network"), assets_dir)
|
||||||
copy_files(os.path.join(common_script_dir, "ui"), assets_dir)
|
copy_files(os.path.join(common_script_dir, "ui"), assets_dir)
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -199,14 +199,6 @@
|
||||||
15D1FD3E199863CA00302043 /* DeprecatedCocosDenshionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */; };
|
15D1FD3E199863CA00302043 /* DeprecatedCocosDenshionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */; };
|
||||||
15D1FD3F199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */; };
|
15D1FD3F199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */; };
|
||||||
15D1FD40199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */; };
|
15D1FD40199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */; };
|
||||||
15D1FD45199863E800302043 /* CocoStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD41199863E800302043 /* CocoStudio.lua */; };
|
|
||||||
15D1FD46199863E800302043 /* CocoStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD41199863E800302043 /* CocoStudio.lua */; };
|
|
||||||
15D1FD47199863E800302043 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD42199863E800302043 /* DeprecatedCocoStudioClass.lua */; };
|
|
||||||
15D1FD48199863E800302043 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD42199863E800302043 /* DeprecatedCocoStudioClass.lua */; };
|
|
||||||
15D1FD49199863E800302043 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD43199863E800302043 /* DeprecatedCocoStudioFunc.lua */; };
|
|
||||||
15D1FD4A199863E800302043 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD43199863E800302043 /* DeprecatedCocoStudioFunc.lua */; };
|
|
||||||
15D1FD4B199863E800302043 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD44199863E800302043 /* StudioConstants.lua */; };
|
|
||||||
15D1FD4C199863E800302043 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD44199863E800302043 /* StudioConstants.lua */; };
|
|
||||||
15D1FD51199863F900302043 /* DeprecatedExtensionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */; };
|
15D1FD51199863F900302043 /* DeprecatedExtensionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */; };
|
||||||
15D1FD52199863F900302043 /* DeprecatedExtensionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */; };
|
15D1FD52199863F900302043 /* DeprecatedExtensionClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */; };
|
||||||
15D1FD53199863F900302043 /* DeprecatedExtensionEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */; };
|
15D1FD53199863F900302043 /* DeprecatedExtensionEnum.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */; };
|
||||||
|
@ -239,6 +231,22 @@
|
||||||
15D1FD761998642800302043 /* experimentalUIConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD6F1998642800302043 /* experimentalUIConstants.lua */; };
|
15D1FD761998642800302043 /* experimentalUIConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD6F1998642800302043 /* experimentalUIConstants.lua */; };
|
||||||
15D1FD771998642800302043 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD701998642800302043 /* GuiConstants.lua */; };
|
15D1FD771998642800302043 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD701998642800302043 /* GuiConstants.lua */; };
|
||||||
15D1FD781998642800302043 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD701998642800302043 /* GuiConstants.lua */; };
|
15D1FD781998642800302043 /* GuiConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D1FD701998642800302043 /* GuiConstants.lua */; };
|
||||||
|
15D7638219E8FC980069EAE8 /* CocosStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637E19E8FC980069EAE8 /* CocosStudio.lua */; };
|
||||||
|
15D7638319E8FC980069EAE8 /* CocosStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637E19E8FC980069EAE8 /* CocosStudio.lua */; };
|
||||||
|
15D7638419E8FC980069EAE8 /* CocosStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637E19E8FC980069EAE8 /* CocosStudio.lua */; };
|
||||||
|
15D7638519E8FC980069EAE8 /* CocosStudio.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637E19E8FC980069EAE8 /* CocosStudio.lua */; };
|
||||||
|
15D7638619E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */; };
|
||||||
|
15D7638719E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */; };
|
||||||
|
15D7638819E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */; };
|
||||||
|
15D7638919E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */; };
|
||||||
|
15D7638A19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */; };
|
||||||
|
15D7638B19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */; };
|
||||||
|
15D7638C19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */; };
|
||||||
|
15D7638D19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */; };
|
||||||
|
15D7638E19E8FC980069EAE8 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638119E8FC980069EAE8 /* StudioConstants.lua */; };
|
||||||
|
15D7638F19E8FC980069EAE8 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638119E8FC980069EAE8 /* StudioConstants.lua */; };
|
||||||
|
15D7639019E8FC980069EAE8 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638119E8FC980069EAE8 /* StudioConstants.lua */; };
|
||||||
|
15D7639119E8FC980069EAE8 /* StudioConstants.lua in Resources */ = {isa = PBXBuildFile; fileRef = 15D7638119E8FC980069EAE8 /* StudioConstants.lua */; };
|
||||||
15E66FC8192D957100C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
15E66FC8192D957100C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
||||||
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */ = {isa = PBXBuildFile; fileRef = 3E92EA841921A7720094CD21 /* Sprite3DTest */; };
|
||||||
15EE465B19A7200300AF29F1 /* libcurl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15EE465A19A7200300AF29F1 /* libcurl.a */; };
|
15EE465B19A7200300AF29F1 /* libcurl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 15EE465A19A7200300AF29F1 /* libcurl.a */; };
|
||||||
|
@ -2310,10 +2318,6 @@
|
||||||
15D1FD38199863CA00302043 /* AudioEngine.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = AudioEngine.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/AudioEngine.lua"; sourceTree = "<group>"; };
|
15D1FD38199863CA00302043 /* AudioEngine.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = AudioEngine.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/AudioEngine.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocosDenshionClass.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/DeprecatedCocosDenshionClass.lua"; sourceTree = "<group>"; };
|
15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocosDenshionClass.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/DeprecatedCocosDenshionClass.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocosDenshionFunc.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/DeprecatedCocosDenshionFunc.lua"; sourceTree = "<group>"; };
|
15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocosDenshionFunc.lua; path = "../cocos/scripting/lua-bindings/script/cocosdenshion/DeprecatedCocosDenshionFunc.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD41199863E800302043 /* CocoStudio.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CocoStudio.lua; path = "../cocos/scripting/lua-bindings/script/cocostudio/CocoStudio.lua"; sourceTree = "<group>"; };
|
|
||||||
15D1FD42199863E800302043 /* DeprecatedCocoStudioClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocoStudioClass.lua; path = "../cocos/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioClass.lua"; sourceTree = "<group>"; };
|
|
||||||
15D1FD43199863E800302043 /* DeprecatedCocoStudioFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocoStudioFunc.lua; path = "../cocos/scripting/lua-bindings/script/cocostudio/DeprecatedCocoStudioFunc.lua"; sourceTree = "<group>"; };
|
|
||||||
15D1FD44199863E800302043 /* StudioConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = StudioConstants.lua; path = "../cocos/scripting/lua-bindings/script/cocostudio/StudioConstants.lua"; sourceTree = "<group>"; };
|
|
||||||
15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionClass.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua"; sourceTree = "<group>"; };
|
15D1FD4D199863F900302043 /* DeprecatedExtensionClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionClass.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionEnum.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua"; sourceTree = "<group>"; };
|
15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionEnum.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionEnum.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD4F199863F900302043 /* DeprecatedExtensionFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionFunc.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua"; sourceTree = "<group>"; };
|
15D1FD4F199863F900302043 /* DeprecatedExtensionFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedExtensionFunc.lua; path = "../cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua"; sourceTree = "<group>"; };
|
||||||
|
@ -2326,6 +2330,10 @@
|
||||||
15D1FD6E1998642800302043 /* DeprecatedUIFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedUIFunc.lua; path = "../cocos/scripting/lua-bindings/script/ui/DeprecatedUIFunc.lua"; sourceTree = "<group>"; };
|
15D1FD6E1998642800302043 /* DeprecatedUIFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedUIFunc.lua; path = "../cocos/scripting/lua-bindings/script/ui/DeprecatedUIFunc.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD6F1998642800302043 /* experimentalUIConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = experimentalUIConstants.lua; path = "../cocos/scripting/lua-bindings/script/ui/experimentalUIConstants.lua"; sourceTree = "<group>"; };
|
15D1FD6F1998642800302043 /* experimentalUIConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = experimentalUIConstants.lua; path = "../cocos/scripting/lua-bindings/script/ui/experimentalUIConstants.lua"; sourceTree = "<group>"; };
|
||||||
15D1FD701998642800302043 /* GuiConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = GuiConstants.lua; path = "../cocos/scripting/lua-bindings/script/ui/GuiConstants.lua"; sourceTree = "<group>"; };
|
15D1FD701998642800302043 /* GuiConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = GuiConstants.lua; path = "../cocos/scripting/lua-bindings/script/ui/GuiConstants.lua"; sourceTree = "<group>"; };
|
||||||
|
15D7637E19E8FC980069EAE8 /* CocosStudio.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CocosStudio.lua; path = "../cocos/scripting/lua-bindings/script/cocosstudio/CocosStudio.lua"; sourceTree = "<group>"; };
|
||||||
|
15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocoStudioClass.lua; path = "../cocos/scripting/lua-bindings/script/cocosstudio/DeprecatedCocoStudioClass.lua"; sourceTree = "<group>"; };
|
||||||
|
15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = DeprecatedCocoStudioFunc.lua; path = "../cocos/scripting/lua-bindings/script/cocosstudio/DeprecatedCocoStudioFunc.lua"; sourceTree = "<group>"; };
|
||||||
|
15D7638119E8FC980069EAE8 /* StudioConstants.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = StudioConstants.lua; path = "../cocos/scripting/lua-bindings/script/cocosstudio/StudioConstants.lua"; sourceTree = "<group>"; };
|
||||||
15EE465A19A7200300AF29F1 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../external/curl/prebuilt/ios/libcurl.a; sourceTree = "<group>"; };
|
15EE465A19A7200300AF29F1 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../external/curl/prebuilt/ios/libcurl.a; sourceTree = "<group>"; };
|
||||||
1A0EE2B218CDF6DA004CD58F /* cpp-empty-test Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cpp-empty-test Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
1A0EE2B218CDF6DA004CD58F /* cpp-empty-test Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cpp-empty-test Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
1A0EE31418CDF733004CD58F /* lua-empty-test Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "lua-empty-test Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
1A0EE31418CDF733004CD58F /* lua-empty-test Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "lua-empty-test Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
@ -5312,6 +5320,10 @@
|
||||||
1ABCA36418CD9E060087CE3A /* Lua Common */ = {
|
1ABCA36418CD9E060087CE3A /* Lua Common */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
15D7637E19E8FC980069EAE8 /* CocosStudio.lua */,
|
||||||
|
15D7637F19E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua */,
|
||||||
|
15D7638019E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua */,
|
||||||
|
15D7638119E8FC980069EAE8 /* StudioConstants.lua */,
|
||||||
15D1FD6D1998642800302043 /* DeprecatedUIEnum.lua */,
|
15D1FD6D1998642800302043 /* DeprecatedUIEnum.lua */,
|
||||||
15D1FD6E1998642800302043 /* DeprecatedUIFunc.lua */,
|
15D1FD6E1998642800302043 /* DeprecatedUIFunc.lua */,
|
||||||
15D1FD6F1998642800302043 /* experimentalUIConstants.lua */,
|
15D1FD6F1998642800302043 /* experimentalUIConstants.lua */,
|
||||||
|
@ -5324,10 +5336,6 @@
|
||||||
15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */,
|
15D1FD4E199863F900302043 /* DeprecatedExtensionEnum.lua */,
|
||||||
15D1FD4F199863F900302043 /* DeprecatedExtensionFunc.lua */,
|
15D1FD4F199863F900302043 /* DeprecatedExtensionFunc.lua */,
|
||||||
15D1FD50199863F900302043 /* ExtensionConstants.lua */,
|
15D1FD50199863F900302043 /* ExtensionConstants.lua */,
|
||||||
15D1FD41199863E800302043 /* CocoStudio.lua */,
|
|
||||||
15D1FD42199863E800302043 /* DeprecatedCocoStudioClass.lua */,
|
|
||||||
15D1FD43199863E800302043 /* DeprecatedCocoStudioFunc.lua */,
|
|
||||||
15D1FD44199863E800302043 /* StudioConstants.lua */,
|
|
||||||
15D1FD38199863CA00302043 /* AudioEngine.lua */,
|
15D1FD38199863CA00302043 /* AudioEngine.lua */,
|
||||||
15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */,
|
15D1FD39199863CA00302043 /* DeprecatedCocosDenshionClass.lua */,
|
||||||
15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */,
|
15D1FD3A199863CA00302043 /* DeprecatedCocosDenshionFunc.lua */,
|
||||||
|
@ -7515,6 +7523,7 @@
|
||||||
isa = PBXResourcesBuildPhase;
|
isa = PBXResourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
15D7638719E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */,
|
||||||
1AC35D5C18CEDE9E00F37B72 /* InfoPlist.strings in Resources */,
|
1AC35D5C18CEDE9E00F37B72 /* InfoPlist.strings in Resources */,
|
||||||
1AC35D5D18CEDE9E00F37B72 /* MainMenu.xib in Resources */,
|
1AC35D5D18CEDE9E00F37B72 /* MainMenu.xib in Resources */,
|
||||||
15D1FD621998641200302043 /* DeprecatedNetworkEnum.lua in Resources */,
|
15D1FD621998641200302043 /* DeprecatedNetworkEnum.lua in Resources */,
|
||||||
|
@ -7525,12 +7534,15 @@
|
||||||
15D1FCED1998637C00302043 /* bitExtend.lua in Resources */,
|
15D1FCED1998637C00302043 /* bitExtend.lua in Resources */,
|
||||||
1503FABF18DA8B6C00F6518C /* smtp.lua in Resources */,
|
1503FABF18DA8B6C00F6518C /* smtp.lua in Resources */,
|
||||||
15D1FD291998637C00302043 /* Opengl.lua in Resources */,
|
15D1FD291998637C00302043 /* Opengl.lua in Resources */,
|
||||||
|
15D7638F19E8FC980069EAE8 /* StudioConstants.lua in Resources */,
|
||||||
1503FAB318DA8B6C00F6518C /* ftp.lua in Resources */,
|
1503FAB318DA8B6C00F6518C /* ftp.lua in Resources */,
|
||||||
1503FAB718DA8B6C00F6518C /* http.lua in Resources */,
|
1503FAB718DA8B6C00F6518C /* http.lua in Resources */,
|
||||||
15D1FCF71998637C00302043 /* Cocos2dConstants.lua in Resources */,
|
15D1FCF71998637C00302043 /* Cocos2dConstants.lua in Resources */,
|
||||||
1503FAC118DA8B6C00F6518C /* socket.lua in Resources */,
|
1503FAC118DA8B6C00F6518C /* socket.lua in Resources */,
|
||||||
1503FAB918DA8B6C00F6518C /* ltn12.lua in Resources */,
|
1503FAB918DA8B6C00F6518C /* ltn12.lua in Resources */,
|
||||||
15D1FD0B1998637C00302043 /* DeprecatedOpenglEnum.lua in Resources */,
|
15D1FD0B1998637C00302043 /* DeprecatedOpenglEnum.lua in Resources */,
|
||||||
|
15D7638B19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
||||||
|
15D7638319E8FC980069EAE8 /* CocosStudio.lua in Resources */,
|
||||||
15D1FD661998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
15D1FD661998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
||||||
15D1FD241998637C00302043 /* luaoc.lua in Resources */,
|
15D1FD241998637C00302043 /* luaoc.lua in Resources */,
|
||||||
1AC35D5E18CEDE9E00F37B72 /* Icon.icns in Resources */,
|
1AC35D5E18CEDE9E00F37B72 /* Icon.icns in Resources */,
|
||||||
|
@ -7583,7 +7595,9 @@
|
||||||
files = (
|
files = (
|
||||||
15D1FD171998637C00302043 /* extern.lua in Resources */,
|
15D1FD171998637C00302043 /* extern.lua in Resources */,
|
||||||
15D1FD641998641200302043 /* DeprecatedNetworkEnum.lua in Resources */,
|
15D1FD641998641200302043 /* DeprecatedNetworkEnum.lua in Resources */,
|
||||||
|
15D7638D19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
||||||
15D1FCF41998637C00302043 /* Cocos2d.lua in Resources */,
|
15D1FCF41998637C00302043 /* Cocos2d.lua in Resources */,
|
||||||
|
15D7638519E8FC980069EAE8 /* CocosStudio.lua in Resources */,
|
||||||
1AC35D4A18CEDE9400F37B72 /* Icon-120.png in Resources */,
|
1AC35D4A18CEDE9400F37B72 /* Icon-120.png in Resources */,
|
||||||
1503FAC018DA8B6C00F6518C /* smtp.lua in Resources */,
|
1503FAC018DA8B6C00F6518C /* smtp.lua in Resources */,
|
||||||
15D1FD681998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
15D1FD681998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
||||||
|
@ -7599,6 +7613,7 @@
|
||||||
1503FABE18DA8B6C00F6518C /* mime.lua in Resources */,
|
1503FABE18DA8B6C00F6518C /* mime.lua in Resources */,
|
||||||
15D1FD601998641200302043 /* DeprecatedNetworkClass.lua in Resources */,
|
15D1FD601998641200302043 /* DeprecatedNetworkClass.lua in Resources */,
|
||||||
15D1FD2B1998637C00302043 /* Opengl.lua in Resources */,
|
15D1FD2B1998637C00302043 /* Opengl.lua in Resources */,
|
||||||
|
15D7639119E8FC980069EAE8 /* StudioConstants.lua in Resources */,
|
||||||
1AC35D4E18CEDE9400F37B72 /* Icon-72.png in Resources */,
|
1AC35D4E18CEDE9400F37B72 /* Icon-72.png in Resources */,
|
||||||
1AC35D4F18CEDE9400F37B72 /* Icon-76.png in Resources */,
|
1AC35D4F18CEDE9400F37B72 /* Icon-76.png in Resources */,
|
||||||
1503FAC218DA8B6C00F6518C /* socket.lua in Resources */,
|
1503FAC218DA8B6C00F6518C /* socket.lua in Resources */,
|
||||||
|
@ -7608,6 +7623,7 @@
|
||||||
15D1FD301998637C00302043 /* OpenglConstants.lua in Resources */,
|
15D1FD301998637C00302043 /* OpenglConstants.lua in Resources */,
|
||||||
1503FAB618DA8B6C00F6518C /* headers.lua in Resources */,
|
1503FAB618DA8B6C00F6518C /* headers.lua in Resources */,
|
||||||
1AC35D4918CEDE9400F37B72 /* Icon-114.png in Resources */,
|
1AC35D4918CEDE9400F37B72 /* Icon-114.png in Resources */,
|
||||||
|
15D7638919E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */,
|
||||||
1503FAB418DA8B6C00F6518C /* ftp.lua in Resources */,
|
1503FAB418DA8B6C00F6518C /* ftp.lua in Resources */,
|
||||||
15D1FCEF1998637C00302043 /* bitExtend.lua in Resources */,
|
15D1FCEF1998637C00302043 /* bitExtend.lua in Resources */,
|
||||||
1AC35D2A18CEDE7200F37B72 /* res in Resources */,
|
1AC35D2A18CEDE7200F37B72 /* res in Resources */,
|
||||||
|
@ -7630,16 +7646,17 @@
|
||||||
files = (
|
files = (
|
||||||
15D1FD751998642800302043 /* experimentalUIConstants.lua in Resources */,
|
15D1FD751998642800302043 /* experimentalUIConstants.lua in Resources */,
|
||||||
156EAE071977D0BD00F53709 /* ActionTimeline in Resources */,
|
156EAE071977D0BD00F53709 /* ActionTimeline in Resources */,
|
||||||
|
15D7638219E8FC980069EAE8 /* CocosStudio.lua in Resources */,
|
||||||
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */,
|
15E66FD6192DC8C700C20A52 /* Sprite3DTest in Resources */,
|
||||||
15D1FD001998637C00302043 /* DeprecatedCocos2dEnum.lua in Resources */,
|
15D1FD001998637C00302043 /* DeprecatedCocos2dEnum.lua in Resources */,
|
||||||
15D1FD2D1998637C00302043 /* OpenglConstants.lua in Resources */,
|
15D1FD2D1998637C00302043 /* OpenglConstants.lua in Resources */,
|
||||||
15D1FCF11998637C00302043 /* Cocos2d.lua in Resources */,
|
15D1FCF11998637C00302043 /* Cocos2d.lua in Resources */,
|
||||||
15D1FD47199863E800302043 /* DeprecatedCocoStudioClass.lua in Resources */,
|
|
||||||
3E2F27BC19D00D7200E7C490 /* audio in Resources */,
|
3E2F27BC19D00D7200E7C490 /* audio in Resources */,
|
||||||
1AC35DC318CEE65100F37B72 /* Misc in Resources */,
|
1AC35DC318CEE65100F37B72 /* Misc in Resources */,
|
||||||
1AC35DC618CEE65100F37B72 /* Shaders in Resources */,
|
1AC35DC618CEE65100F37B72 /* Shaders in Resources */,
|
||||||
15D1FD141998637C00302043 /* extern.lua in Resources */,
|
15D1FD141998637C00302043 /* extern.lua in Resources */,
|
||||||
1AC35DBB18CEE65100F37B72 /* components in Resources */,
|
1AC35DBB18CEE65100F37B72 /* components in Resources */,
|
||||||
|
15D7638E19E8FC980069EAE8 /* StudioConstants.lua in Resources */,
|
||||||
1AC35DE218CEE65900F37B72 /* effect2.ogg in Resources */,
|
1AC35DE218CEE65900F37B72 /* effect2.ogg in Resources */,
|
||||||
15C90B4318E66C1700D69802 /* mime.lua in Resources */,
|
15C90B4318E66C1700D69802 /* mime.lua in Resources */,
|
||||||
15D1FD651998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
15D1FD651998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
||||||
|
@ -7650,6 +7667,7 @@
|
||||||
1AC35DBF18CEE65100F37B72 /* hd in Resources */,
|
1AC35DBF18CEE65100F37B72 /* hd in Resources */,
|
||||||
1AC35DC818CEE65100F37B72 /* TileMaps in Resources */,
|
1AC35DC818CEE65100F37B72 /* TileMaps in Resources */,
|
||||||
1AC35DBE18CEE65100F37B72 /* fonts in Resources */,
|
1AC35DBE18CEE65100F37B72 /* fonts in Resources */,
|
||||||
|
15D7638619E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */,
|
||||||
15D1FD691998641200302043 /* NetworkConstants.lua in Resources */,
|
15D1FD691998641200302043 /* NetworkConstants.lua in Resources */,
|
||||||
1AC35DDE18CEE65900F37B72 /* CocosBuilderExample.ccbresourcelog in Resources */,
|
1AC35DDE18CEE65900F37B72 /* CocosBuilderExample.ccbresourcelog in Resources */,
|
||||||
15D1FD34199863BA00302043 /* CCBReaderLoad.lua in Resources */,
|
15D1FD34199863BA00302043 /* CCBReaderLoad.lua in Resources */,
|
||||||
|
@ -7664,6 +7682,7 @@
|
||||||
C08689C218D370C90093E810 /* background.caf in Resources */,
|
C08689C218D370C90093E810 /* background.caf in Resources */,
|
||||||
15D1FD0A1998637C00302043 /* DeprecatedOpenglEnum.lua in Resources */,
|
15D1FD0A1998637C00302043 /* DeprecatedOpenglEnum.lua in Resources */,
|
||||||
15C90B4918E66C2A00D69802 /* tp.lua in Resources */,
|
15C90B4918E66C2A00D69802 /* tp.lua in Resources */,
|
||||||
|
15D7638A19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
||||||
15D1FD281998637C00302043 /* Opengl.lua in Resources */,
|
15D1FD281998637C00302043 /* Opengl.lua in Resources */,
|
||||||
1AC35DE918CEE65900F37B72 /* effect1.wav in Resources */,
|
1AC35DE918CEE65900F37B72 /* effect1.wav in Resources */,
|
||||||
3E2F27BD19D00D7D00E7C490 /* background.wav in Resources */,
|
3E2F27BD19D00D7D00E7C490 /* background.wav in Resources */,
|
||||||
|
@ -7676,9 +7695,7 @@
|
||||||
1AC35DC418CEE65100F37B72 /* Particles in Resources */,
|
1AC35DC418CEE65100F37B72 /* Particles in Resources */,
|
||||||
15D1FD3F199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */,
|
15D1FD3F199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */,
|
||||||
15D1FD191998637C00302043 /* json.lua in Resources */,
|
15D1FD191998637C00302043 /* json.lua in Resources */,
|
||||||
15D1FD4B199863E800302043 /* StudioConstants.lua in Resources */,
|
|
||||||
1AC35DB918CEE65100F37B72 /* ccb in Resources */,
|
1AC35DB918CEE65100F37B72 /* ccb in Resources */,
|
||||||
15D1FD49199863E800302043 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
|
||||||
15C90B4118E66C1100D69802 /* mbox.lua in Resources */,
|
15C90B4118E66C1100D69802 /* mbox.lua in Resources */,
|
||||||
15D1FD55199863F900302043 /* DeprecatedExtensionFunc.lua in Resources */,
|
15D1FD55199863F900302043 /* DeprecatedExtensionFunc.lua in Resources */,
|
||||||
15D1FD3B199863CA00302043 /* AudioEngine.lua in Resources */,
|
15D1FD3B199863CA00302043 /* AudioEngine.lua in Resources */,
|
||||||
|
@ -7703,7 +7720,6 @@
|
||||||
15D1FD51199863F900302043 /* DeprecatedExtensionClass.lua in Resources */,
|
15D1FD51199863F900302043 /* DeprecatedExtensionClass.lua in Resources */,
|
||||||
1AC35DBD18CEE65100F37B72 /* extensions in Resources */,
|
1AC35DBD18CEE65100F37B72 /* extensions in Resources */,
|
||||||
15D1FD771998642800302043 /* GuiConstants.lua in Resources */,
|
15D1FD771998642800302043 /* GuiConstants.lua in Resources */,
|
||||||
15D1FD45199863E800302043 /* CocoStudio.lua in Resources */,
|
|
||||||
15D1FD1E1998637C00302043 /* luaj.lua in Resources */,
|
15D1FD1E1998637C00302043 /* luaj.lua in Resources */,
|
||||||
1AC35DC718CEE65100F37B72 /* spine in Resources */,
|
1AC35DC718CEE65100F37B72 /* spine in Resources */,
|
||||||
15C90B4518E66C1E00D69802 /* smtp.lua in Resources */,
|
15C90B4518E66C1E00D69802 /* smtp.lua in Resources */,
|
||||||
|
@ -7729,7 +7745,6 @@
|
||||||
1AC35DF718CEE65B00F37B72 /* effect1.wav in Resources */,
|
1AC35DF718CEE65B00F37B72 /* effect1.wav in Resources */,
|
||||||
C08689C418D370C90093E810 /* background.caf in Resources */,
|
C08689C418D370C90093E810 /* background.caf in Resources */,
|
||||||
1AC35DD118CEE65200F37B72 /* fonts in Resources */,
|
1AC35DD118CEE65200F37B72 /* fonts in Resources */,
|
||||||
15D1FD4C199863E800302043 /* StudioConstants.lua in Resources */,
|
|
||||||
1AC35DCC18CEE65200F37B72 /* ccb in Resources */,
|
1AC35DCC18CEE65200F37B72 /* ccb in Resources */,
|
||||||
1AC35DD218CEE65200F37B72 /* hd in Resources */,
|
1AC35DD218CEE65200F37B72 /* hd in Resources */,
|
||||||
15D1FD251998637C00302043 /* luaoc.lua in Resources */,
|
15D1FD251998637C00302043 /* luaoc.lua in Resources */,
|
||||||
|
@ -7746,7 +7761,6 @@
|
||||||
15D1FD021998637C00302043 /* DeprecatedCocos2dEnum.lua in Resources */,
|
15D1FD021998637C00302043 /* DeprecatedCocos2dEnum.lua in Resources */,
|
||||||
1AC35DF818CEE65B00F37B72 /* pew-pew-lei.wav in Resources */,
|
1AC35DF818CEE65B00F37B72 /* pew-pew-lei.wav in Resources */,
|
||||||
1AC35D9918CEE5D100F37B72 /* Default-568h@2x.png in Resources */,
|
1AC35D9918CEE5D100F37B72 /* Default-568h@2x.png in Resources */,
|
||||||
15D1FD4A199863E800302043 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
|
||||||
15D1FD071998637C00302043 /* DeprecatedCocos2dFunc.lua in Resources */,
|
15D1FD071998637C00302043 /* DeprecatedCocos2dFunc.lua in Resources */,
|
||||||
15C90B4218E66C1200D69802 /* mbox.lua in Resources */,
|
15C90B4218E66C1200D69802 /* mbox.lua in Resources */,
|
||||||
15D1FD201998637C00302043 /* luaj.lua in Resources */,
|
15D1FD201998637C00302043 /* luaj.lua in Resources */,
|
||||||
|
@ -7780,16 +7794,16 @@
|
||||||
15D1FD2F1998637C00302043 /* OpenglConstants.lua in Resources */,
|
15D1FD2F1998637C00302043 /* OpenglConstants.lua in Resources */,
|
||||||
15D1FD671998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
15D1FD671998641200302043 /* DeprecatedNetworkFunc.lua in Resources */,
|
||||||
1A1645A9191B6283008C7C7F /* ccs-res in Resources */,
|
1A1645A9191B6283008C7C7F /* ccs-res in Resources */,
|
||||||
15D1FD46199863E800302043 /* CocoStudio.lua in Resources */,
|
|
||||||
15D1FD37199863BA00302043 /* DeprecatedCocosBuilderClass.lua in Resources */,
|
15D1FD37199863BA00302043 /* DeprecatedCocosBuilderClass.lua in Resources */,
|
||||||
1AC35DA118CEE5D100F37B72 /* Icon-72.png in Resources */,
|
1AC35DA118CEE5D100F37B72 /* Icon-72.png in Resources */,
|
||||||
|
15D7638819E8FC980069EAE8 /* DeprecatedCocoStudioClass.lua in Resources */,
|
||||||
15C90B4018E66C0D00D69802 /* ltn12.lua in Resources */,
|
15C90B4018E66C0D00D69802 /* ltn12.lua in Resources */,
|
||||||
15D1FD48199863E800302043 /* DeprecatedCocoStudioClass.lua in Resources */,
|
|
||||||
15D1FD161998637C00302043 /* extern.lua in Resources */,
|
15D1FD161998637C00302043 /* extern.lua in Resources */,
|
||||||
1AC35DA218CEE5D100F37B72 /* Icon-76.png in Resources */,
|
1AC35DA218CEE5D100F37B72 /* Icon-76.png in Resources */,
|
||||||
15C90B4818E66C2500D69802 /* socket.lua in Resources */,
|
15C90B4818E66C2500D69802 /* socket.lua in Resources */,
|
||||||
15D1FD40199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */,
|
15D1FD40199863CA00302043 /* DeprecatedCocosDenshionFunc.lua in Resources */,
|
||||||
15C90B3C18E66BEC00D69802 /* headers.lua in Resources */,
|
15C90B3C18E66BEC00D69802 /* headers.lua in Resources */,
|
||||||
|
15D7638419E8FC980069EAE8 /* CocosStudio.lua in Resources */,
|
||||||
1AC35DF418CEE65B00F37B72 /* effect1.raw in Resources */,
|
1AC35DF418CEE65B00F37B72 /* effect1.raw in Resources */,
|
||||||
1AC35DD918CEE65200F37B72 /* Shaders in Resources */,
|
1AC35DD918CEE65200F37B72 /* Shaders in Resources */,
|
||||||
1AC35DCF18CEE65200F37B72 /* configs in Resources */,
|
1AC35DCF18CEE65200F37B72 /* configs in Resources */,
|
||||||
|
@ -7803,7 +7817,9 @@
|
||||||
1AC35D9C18CEE5D100F37B72 /* Icon-114.png in Resources */,
|
1AC35D9C18CEE5D100F37B72 /* Icon-114.png in Resources */,
|
||||||
15D1FD52199863F900302043 /* DeprecatedExtensionClass.lua in Resources */,
|
15D1FD52199863F900302043 /* DeprecatedExtensionClass.lua in Resources */,
|
||||||
1AC35D9F18CEE5D100F37B72 /* Icon-152.png in Resources */,
|
1AC35D9F18CEE5D100F37B72 /* Icon-152.png in Resources */,
|
||||||
|
15D7638C19E8FC980069EAE8 /* DeprecatedCocoStudioFunc.lua in Resources */,
|
||||||
1AC35DEE18CEE65B00F37B72 /* background.mp3 in Resources */,
|
1AC35DEE18CEE65B00F37B72 /* background.mp3 in Resources */,
|
||||||
|
15D7639019E8FC980069EAE8 /* StudioConstants.lua in Resources */,
|
||||||
1AC35D9A18CEE5D100F37B72 /* Default.png in Resources */,
|
1AC35D9A18CEE5D100F37B72 /* Default.png in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|
|
@ -147,6 +147,8 @@ DrawNode::~DrawNode()
|
||||||
if (Configuration::getInstance()->supportsShareableVAO())
|
if (Configuration::getInstance()->supportsShareableVAO())
|
||||||
{
|
{
|
||||||
glDeleteVertexArrays(1, &_vao);
|
glDeleteVertexArrays(1, &_vao);
|
||||||
|
glDeleteVertexArrays(1, &_vaoGLLine);
|
||||||
|
glDeleteVertexArrays(1, &_vaoGLPoint);
|
||||||
GL::bindVAO(0);
|
GL::bindVAO(0);
|
||||||
_vao = 0;
|
_vao = 0;
|
||||||
}
|
}
|
||||||
|
@ -429,7 +431,7 @@ void DrawNode::drawPoints(const Vec2 *position, unsigned int numberOfPoints, con
|
||||||
|
|
||||||
V2F_C4B_T2F *point = (V2F_C4B_T2F*)(_bufferGLPoint + _bufferCountGLPoint);
|
V2F_C4B_T2F *point = (V2F_C4B_T2F*)(_bufferGLPoint + _bufferCountGLPoint);
|
||||||
|
|
||||||
for(int i=0; i<numberOfPoints; i++,point++)
|
for(unsigned int i=0; i < numberOfPoints; i++,point++)
|
||||||
{
|
{
|
||||||
V2F_C4B_T2F a = {position[i], Color4B(color), Tex2F(0.0, 0.0) };
|
V2F_C4B_T2F a = {position[i], Color4B(color), Tex2F(0.0, 0.0) };
|
||||||
*point = a;
|
*point = a;
|
||||||
|
@ -480,8 +482,8 @@ void DrawNode::drawPoly(const Vec2 *poli, unsigned int numberOfPoints, bool clos
|
||||||
|
|
||||||
V2F_C4B_T2F *point = (V2F_C4B_T2F*)(_bufferGLLine + _bufferCountGLLine);
|
V2F_C4B_T2F *point = (V2F_C4B_T2F*)(_bufferGLLine + _bufferCountGLLine);
|
||||||
|
|
||||||
int i;
|
unsigned int i = 0;
|
||||||
for(i=0; i<numberOfPoints-1; i++)
|
for(; i<numberOfPoints-1; i++)
|
||||||
{
|
{
|
||||||
V2F_C4B_T2F a = {poli[i], Color4B(color), Tex2F(0.0, 0.0)};
|
V2F_C4B_T2F a = {poli[i], Color4B(color), Tex2F(0.0, 0.0)};
|
||||||
V2F_C4B_T2F b = {poli[i+1], Color4B(color), Tex2F(0.0, 0.0)};
|
V2F_C4B_T2F b = {poli[i+1], Color4B(color), Tex2F(0.0, 0.0)};
|
||||||
|
|
|
@ -49,6 +49,14 @@ THE SOFTWARE.
|
||||||
#include "platform/CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (push)
|
||||||
|
#pragma warning (disable: 4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
#endif
|
#endif
|
||||||
|
@ -582,4 +590,10 @@ void setDrawColor4B( GLubyte r, GLubyte g, GLubyte b, GLubyte a )
|
||||||
|
|
||||||
} // DrawPrimitives namespace
|
} // DrawPrimitives namespace
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
NS_CC_END
|
NS_CC_END
|
||||||
|
|
|
@ -41,6 +41,12 @@ Use any of these editors to generate BMFonts:
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (push)
|
||||||
|
#pragma warning (disable: 4996)
|
||||||
|
#endif
|
||||||
/** @brief LabelBMFont is a subclass of SpriteBatchNode.
|
/** @brief LabelBMFont is a subclass of SpriteBatchNode.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
@ -142,7 +148,11 @@ private:
|
||||||
// end of GUI group
|
// end of GUI group
|
||||||
/// @}
|
/// @}
|
||||||
/// @}
|
/// @}
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (pop)
|
||||||
|
#endif
|
||||||
NS_CC_END
|
NS_CC_END
|
||||||
|
|
||||||
#endif //__CCBITMAP_FONT_ATLAS_H__
|
#endif //__CCBITMAP_FONT_ATLAS_H__
|
||||||
|
|
|
@ -30,6 +30,13 @@ THE SOFTWARE.
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (push)
|
||||||
|
#pragma warning (disable: 4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
class Label;
|
class Label;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -161,7 +168,11 @@ protected:
|
||||||
// end of GUI group
|
// end of GUI group
|
||||||
/// @}
|
/// @}
|
||||||
/// @}
|
/// @}
|
||||||
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
|
||||||
|
#elif _MSC_VER >= 1400 //vs 2005 or higher
|
||||||
|
#pragma warning (pop)
|
||||||
|
#endif
|
||||||
NS_CC_END
|
NS_CC_END
|
||||||
|
|
||||||
#endif //__CCLABEL_H__
|
#endif //__CCLABEL_H__
|
||||||
|
|
|
@ -561,7 +561,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\chipmunk\prebuilt\win32\release-lib\*.*
|
||||||
<ClInclude Include="..\..\external\json\reader.h" />
|
<ClInclude Include="..\..\external\json\reader.h" />
|
||||||
<ClInclude Include="..\..\external\json\stringbuffer.h" />
|
<ClInclude Include="..\..\external\json\stringbuffer.h" />
|
||||||
<ClInclude Include="..\..\external\json\writer.h" />
|
<ClInclude Include="..\..\external\json\writer.h" />
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\config.h" />
|
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\extension_set.h" />
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\extension_set.h" />
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\generated_message_util.h" />
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\generated_message_util.h" />
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\io\coded_stream.h" />
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\io\coded_stream.h" />
|
||||||
|
|
|
@ -217,9 +217,6 @@
|
||||||
<Filter Include="external\protocolBuf">
|
<Filter Include="external\protocolBuf">
|
||||||
<UniqueIdentifier>{cca5b284-43d5-4f19-8a3f-41011ca8fb78}</UniqueIdentifier>
|
<UniqueIdentifier>{cca5b284-43d5-4f19-8a3f-41011ca8fb78}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="external\protocolBuf\win32">
|
|
||||||
<UniqueIdentifier>{26f61f04-86c1-42d5-b14b-d5e1ae3c5f4d}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="external\protocolBuf\google">
|
<Filter Include="external\protocolBuf\google">
|
||||||
<UniqueIdentifier>{4055fd20-df3e-469e-8e5f-e49635ecaa6d}</UniqueIdentifier>
|
<UniqueIdentifier>{4055fd20-df3e-469e-8e5f-e49635ecaa6d}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
@ -2478,9 +2475,6 @@
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\stubs\type_traits.h">
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\stubs\type_traits.h">
|
||||||
<Filter>external\protocolBuf\google\protobuf\stubs</Filter>
|
<Filter>external\protocolBuf\google\protobuf\stubs</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\config.h">
|
|
||||||
<Filter>external\protocolBuf\google\protobuf</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\extension_set.h">
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\extension_set.h">
|
||||||
<Filter>external\protocolBuf\google\protobuf</Filter>
|
<Filter>external\protocolBuf\google\protobuf</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -2499,9 +2493,6 @@
|
||||||
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\wire_format_lite_inl.h">
|
<ClInclude Include="..\..\external\protocolBuf\src\google\protobuf\wire_format_lite_inl.h">
|
||||||
<Filter>external\protocolBuf\google\protobuf</Filter>
|
<Filter>external\protocolBuf\google\protobuf</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\..\external\protocolBuf\win32\config.h">
|
|
||||||
<Filter>external\protocolBuf\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\editor-support\cocostudio\CSParseBinary.pb.h">
|
<ClInclude Include="..\editor-support\cocostudio\CSParseBinary.pb.h">
|
||||||
<Filter>cocostudio\json</Filter>
|
<Filter>cocostudio\json</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -2511,6 +2502,9 @@
|
||||||
<ClInclude Include="..\ui\UILayoutComponent.h">
|
<ClInclude Include="..\ui\UILayoutComponent.h">
|
||||||
<Filter>ui\Layouts</Filter>
|
<Filter>ui\Layouts</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\external\protocolBuf\win32\config.h">
|
||||||
|
<Filter>external\protocolBuf\google\protobuf</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\math\Mat4.inl">
|
<None Include="..\math\Mat4.inl">
|
||||||
|
|
|
@ -270,6 +270,5 @@ $(call import-module,extensions)
|
||||||
$(call import-module,Box2D)
|
$(call import-module,Box2D)
|
||||||
$(call import-module,curl/prebuilt/android)
|
$(call import-module,curl/prebuilt/android)
|
||||||
$(call import-module,websockets/prebuilt/android)
|
$(call import-module,websockets/prebuilt/android)
|
||||||
$(call import-module,protocolBuf/prebuilt/android)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
#include "platform/CCFileUtils.h"
|
#include "platform/CCFileUtils.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
// FIXME: Other platforms should use upstream minizip like mingw-w64
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
#define unzGoToFirstFile64(A,B,C,D) unzGoToFirstFile2(A,B,C,D, NULL, 0, NULL, 0)
|
||||||
|
#define unzGoToNextFile64(A,B,C,D) unzGoToNextFile2(A,B,C,D, NULL, 0, NULL, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
unsigned int ZipUtils::s_uEncryptedPvrKeyParts[4] = {0,0,0,0};
|
unsigned int ZipUtils::s_uEncryptedPvrKeyParts[4] = {0,0,0,0};
|
||||||
|
|
|
@ -37,12 +37,11 @@ THE SOFTWARE.
|
||||||
#include "platform/CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace cocos2d
|
||||||
|
{
|
||||||
#ifndef _unz64_H
|
#ifndef _unz64_H
|
||||||
typedef struct unz_file_info_s unz_file_info;
|
typedef struct unz_file_info_s unz_file_info;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cocos2d
|
|
||||||
{
|
|
||||||
/* XXX: pragma pack ??? */
|
/* XXX: pragma pack ??? */
|
||||||
/** @struct CCZHeader
|
/** @struct CCZHeader
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
||||||
#include "2d/CCSpriteFrameCache.h"
|
#include "2d/CCSpriteFrameCache.h"
|
||||||
#include "2d/CCSpriteFrame.h"
|
#include "2d/CCSpriteFrame.h"
|
||||||
|
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "../../cocos/ui/CocosGUI.h"
|
#include "../../cocos/ui/CocosGUI.h"
|
||||||
#include "cocostudio/CocoStudio.h"
|
#include "cocostudio/CocoStudio.h"
|
||||||
|
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
|
@ -61,24 +61,35 @@ ActionTimeline/CCTimeLine.cpp \
|
||||||
ActionTimeline/CCActionTimeline.cpp \
|
ActionTimeline/CCActionTimeline.cpp \
|
||||||
ActionTimeline/CSLoader.cpp \
|
ActionTimeline/CSLoader.cpp \
|
||||||
CSParseBinary.pb.cc \
|
CSParseBinary.pb.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/extension_set.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/generated_message_util.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/message_lite.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/repeated_field.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/wire_format_lite.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/io/coded_stream.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/io/zero_copy_stream.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/io/zero_copy_stream_impl.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/stubs/common.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/stubs/once.cc \
|
||||||
|
../../../external/protocolBuf/src/google/protobuf/stubs/stringprintf.cc \
|
||||||
|
|
||||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/.. \
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/.. \
|
||||||
$(LOCAL_PATH)/../../../external
|
$(LOCAL_PATH)/../../../external
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../.. \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../.. \
|
||||||
$(LOCAL_PATH)/../../../external \
|
$(LOCAL_PATH)/../../../external \
|
||||||
|
$(LOCAL_PATH)/../../../external/protocolBuf/src/google/protobuf \
|
||||||
|
$(LOCAL_PATH)/../../../external/protocolBuf/src \
|
||||||
$(LOCAL_PATH)/.. \
|
$(LOCAL_PATH)/.. \
|
||||||
$(LOCAL_PATH)/../.. \
|
$(LOCAL_PATH)/../.. \
|
||||||
$(LOCAL_PATH)/WidgetReader \
|
$(LOCAL_PATH)/WidgetReader \
|
||||||
$(LOCAL_PATH)/../../platform/android \
|
$(LOCAL_PATH)/../../platform/android \
|
||||||
$(LOCAL_PATH)/../../../external/tinyxml2 \
|
$(LOCAL_PATH)/../../../external/tinyxml2 \
|
||||||
$(LOCAL_PATH)/../../../external/protocolBuf/include \
|
|
||||||
$(LOCAL_PATH)/../../../external/protocolBuf/include/google/protobuf \
|
|
||||||
|
|
||||||
LOCAL_CFLAGS += -fexceptions
|
LOCAL_CFLAGS += -fexceptions
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := cocos_ui_static
|
LOCAL_STATIC_LIBRARIES := cocos_ui_static
|
||||||
LOCAL_STATIC_LIBRARIES += cocos_protocolBuffer_static
|
|
||||||
LOCAL_STATIC_LIBRARIES += cocosdenshion_static
|
LOCAL_STATIC_LIBRARIES += cocosdenshion_static
|
||||||
LOCAL_STATIC_LIBRARIES += cocos_extension_static
|
LOCAL_STATIC_LIBRARIES += cocos_extension_static
|
||||||
LOCAL_STATIC_LIBRARIES += cocos2dx_internal_static
|
LOCAL_STATIC_LIBRARIES += cocos2dx_internal_static
|
||||||
|
|
|
@ -210,13 +210,12 @@ bool ComRender::serialize(void* r)
|
||||||
}
|
}
|
||||||
else if (file_extension == ".CSB")
|
else if (file_extension == ".CSB")
|
||||||
{
|
{
|
||||||
ssize_t size = 0;
|
|
||||||
unsigned char *pBytes = nullptr;
|
|
||||||
std::string binaryFilePath = FileUtils::getInstance()->fullPathForFilename(filePath.c_str());
|
std::string binaryFilePath = FileUtils::getInstance()->fullPathForFilename(filePath.c_str());
|
||||||
pBytes = cocos2d::FileUtils::getInstance()->getFileData(binaryFilePath.c_str(), "rb", &size);
|
auto fileData = FileUtils::getInstance()->getDataFromFile(binaryFilePath);
|
||||||
CC_BREAK_IF(pBytes == nullptr || strcmp((char*)pBytes, "") == 0);
|
auto fileDataBytes = fileData.getBytes();
|
||||||
|
CC_BREAK_IF(fileData.isNull());
|
||||||
CocoLoader tCocoLoader;
|
CocoLoader tCocoLoader;
|
||||||
if (tCocoLoader.ReadCocoBinBuff((char*)pBytes))
|
if (tCocoLoader.ReadCocoBinBuff((char*)fileDataBytes))
|
||||||
{
|
{
|
||||||
stExpCocoNode *tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
stExpCocoNode *tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
||||||
rapidjson::Type tType = tpRootCocoNode->GetType(&tCocoLoader);
|
rapidjson::Type tType = tpRootCocoNode->GetType(&tCocoLoader);
|
||||||
|
|
|
@ -357,9 +357,6 @@ WidgetReaderProtocol* WidgetPropertiesReader::createWidgetReaderProtocol(const s
|
||||||
return dynamic_cast<WidgetReaderProtocol*>(object);
|
return dynamic_cast<WidgetReaderProtocol*>(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Widget* GUIReader::widgetFromBinaryFile(const char *fileName)
|
Widget* GUIReader::widgetFromBinaryFile(const char *fileName)
|
||||||
{
|
{
|
||||||
std::string jsonpath;
|
std::string jsonpath;
|
||||||
|
@ -368,17 +365,18 @@ Widget* GUIReader::widgetFromBinaryFile(const char *fileName)
|
||||||
// jsonpath = CCFileUtils::getInstance()->fullPathForFilename(fileName);
|
// jsonpath = CCFileUtils::getInstance()->fullPathForFilename(fileName);
|
||||||
size_t pos = jsonpath.find_last_of('/');
|
size_t pos = jsonpath.find_last_of('/');
|
||||||
m_strFilePath = jsonpath.substr(0,pos+1);
|
m_strFilePath = jsonpath.substr(0,pos+1);
|
||||||
ssize_t nSize = 0;
|
|
||||||
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(fileName);
|
std::string fullPath = FileUtils::getInstance()->fullPathForFilename(fileName);
|
||||||
unsigned char* pBuffer = FileUtils::getInstance()->getFileData(fullPath, "rb", &nSize);
|
auto fileData = FileUtils::getInstance()->getDataFromFile(fullPath);
|
||||||
|
auto fileDataBytes = fileData.getBytes();
|
||||||
|
auto fileDataSize = fileData.getSize();
|
||||||
|
|
||||||
const char* fileVersion = "";
|
const char* fileVersion = "";
|
||||||
ui::Widget* widget = nullptr;
|
ui::Widget* widget = nullptr;
|
||||||
|
|
||||||
if (pBuffer != nullptr && nSize > 0)
|
if (fileDataBytes != nullptr && fileDataSize > 0)
|
||||||
{
|
{
|
||||||
CocoLoader tCocoLoader;
|
CocoLoader tCocoLoader;
|
||||||
if(true == tCocoLoader.ReadCocoBinBuff((char*)pBuffer))
|
if(true == tCocoLoader.ReadCocoBinBuff((char*)fileDataBytes))
|
||||||
{
|
{
|
||||||
stExpCocoNode* tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
stExpCocoNode* tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
||||||
|
|
||||||
|
@ -424,8 +422,6 @@ Widget* GUIReader::widgetFromBinaryFile(const char *fileName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CC_SAFE_DELETE_ARRAY(pBuffer);
|
|
||||||
|
|
||||||
return widget;
|
return widget;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,10 +82,11 @@ cocos2d::Node* SceneReader::createNodeWithSceneFile(const std::string &fileName,
|
||||||
unsigned char *pBytes = nullptr;
|
unsigned char *pBytes = nullptr;
|
||||||
do {
|
do {
|
||||||
std::string binaryFilePath = CCFileUtils::getInstance()->fullPathForFilename(fileName);
|
std::string binaryFilePath = CCFileUtils::getInstance()->fullPathForFilename(fileName);
|
||||||
pBytes = cocos2d::FileUtils::getInstance()->getFileData(binaryFilePath.c_str(), "rb", &size);
|
auto fileData = FileUtils::getInstance()->getDataFromFile(binaryFilePath);
|
||||||
CC_BREAK_IF(pBytes == nullptr || strcmp((char*)pBytes, "") == 0);
|
auto fileDataBytes = fileData.getBytes();
|
||||||
|
CC_BREAK_IF(fileData.isNull());
|
||||||
CocoLoader tCocoLoader;
|
CocoLoader tCocoLoader;
|
||||||
if (tCocoLoader.ReadCocoBinBuff((char*)pBytes))
|
if (tCocoLoader.ReadCocoBinBuff((char*)fileDataBytes))
|
||||||
{
|
{
|
||||||
stExpCocoNode *tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
stExpCocoNode *tpRootCocoNode = tCocoLoader.GetRootCocoNode();
|
||||||
rapidjson::Type tType = tpRootCocoNode->GetType(&tCocoLoader);
|
rapidjson::Type tType = tpRootCocoNode->GetType(&tCocoLoader);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ButtonReader.h"
|
#include "ButtonReader.h"
|
||||||
#include "ui/UIButton.h"
|
#include "ui/UIButton.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "CheckBoxReader.h"
|
#include "CheckBoxReader.h"
|
||||||
#include "ui/UICheckBox.h"
|
#include "ui/UICheckBox.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ImageViewReader.h"
|
#include "ImageViewReader.h"
|
||||||
#include "ui/UIImageView.h"
|
#include "ui/UIImageView.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "ui/UIScrollView.h"
|
#include "ui/UIScrollView.h"
|
||||||
#include "ui/UIPageView.h"
|
#include "ui/UIPageView.h"
|
||||||
#include "ui/UIListView.h"
|
#include "ui/UIListView.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ListViewReader.h"
|
#include "ListViewReader.h"
|
||||||
#include "ui/UIListView.h"
|
#include "ui/UIListView.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "LoadingBarReader.h"
|
#include "LoadingBarReader.h"
|
||||||
#include "ui/UILoadingBar.h"
|
#include "ui/UILoadingBar.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "ui/UIPageView.h"
|
#include "ui/UIPageView.h"
|
||||||
#include "ui/UILayout.h"
|
#include "ui/UILayout.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "ScrollViewReader.h"
|
#include "ScrollViewReader.h"
|
||||||
#include "ui/UIScrollView.h"
|
#include "ui/UIScrollView.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "SliderReader.h"
|
#include "SliderReader.h"
|
||||||
#include "ui/UISlider.h"
|
#include "ui/UISlider.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "TextAtlasReader.h"
|
#include "TextAtlasReader.h"
|
||||||
#include "ui/UITextAtlas.h"
|
#include "ui/UITextAtlas.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "TextBMFontReader.h"
|
#include "TextBMFontReader.h"
|
||||||
#include "ui/UITextBMFont.h"
|
#include "ui/UITextBMFont.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "TextFieldReader.h"
|
#include "TextFieldReader.h"
|
||||||
#include "ui/UITextField.h"
|
#include "ui/UITextField.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "TextReader.h"
|
#include "TextReader.h"
|
||||||
#include "ui/UIText.h"
|
#include "ui/UIText.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
|
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include "WidgetReader.h"
|
#include "WidgetReader.h"
|
||||||
#include "cocostudio/CocoLoader.h"
|
#include "cocostudio/CocoLoader.h"
|
||||||
#include "ui/UIButton.h"
|
#include "ui/UIButton.h"
|
||||||
#include "CSParseBinary.pb.h"
|
#include "cocostudio/CSParseBinary.pb.h"
|
||||||
#include "tinyxml2/tinyxml2.h"
|
#include "tinyxml2/tinyxml2.h"
|
||||||
#include "../ActionTimeline/CCActionTimeline.h"
|
#include "../ActionTimeline/CCActionTimeline.h"
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<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\protocolBuf\include\win32;$(EngineRoot)external\protocolBuf\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>WP8;_DEBUG;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WP8;_DEBUG;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<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\protocolBuf\include\win32;$(EngineRoot)external\protocolBuf\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>WP8;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WP8;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_STATIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
|
<ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
|
||||||
|
@ -166,8 +166,8 @@
|
||||||
<ClCompile Include="..\ActionTimeline\CCActionTimeline.cpp" />
|
<ClCompile Include="..\ActionTimeline\CCActionTimeline.cpp" />
|
||||||
<ClCompile Include="..\ActionTimeline\CCActionTimelineCache.cpp" />
|
<ClCompile Include="..\ActionTimeline\CCActionTimelineCache.cpp" />
|
||||||
<ClCompile Include="..\ActionTimeline\CCFrame.cpp" />
|
<ClCompile Include="..\ActionTimeline\CCFrame.cpp" />
|
||||||
|
<ClCompile Include="..\ActionTimeline\CCNodeReader.cpp" />
|
||||||
<ClCompile Include="..\ActionTimeline\CCTimeLine.cpp" />
|
<ClCompile Include="..\ActionTimeline\CCTimeLine.cpp" />
|
||||||
<ClCompile Include="..\ActionTimeline\CSLoader.cpp" />
|
|
||||||
<ClCompile Include="..\CCActionFrame.cpp" />
|
<ClCompile Include="..\CCActionFrame.cpp" />
|
||||||
<ClCompile Include="..\CCActionFrameEasing.cpp" />
|
<ClCompile Include="..\CCActionFrameEasing.cpp" />
|
||||||
<ClCompile Include="..\CCActionManagerEx.cpp" />
|
<ClCompile Include="..\CCActionManagerEx.cpp" />
|
||||||
|
@ -199,7 +199,6 @@
|
||||||
<ClCompile Include="..\CCTween.cpp" />
|
<ClCompile Include="..\CCTween.cpp" />
|
||||||
<ClCompile Include="..\CCUtilMath.cpp" />
|
<ClCompile Include="..\CCUtilMath.cpp" />
|
||||||
<ClCompile Include="..\CocoLoader.cpp" />
|
<ClCompile Include="..\CocoLoader.cpp" />
|
||||||
<ClCompile Include="..\CSParseBinary.pb.cc" />
|
|
||||||
<ClCompile Include="..\DictionaryHelper.cpp" />
|
<ClCompile Include="..\DictionaryHelper.cpp" />
|
||||||
<ClCompile Include="..\TriggerBase.cpp" />
|
<ClCompile Include="..\TriggerBase.cpp" />
|
||||||
<ClCompile Include="..\TriggerMng.cpp" />
|
<ClCompile Include="..\TriggerMng.cpp" />
|
||||||
|
@ -239,9 +238,9 @@
|
||||||
<ClInclude Include="..\ActionTimeline\CCActionTimeline.h" />
|
<ClInclude Include="..\ActionTimeline\CCActionTimeline.h" />
|
||||||
<ClInclude Include="..\ActionTimeline\CCActionTimelineCache.h" />
|
<ClInclude Include="..\ActionTimeline\CCActionTimelineCache.h" />
|
||||||
<ClInclude Include="..\ActionTimeline\CCFrame.h" />
|
<ClInclude Include="..\ActionTimeline\CCFrame.h" />
|
||||||
|
<ClInclude Include="..\ActionTimeline\CCNodeReader.h" />
|
||||||
<ClInclude Include="..\ActionTimeline\CCTimeLine.h" />
|
<ClInclude Include="..\ActionTimeline\CCTimeLine.h" />
|
||||||
<ClInclude Include="..\ActionTimeline\CCTimelineMacro.h" />
|
<ClInclude Include="..\ActionTimeline\CCTimelineMacro.h" />
|
||||||
<ClInclude Include="..\ActionTimeline\CSLoader.h" />
|
|
||||||
<ClInclude Include="..\CCActionFrame.h" />
|
<ClInclude Include="..\CCActionFrame.h" />
|
||||||
<ClInclude Include="..\CCActionFrameEasing.h" />
|
<ClInclude Include="..\CCActionFrameEasing.h" />
|
||||||
<ClInclude Include="..\CCActionManagerEx.h" />
|
<ClInclude Include="..\CCActionManagerEx.h" />
|
||||||
|
@ -274,7 +273,6 @@
|
||||||
<ClInclude Include="..\CCTween.h" />
|
<ClInclude Include="..\CCTween.h" />
|
||||||
<ClInclude Include="..\CCUtilMath.h" />
|
<ClInclude Include="..\CCUtilMath.h" />
|
||||||
<ClInclude Include="..\CocoLoader.h" />
|
<ClInclude Include="..\CocoLoader.h" />
|
||||||
<ClInclude Include="..\CSParseBinary.pb.h" />
|
|
||||||
<ClInclude Include="..\DictionaryHelper.h" />
|
<ClInclude Include="..\DictionaryHelper.h" />
|
||||||
<ClInclude Include="..\TriggerBase.h" />
|
<ClInclude Include="..\TriggerBase.h" />
|
||||||
<ClInclude Include="..\TriggerMng.h" />
|
<ClInclude Include="..\TriggerMng.h" />
|
||||||
|
|
|
@ -241,18 +241,15 @@
|
||||||
<ClCompile Include="..\ActionTimeline\CCFrame.cpp">
|
<ClCompile Include="..\ActionTimeline\CCFrame.cpp">
|
||||||
<Filter>TimelineAction</Filter>
|
<Filter>TimelineAction</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\ActionTimeline\CCNodeReader.cpp">
|
||||||
|
<Filter>TimelineAction</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\ActionTimeline\CCTimeLine.cpp">
|
<ClCompile Include="..\ActionTimeline\CCTimeLine.cpp">
|
||||||
<Filter>TimelineAction</Filter>
|
<Filter>TimelineAction</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\CocoLoader.cpp">
|
<ClCompile Include="..\CocoLoader.cpp">
|
||||||
<Filter>json</Filter>
|
<Filter>json</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\CSParseBinary.pb.cc">
|
|
||||||
<Filter>json</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\ActionTimeline\CSLoader.cpp">
|
|
||||||
<Filter>TimelineAction</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\CCComAttribute.h">
|
<ClInclude Include="..\CCComAttribute.h">
|
||||||
|
@ -445,6 +442,9 @@
|
||||||
<ClInclude Include="..\ActionTimeline\CCFrame.h">
|
<ClInclude Include="..\ActionTimeline\CCFrame.h">
|
||||||
<Filter>TimelineAction</Filter>
|
<Filter>TimelineAction</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\ActionTimeline\CCNodeReader.h">
|
||||||
|
<Filter>TimelineAction</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClInclude Include="..\ActionTimeline\CCTimeLine.h">
|
<ClInclude Include="..\ActionTimeline\CCTimeLine.h">
|
||||||
<Filter>TimelineAction</Filter>
|
<Filter>TimelineAction</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -454,11 +454,5 @@
|
||||||
<ClInclude Include="..\CocoLoader.h">
|
<ClInclude Include="..\CocoLoader.h">
|
||||||
<Filter>json</Filter>
|
<Filter>json</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\CSParseBinary.pb.h">
|
|
||||||
<Filter>json</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\ActionTimeline\CSLoader.h">
|
|
||||||
<Filter>TimelineAction</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -648,7 +648,12 @@ unsigned char* FileUtils::getFileDataFromZip(const std::string& zipFilePath, con
|
||||||
file = unzOpen(zipFilePath.c_str());
|
file = unzOpen(zipFilePath.c_str());
|
||||||
CC_BREAK_IF(!file);
|
CC_BREAK_IF(!file);
|
||||||
|
|
||||||
|
// FIXME: Other platforms should use upstream minizip like mingw-w64
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
int ret = unzLocateFile(file, filename.c_str(), NULL);
|
||||||
|
#else
|
||||||
int ret = unzLocateFile(file, filename.c_str(), 1);
|
int ret = unzLocateFile(file, filename.c_str(), 1);
|
||||||
|
#endif
|
||||||
CC_BREAK_IF(UNZ_OK != ret);
|
CC_BREAK_IF(UNZ_OK != ret);
|
||||||
|
|
||||||
char filePathA[260];
|
char filePathA[260];
|
||||||
|
|
|
@ -56,6 +56,10 @@ jclass _getClassID(const char *className) {
|
||||||
return _clazz;
|
return _clazz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _detachCurrentThread(void* a) {
|
||||||
|
cocos2d::JniHelper::getJavaVM()->DetachCurrentThread();
|
||||||
|
}
|
||||||
|
|
||||||
namespace cocos2d {
|
namespace cocos2d {
|
||||||
|
|
||||||
JavaVM* JniHelper::_psJavaVM = nullptr;
|
JavaVM* JniHelper::_psJavaVM = nullptr;
|
||||||
|
@ -73,7 +77,7 @@ namespace cocos2d {
|
||||||
LOGD("JniHelper::setJavaVM(%p), pthread_self() = %ld", javaVM, thisthread);
|
LOGD("JniHelper::setJavaVM(%p), pthread_self() = %ld", javaVM, thisthread);
|
||||||
_psJavaVM = javaVM;
|
_psJavaVM = javaVM;
|
||||||
|
|
||||||
pthread_key_create(&g_key, nullptr);
|
pthread_key_create(&g_key, _detachCurrentThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEnv* JniHelper::cacheEnv(JavaVM* jvm) {
|
JNIEnv* JniHelper::cacheEnv(JavaVM* jvm) {
|
||||||
|
@ -89,11 +93,6 @@ namespace cocos2d {
|
||||||
|
|
||||||
case JNI_EDETACHED :
|
case JNI_EDETACHED :
|
||||||
// Thread not attached
|
// Thread not attached
|
||||||
|
|
||||||
// TODO : If calling AttachCurrentThread() on a native thread
|
|
||||||
// must call DetachCurrentThread() in future.
|
|
||||||
// see: http://developer.android.com/guide/practices/design/jni.html
|
|
||||||
|
|
||||||
if (jvm->AttachCurrentThread(&_env, nullptr) < 0)
|
if (jvm->AttachCurrentThread(&_env, nullptr) < 0)
|
||||||
{
|
{
|
||||||
LOGE("Failed to get the environment using AttachCurrentThread()");
|
LOGE("Failed to get the environment using AttachCurrentThread()");
|
||||||
|
|
|
@ -88,7 +88,7 @@ const char * Application::getCurrentLanguageCode()
|
||||||
// get the current language code.(such as English is "en", Chinese is "zh" and so on)
|
// get the current language code.(such as English is "en", Chinese is "zh" and so on)
|
||||||
NSDictionary* temp = [NSLocale componentsFromLocaleIdentifier:currentLanguage];
|
NSDictionary* temp = [NSLocale componentsFromLocaleIdentifier:currentLanguage];
|
||||||
NSString * languageCode = [temp objectForKey:NSLocaleLanguageCode];
|
NSString * languageCode = [temp objectForKey:NSLocaleLanguageCode];
|
||||||
[languageCode getCString:code maxLength:2 encoding:NSASCIIStringEncoding];
|
[languageCode getCString:code maxLength:3 encoding:NSASCIIStringEncoding];
|
||||||
code[2]='\0';
|
code[2]='\0';
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,7 @@ const char * Application::getCurrentLanguageCode()
|
||||||
// get the current language code.(such as English is "en", Chinese is "zh" and so on)
|
// get the current language code.(such as English is "en", Chinese is "zh" and so on)
|
||||||
NSDictionary* temp = [NSLocale componentsFromLocaleIdentifier:currentLanguage];
|
NSDictionary* temp = [NSLocale componentsFromLocaleIdentifier:currentLanguage];
|
||||||
NSString * languageCode = [temp objectForKey:NSLocaleLanguageCode];
|
NSString * languageCode = [temp objectForKey:NSLocaleLanguageCode];
|
||||||
[languageCode getCString:code maxLength:2 encoding:NSASCIIStringEncoding];
|
[languageCode getCString:code maxLength:3 encoding:NSASCIIStringEncoding];
|
||||||
code[2]='\0';
|
code[2]='\0';
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
--------------------------------
|
--------------------------------
|
||||||
-- brief Get a UTF8 substring from a std::string with a given start position and length<br>
|
-- brief Get a UTF8 substring from a std::string with a given start position and length<br>
|
||||||
-- Sample: std::string str = "中国中国中国”; substr = getSubStringOfUTF8String(str,0,2) will = "中国"<br>
|
-- Sample: std::string str = "中国中国中国"; substr = getSubStringOfUTF8String(str,0,2) will = "中国"<br>
|
||||||
-- param start The start position of the substring.<br>
|
-- param start The start position of the substring.<br>
|
||||||
-- param length The length of the substring in UTF8 count<br>
|
-- param length The length of the substring in UTF8 count<br>
|
||||||
-- return a UTF8 substring
|
-- return a UTF8 substring
|
||||||
|
|
|
@ -37,7 +37,7 @@ static const int NORMAL_RENDERER_Z = (-2);
|
||||||
static const int PRESSED_RENDERER_Z = (-2);
|
static const int PRESSED_RENDERER_Z = (-2);
|
||||||
static const int DISABLED_RENDERER_Z = (-2);
|
static const int DISABLED_RENDERER_Z = (-2);
|
||||||
static const int TITLE_RENDERER_Z = (-1);
|
static const int TITLE_RENDERER_Z = (-1);
|
||||||
static const float ZOOM_ACTION_TIME_STEP = 0.05;
|
static const float ZOOM_ACTION_TIME_STEP = 0.05f;
|
||||||
|
|
||||||
IMPLEMENT_CLASS_GUI_INFO(Button)
|
IMPLEMENT_CLASS_GUI_INFO(Button)
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get a UTF8 substring from a std::string with a given start position and length
|
* @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 = "中国"
|
* Sample: std::string str = "中国中国中国"; substr = getSubStringOfUTF8String(str,0,2) will = "中国"
|
||||||
* @param start The start position of the substring.
|
* @param start The start position of the substring.
|
||||||
* @param length The length of the substring in UTF8 count
|
* @param length The length of the substring in UTF8 count
|
||||||
* @return a UTF8 substring
|
* @return a UTF8 substring
|
||||||
|
|
|
@ -1772,8 +1772,8 @@ bool Layout::isWidgetAncestorSupportLoopFocus(Widget* widget, FocusDirection di
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CCASSERT(0, "invalid layout type");
|
CCASSERT(0, "invalid layout type");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1781,9 +1781,6 @@ bool Layout::isWidgetAncestorSupportLoopFocus(Widget* widget, FocusDirection di
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Widget* Layout::findNextFocusedWidget(FocusDirection direction, Widget* current)
|
Widget* Layout::findNextFocusedWidget(FocusDirection direction, Widget* current)
|
||||||
{
|
{
|
||||||
if (_isFocusPassing || this->isFocused())
|
if (_isFocusPassing || this->isFocused())
|
||||||
|
|
|
@ -149,7 +149,8 @@ namespace ui {
|
||||||
|
|
||||||
bool Scale9Sprite::initWithBatchNode(cocos2d::SpriteBatchNode *batchnode, const cocos2d::Rect &rect, const cocos2d::Rect &capInsets)
|
bool Scale9Sprite::initWithBatchNode(cocos2d::SpriteBatchNode *batchnode, const cocos2d::Rect &rect, const cocos2d::Rect &capInsets)
|
||||||
{
|
{
|
||||||
return initWithBatchNode(batchnode, rect, false, capInsets);
|
auto sprite = Sprite::createWithTexture(batchnode->getTexture());
|
||||||
|
return init(sprite, rect, false, capInsets);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TRANSLATE_X(x, y, xtranslate) \
|
#define TRANSLATE_X(x, y, xtranslate) \
|
||||||
|
|
|
@ -287,8 +287,8 @@ void StopAllActionsTest::onEnter()
|
||||||
auto pRepeatMove = RepeatForever::create(pSequenceMove);
|
auto pRepeatMove = RepeatForever::create(pSequenceMove);
|
||||||
pRepeatMove->setTag(kTagSequence);
|
pRepeatMove->setTag(kTagSequence);
|
||||||
|
|
||||||
auto pScale1 = ScaleBy::create(2, 1.5);
|
auto pScale1 = ScaleBy::create(2, 1.5f);
|
||||||
auto pScale2 = ScaleBy::create(2, 1.0/1.5);
|
auto pScale2 = ScaleBy::create(2, 1.0f/1.5f);
|
||||||
auto pSequenceScale = Sequence::createWithTwoActions(pScale1, pScale2);
|
auto pSequenceScale = Sequence::createWithTwoActions(pScale1, pScale2);
|
||||||
auto pRepeatScale = RepeatForever::create(pSequenceScale);
|
auto pRepeatScale = RepeatForever::create(pSequenceScale);
|
||||||
pRepeatScale->setTag(kTagSequence);
|
pRepeatScale->setTag(kTagSequence);
|
||||||
|
|
|
@ -260,7 +260,7 @@ void Camera3DTestDemo::onEnter()
|
||||||
addChild(layer3D,0);
|
addChild(layer3D,0);
|
||||||
_layer3D=layer3D;
|
_layer3D=layer3D;
|
||||||
_curState=State_None;
|
_curState=State_None;
|
||||||
addNewSpriteWithCoords( Vec3(0,0,0),"Sprite3DTest/girl.c3b",true,0.2,true);
|
addNewSpriteWithCoords( Vec3(0,0,0),"Sprite3DTest/girl.c3b",true,0.2f,true);
|
||||||
TTFConfig ttfConfig("fonts/arial.ttf", 20);
|
TTFConfig ttfConfig("fonts/arial.ttf", 20);
|
||||||
auto label1 = Label::createWithTTF(ttfConfig,"zoom out");
|
auto label1 = Label::createWithTTF(ttfConfig,"zoom out");
|
||||||
auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(Camera3DTestDemo::scaleCameraCallback,this,1));
|
auto menuItem1 = MenuItemLabel::create(label1, CC_CALLBACK_1(Camera3DTestDemo::scaleCameraCallback,this,1));
|
||||||
|
@ -397,8 +397,8 @@ void Camera3DTestDemo::onTouchesMoved(const std::vector<Touch*>& touches, cocos2
|
||||||
cameraRightDir.normalize();
|
cameraRightDir.normalize();
|
||||||
cameraRightDir.y = 0;
|
cameraRightDir.y = 0;
|
||||||
Vec3 cameraPos = _camera->getPosition3D();
|
Vec3 cameraPos = _camera->getPosition3D();
|
||||||
cameraPos+=cameraDir*newPos.y*0.1;
|
cameraPos += cameraDir*newPos.y * 0.1f;
|
||||||
cameraPos+=cameraRightDir*newPos.x*0.1;
|
cameraPos += cameraRightDir * newPos.x * 0.1f;
|
||||||
_camera->setPosition3D(cameraPos);
|
_camera->setPosition3D(cameraPos);
|
||||||
if(_sprite3D && _cameraType == CameraType::FirstCamera)
|
if(_sprite3D && _cameraType == CameraType::FirstCamera)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1092,7 +1092,7 @@ void ClippingToRenderTextureTest::reproduceBug()
|
||||||
rt->setPosition(visibleSize.width/2, visibleSize.height/2);
|
rt->setPosition(visibleSize.width/2, visibleSize.height/2);
|
||||||
this->addChild(rt);
|
this->addChild(rt);
|
||||||
|
|
||||||
rt->beginWithClear(0.3, 0, 0, 1);
|
rt->beginWithClear(0.3f, 0, 0, 1);
|
||||||
container->visit();
|
container->visit();
|
||||||
rt->end();
|
rt->end();
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,13 @@ CurrentLanguageTest::CurrentLanguageTest()
|
||||||
auto labelLanguage = Label::createWithTTF("", "fonts/arial.ttf", 20);
|
auto labelLanguage = Label::createWithTTF("", "fonts/arial.ttf", 20);
|
||||||
labelLanguage->setPosition(VisibleRect::center());
|
labelLanguage->setPosition(VisibleRect::center());
|
||||||
|
|
||||||
|
auto labelLanguageCode = Label::createWithTTF("", "fonts/arial.ttf", 20);
|
||||||
|
labelLanguageCode->setPosition(VisibleRect::center().x, VisibleRect::center().y-50);
|
||||||
|
|
||||||
|
const char* currentLanguageCode = Application::getInstance()->getCurrentLanguageCode();
|
||||||
|
|
||||||
|
labelLanguageCode->setString(currentLanguageCode);
|
||||||
|
|
||||||
LanguageType currentLanguageType = Application::getInstance()->getCurrentLanguage();
|
LanguageType currentLanguageType = Application::getInstance()->getCurrentLanguage();
|
||||||
switch (currentLanguageType)
|
switch (currentLanguageType)
|
||||||
{
|
{
|
||||||
|
@ -63,6 +70,7 @@ CurrentLanguageTest::CurrentLanguageTest()
|
||||||
}
|
}
|
||||||
|
|
||||||
addChild(labelLanguage);
|
addChild(labelLanguage);
|
||||||
|
addChild(labelLanguageCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CurrentLanguageTestScene::runThisTest()
|
void CurrentLanguageTestScene::runThisTest()
|
||||||
|
|
|
@ -1263,13 +1263,13 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesBegan(const std::vector<Touch*>& t
|
||||||
for (auto touch: touches)
|
for (auto touch: touches)
|
||||||
{
|
{
|
||||||
auto location = touch->getLocationInView();
|
auto location = touch->getLocationInView();
|
||||||
|
auto obbSize = _obb.size();
|
||||||
if(_obb.size() > 0)
|
if(obbSize)
|
||||||
{
|
{
|
||||||
_intersetList.clear();
|
_intersetList.clear();
|
||||||
Ray ray;
|
Ray ray;
|
||||||
calculateRayByLocationInView(&ray,location);
|
calculateRayByLocationInView(&ray,location);
|
||||||
for(int i = 0; i < _obb.size(); i++)
|
for(decltype(obbSize) i = 0; i < obbSize; i++)
|
||||||
{
|
{
|
||||||
if(ray.intersects(_obb[i]))
|
if(ray.intersects(_obb[i]))
|
||||||
{
|
{
|
||||||
|
@ -1291,8 +1291,9 @@ void Sprite3DWithOBBPerfromanceTest::onTouchesMoved(const std::vector<Touch*>& t
|
||||||
for (auto touch: touches)
|
for (auto touch: touches)
|
||||||
{
|
{
|
||||||
auto location = touch->getLocation();
|
auto location = touch->getLocation();
|
||||||
|
auto obbSize = _obb.size();
|
||||||
|
|
||||||
for(int i = 0; i < _obb.size(); i++)
|
for(decltype(obbSize) i = 0; i < obbSize; i++)
|
||||||
{
|
{
|
||||||
if(_intersetList.find(i) != _intersetList.end())
|
if(_intersetList.find(i) != _intersetList.end())
|
||||||
_obb[i]._center = Vec3(location.x,location.y,0);
|
_obb[i]._center = Vec3(location.x,location.y,0);
|
||||||
|
@ -1329,7 +1330,8 @@ void Sprite3DWithOBBPerfromanceTest::update(float dt)
|
||||||
if(_obb.size() > 0)
|
if(_obb.size() > 0)
|
||||||
{
|
{
|
||||||
_drawOBB->clear();
|
_drawOBB->clear();
|
||||||
for(int i =0; i < _obb.size(); i++)
|
auto obbSize = _obb.size();
|
||||||
|
for(decltype(obbSize) i =0; i < obbSize; i++)
|
||||||
{
|
{
|
||||||
Vec3 corners[8] = {};
|
Vec3 corners[8] = {};
|
||||||
_obb[i].getCorners(corners);
|
_obb[i].getCorners(corners);
|
||||||
|
|
|
@ -41,7 +41,7 @@ bool UIButtonTest::init()
|
||||||
button->getContentSize().height);
|
button->getContentSize().height);
|
||||||
button->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
button->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f));
|
||||||
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTest::touchEvent, this));
|
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTest::touchEvent, this));
|
||||||
button->setZoomScale(0.4);
|
button->setZoomScale(0.4f);
|
||||||
button->setPressedActionEnabled(true);
|
button->setPressedActionEnabled(true);
|
||||||
_uiLayer->addChild(button);
|
_uiLayer->addChild(button);
|
||||||
button->setOpacity(100);
|
button->setOpacity(100);
|
||||||
|
@ -306,8 +306,8 @@ bool UIButtonTest_Title::init()
|
||||||
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTest_Title::touchEvent, this));
|
button->addTouchEventListener(CC_CALLBACK_2(UIButtonTest_Title::touchEvent, this));
|
||||||
_uiLayer->addChild(button);
|
_uiLayer->addChild(button);
|
||||||
|
|
||||||
button->runAction(RepeatForever::create(Sequence::create(ScaleTo::create(1., 1.2),
|
button->runAction(RepeatForever::create(Sequence::create(ScaleTo::create(1.0f, 1.2f),
|
||||||
ScaleTo::create(1.0, 1.0),nullptr)));
|
ScaleTo::create(1.0f, 1.0f),nullptr)));
|
||||||
|
|
||||||
|
|
||||||
TextBMFont *text = TextBMFont::create("BMFont", "cocosui/bitmapFontTest2.fnt");
|
TextBMFont *text = TextBMFont::create("BMFont", "cocosui/bitmapFontTest2.fnt");
|
||||||
|
@ -394,7 +394,7 @@ bool UIButtonTestRemoveSelf::init()
|
||||||
_uiLayer->addChild(alert);
|
_uiLayer->addChild(alert);
|
||||||
|
|
||||||
Layout *layout = Layout::create();
|
Layout *layout = Layout::create();
|
||||||
layout->setContentSize(widgetSize * 0.6);
|
layout->setContentSize(widgetSize * 0.6f);
|
||||||
layout->setBackGroundColor(Color3B::GREEN);
|
layout->setBackGroundColor(Color3B::GREEN);
|
||||||
layout->setBackGroundColorType(Layout::BackGroundColorType::SOLID);
|
layout->setBackGroundColorType(Layout::BackGroundColorType::SOLID);
|
||||||
layout->setBackGroundColorOpacity(100);
|
layout->setBackGroundColorOpacity(100);
|
||||||
|
@ -633,12 +633,12 @@ bool UIButtonTextOnly::init()
|
||||||
|
|
||||||
// Create the button
|
// Create the button
|
||||||
auto button = Button::create();
|
auto button = Button::create();
|
||||||
button->setNormalizedPosition(Vec2(0.5, 0.5));
|
button->setNormalizedPosition(Vec2(0.5f, 0.5f));
|
||||||
|
|
||||||
button->setTitleText("PLAY GAME");
|
button->setTitleText("PLAY GAME");
|
||||||
CCLOG("content size should be greater than 0: width = %f, height = %f", button->getContentSize().width,
|
CCLOG("content size should be greater than 0: width = %f, height = %f", button->getContentSize().width,
|
||||||
button->getContentSize().height);
|
button->getContentSize().height);
|
||||||
button->setZoomScale(0.3);
|
button->setZoomScale(0.3f);
|
||||||
button->setPressedActionEnabled(true);
|
button->setPressedActionEnabled(true);
|
||||||
button->addClickEventListener([this](Ref* sender) {
|
button->addClickEventListener([this](Ref* sender) {
|
||||||
CCLOG("clicked!");
|
CCLOG("clicked!");
|
||||||
|
@ -687,13 +687,13 @@ bool UIButtonIgnoreContentSizeTest::init()
|
||||||
"cocosui/animationbuttonpressed.png");
|
"cocosui/animationbuttonpressed.png");
|
||||||
button->ignoreContentAdaptWithSize(false);
|
button->ignoreContentAdaptWithSize(false);
|
||||||
button->setContentSize(Size(200,100));
|
button->setContentSize(Size(200,100));
|
||||||
button->setNormalizedPosition(Vec2(0.3, 0.5));
|
button->setNormalizedPosition(Vec2(0.3f, 0.5f));
|
||||||
button->setTitleText("PLAY GAME");
|
button->setTitleText("PLAY GAME");
|
||||||
button->setZoomScale(0.3);
|
button->setZoomScale(0.3f);
|
||||||
button->setPressedActionEnabled(true);
|
button->setPressedActionEnabled(true);
|
||||||
button->addClickEventListener([=](Ref* sender) {
|
button->addClickEventListener([=](Ref* sender) {
|
||||||
CCLOG("clicked!");
|
CCLOG("clicked!");
|
||||||
button->setScale(1.2);
|
button->setScale(1.2f);
|
||||||
});
|
});
|
||||||
_uiLayer->addChild(button);
|
_uiLayer->addChild(button);
|
||||||
|
|
||||||
|
@ -702,12 +702,12 @@ bool UIButtonIgnoreContentSizeTest::init()
|
||||||
"cocosui/animationbuttonpressed.png");
|
"cocosui/animationbuttonpressed.png");
|
||||||
button2->ignoreContentAdaptWithSize(false);
|
button2->ignoreContentAdaptWithSize(false);
|
||||||
button2->setContentSize(Size(200,100));
|
button2->setContentSize(Size(200,100));
|
||||||
button2->setNormalizedPosition(Vec2(0.8, 0.5));
|
button2->setNormalizedPosition(Vec2(0.8f, 0.5f));
|
||||||
button2->setTitleText("PLAY GAME");
|
button2->setTitleText("PLAY GAME");
|
||||||
button2->setZoomScale(0.3);
|
button2->setZoomScale(0.3f);
|
||||||
button2->setPressedActionEnabled(true);
|
button2->setPressedActionEnabled(true);
|
||||||
button2->addClickEventListener([=](Ref* sender) {
|
button2->addClickEventListener([=](Ref* sender) {
|
||||||
button2->runAction(ScaleTo::create(1.0, 1.2));
|
button2->runAction(ScaleTo::create(1.0f, 1.2f));
|
||||||
CCLOG("clicked!");
|
CCLOG("clicked!");
|
||||||
});
|
});
|
||||||
_uiLayer->addChild(button2);
|
_uiLayer->addChild(button2);
|
||||||
|
@ -753,11 +753,11 @@ bool UIButtonTitleEffectTest::init()
|
||||||
// Create the button
|
// Create the button
|
||||||
auto button = Button::create("cocosui/animationbuttonnormal.png",
|
auto button = Button::create("cocosui/animationbuttonnormal.png",
|
||||||
"cocosui/animationbuttonpressed.png");
|
"cocosui/animationbuttonpressed.png");
|
||||||
button->setNormalizedPosition(Vec2(0.3, 0.5));
|
button->setNormalizedPosition(Vec2(0.3f, 0.5f));
|
||||||
button->setTitleText("PLAY GAME");
|
button->setTitleText("PLAY GAME");
|
||||||
button->setTitleFontName("fonts/Marker Felt.ttf");
|
button->setTitleFontName("fonts/Marker Felt.ttf");
|
||||||
button->setZoomScale(0.3);
|
button->setZoomScale(0.3f);
|
||||||
button->setScale(2.0);
|
button->setScale(2.0f);
|
||||||
button->setPressedActionEnabled(true);
|
button->setPressedActionEnabled(true);
|
||||||
Label *title = button->getTitleRenderer();
|
Label *title = button->getTitleRenderer();
|
||||||
button->setTitleColor(Color3B::RED);
|
button->setTitleColor(Color3B::RED);
|
||||||
|
@ -769,7 +769,7 @@ bool UIButtonTitleEffectTest::init()
|
||||||
// Create the button
|
// Create the button
|
||||||
auto button2 = Button::create("cocosui/animationbuttonnormal.png",
|
auto button2 = Button::create("cocosui/animationbuttonnormal.png",
|
||||||
"cocosui/animationbuttonpressed.png");
|
"cocosui/animationbuttonpressed.png");
|
||||||
button2->setNormalizedPosition(Vec2(0.8, 0.5));
|
button2->setNormalizedPosition(Vec2(0.8f, 0.5f));
|
||||||
button2->setTitleText("PLAY GAME");
|
button2->setTitleText("PLAY GAME");
|
||||||
auto title2 = button2->getTitleRenderer();
|
auto title2 = button2->getTitleRenderer();
|
||||||
title2->enableOutline(Color4B::GREEN, 3);
|
title2->enableOutline(Color4B::GREEN, 3);
|
||||||
|
|
|
@ -58,8 +58,6 @@ bool UIScale9SpriteTest::init()
|
||||||
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
normalSprite2->setPosition(120, 270);
|
normalSprite2->setPosition(120, 270);
|
||||||
normalSprite2->setScale9Enabled(false);
|
normalSprite2->setScale9Enabled(false);
|
||||||
// normalSprite2->setContentSize(Size(100,100));
|
|
||||||
// normalSprite2->setAnchorPoint(Vec2(0.5,0.5));
|
|
||||||
normalSprite2->setOpacity(100);
|
normalSprite2->setOpacity(100);
|
||||||
this->addChild(normalSprite2);
|
this->addChild(normalSprite2);
|
||||||
normalSprite2->setColor(Color3B::GREEN);
|
normalSprite2->setColor(Color3B::GREEN);
|
||||||
|
@ -68,16 +66,15 @@ bool UIScale9SpriteTest::init()
|
||||||
auto action2 = action->clone();
|
auto action2 = action->clone();
|
||||||
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
sp1->setPosition(100, 160);
|
sp1->setPosition(100, 160);
|
||||||
sp1->setScale(1.2);
|
sp1->setScale(1.2f);
|
||||||
sp1->setContentSize(Size(100,100));
|
sp1->setContentSize(Size(100,100));
|
||||||
sp1->setColor(Color3B::GREEN);
|
sp1->setColor(Color3B::GREEN);
|
||||||
// sp1->setScale9Enabled(false);
|
|
||||||
this->addChild(sp1);
|
this->addChild(sp1);
|
||||||
sp1->runAction((FiniteTimeAction*)action2);
|
sp1->runAction((FiniteTimeAction*)action2);
|
||||||
|
|
||||||
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
sp2->setPosition(350, 160);
|
sp2->setPosition(350, 160);
|
||||||
sp2->setPreferredSize(sp1->getContentSize() * 1.2);
|
sp2->setPreferredSize(sp1->getContentSize() * 1.2f);
|
||||||
sp2->setColor(Color3B::GREEN);
|
sp2->setColor(Color3B::GREEN);
|
||||||
sp2->setContentSize(Size(100,100));
|
sp2->setContentSize(Size(100,100));
|
||||||
|
|
||||||
|
@ -106,55 +103,41 @@ bool UIScale9SpriteHierarchialTest::init()
|
||||||
{
|
{
|
||||||
Size widgetSize = _widget->getContentSize();
|
Size widgetSize = _widget->getContentSize();
|
||||||
|
|
||||||
auto moveTo = MoveBy::create(1.0, Vec2(30,0));
|
auto moveTo = MoveBy::create(1.0f, Vec2(30,0));
|
||||||
auto moveBack = moveTo->reverse();
|
auto moveBack = moveTo->reverse();
|
||||||
auto rotateBy = RotateBy::create(1.0, 180);
|
auto rotateBy = RotateBy::create(1.0f, 180);
|
||||||
auto fadeOut = FadeOut::create(2.0);
|
auto fadeOut = FadeOut::create(2.0f);
|
||||||
auto action = Sequence::create(moveTo,moveBack, rotateBy,fadeOut, NULL);
|
auto action = Sequence::create(moveTo,moveBack, rotateBy,fadeOut, NULL);
|
||||||
|
|
||||||
|
|
||||||
Sprite *normalSprite1 = Sprite::create("cocosui/animationbuttonnormal.png");
|
Sprite *normalSprite1 = Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
normalSprite1->setPosition(100, 270);
|
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->setCascadeColorEnabled(true);
|
||||||
normalSprite1->setCascadeOpacityEnabled(true);
|
normalSprite1->setCascadeOpacityEnabled(true);
|
||||||
normalSprite1->setColor(Color3B::GREEN);
|
normalSprite1->setColor(Color3B::GREEN);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this->addChild(normalSprite1);
|
this->addChild(normalSprite1);
|
||||||
normalSprite1->runAction((FiniteTimeAction*)action->clone());
|
normalSprite1->runAction((FiniteTimeAction*)action->clone());
|
||||||
|
|
||||||
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
ui::Scale9Sprite *normalSprite2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
// normalSprite2->setPosition(120, 270);
|
|
||||||
normalSprite2->setScale9Enabled(false);
|
normalSprite2->setScale9Enabled(false);
|
||||||
// normalSprite2->setContentSize(Size(100,100));
|
|
||||||
// normalSprite2->setAnchorPoint(Vec2(0.5,0.5));
|
|
||||||
normalSprite2->setOpacity(100);
|
normalSprite2->setOpacity(100);
|
||||||
normalSprite1->addChild(normalSprite2);
|
normalSprite1->addChild(normalSprite2);
|
||||||
|
|
||||||
auto action2 = action->clone();
|
auto action2 = action->clone();
|
||||||
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
ui::Scale9Sprite *sp1 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
sp1->setPosition(200, 160);
|
sp1->setPosition(200, 160);
|
||||||
sp1->setScale(1.2);
|
sp1->setScale(1.2f);
|
||||||
sp1->setContentSize(Size(100,100));
|
sp1->setContentSize(Size(100,100));
|
||||||
sp1->setColor(Color3B::GREEN);
|
sp1->setColor(Color3B::GREEN);
|
||||||
// sp1->setScale9Enabled(false);
|
|
||||||
this->addChild(sp1);
|
this->addChild(sp1);
|
||||||
sp1->runAction((FiniteTimeAction*)action2);
|
sp1->runAction((FiniteTimeAction*)action2);
|
||||||
|
|
||||||
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
cocos2d::ui::Scale9Sprite *sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png");
|
||||||
// sp2->setPosition(350, 160);
|
sp2->setPreferredSize(sp1->getContentSize() * 1.2f);
|
||||||
sp2->setPreferredSize(sp1->getContentSize() * 1.2);
|
|
||||||
sp2->setColor(Color3B::GREEN);
|
sp2->setColor(Color3B::GREEN);
|
||||||
sp2->setContentSize(Size(100,100));
|
sp2->setContentSize(Size(100,100));
|
||||||
|
|
||||||
sp1->addChild(sp2);
|
sp1->addChild(sp2);
|
||||||
// auto action3 = action->clone();
|
|
||||||
// sp2->runAction((FiniteTimeAction*)action3);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c307f62357e42d2e7e671f4741f855dc8a5fde3a
|
Subproject commit 72970e16227dd624de4f9dd11395d4e510646441
|
|
@ -49,7 +49,7 @@ pre_build(${APP_NAME}
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocosdenshion ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocosdenshion ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/network ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/network ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocosbuilder ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocosbuilder ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocostudio ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/cocosstudio ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/extension ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/extension ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/ui ${APP_BIN_DIR}/Resources
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/cocos/scripting/lua-bindings/script/ui ${APP_BIN_DIR}/Resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/tests/cpp-tests/Resources ${APP_BIN_DIR}/Resources/res
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/tests/cpp-tests/Resources ${APP_BIN_DIR}/Resources/res
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"from": "../../../../cocos/scripting/lua-bindings/script/cocostudio",
|
"from": "../../../../cocos/scripting/lua-bindings/script/cocosstudio",
|
||||||
"to": ""
|
"to": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosdenshion" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosdenshion" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\network" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\network" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosbuilder" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosbuilder" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocostudio" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosstudio" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\extension" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\extension" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\ui" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\ui" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\external\lua\luasocket\*.lua" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\external\lua\luasocket\*.lua" "$(ProjectDir)..\..\" /e /Y
|
||||||
|
@ -167,7 +167,7 @@ xcopy "$(ProjectDir)..\..\..\cpp-tests\Resources" "$(ProjectDir)..\..\res" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosdenshion" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosdenshion" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\network" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\network" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosbuilder" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosbuilder" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocostudio" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\cocosstudio" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\extension" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\extension" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\ui" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\cocos\scripting\lua-bindings\script\ui" "$(ProjectDir)..\..\" /e /Y
|
||||||
xcopy "$(ProjectDir)..\..\..\..\external\lua\luasocket\*.lua" "$(ProjectDir)..\..\" /e /Y
|
xcopy "$(ProjectDir)..\..\..\..\external\lua\luasocket\*.lua" "$(ProjectDir)..\..\" /e /Y
|
||||||
|
|
Loading…
Reference in New Issue