From 9fabf3a45b3c07e91698303624c08d5a5ad5c3c9 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 19 Sep 2012 18:41:50 +0800 Subject: [PATCH] fixed #1470: Made CCBReader support cocosbuilder v2.1-beta0. --- extensions/CCBReader/CCBSequence.h | 3 +- extensions/cocos-ext.h | 7 + extensions/proj.win32/libExtensions.vcproj | 56 ++++ extensions/proj.win32/libExtensions.vcxproj | 14 + .../proj.win32/libExtensions.vcxproj.filters | 270 ++++++++++-------- .../AnimationsTest/AnimationsLayerLoader.h | 1 - .../AnimationsTest/AnimationsTestLayer.cpp | 1 - samples/TestCpp/proj.win32/TestCpp.vcproj | 16 ++ samples/TestCpp/proj.win32/TestCpp.vcxproj | 3 + .../proj.win32/TestCpp.vcxproj.filters | 12 + 10 files changed, 266 insertions(+), 117 deletions(-) diff --git a/extensions/CCBReader/CCBSequence.h b/extensions/CCBReader/CCBSequence.h index 55a4a8013a..b253f19888 100644 --- a/extensions/CCBReader/CCBSequence.h +++ b/extensions/CCBReader/CCBSequence.h @@ -1,8 +1,9 @@ #ifndef __CCB_CCSEQUENCE_H__ #define __CCB_CCSEQUENCE_H__ -#include "cocos-ext.h" #include +#include "cocos2d.h" +#include "ExtensionMacros.h" NS_CC_EXT_BEGIN diff --git a/extensions/cocos-ext.h b/extensions/cocos-ext.h index 8842b1ceeb..55d9bb6f04 100644 --- a/extensions/cocos-ext.h +++ b/extensions/cocos-ext.h @@ -24,6 +24,13 @@ #include "CCBReader/CCScale9SpriteLoader.h" #include "CCBReader/CCScrollViewLoader.h" #include "CCBReader/CCSpriteLoader.h" +#include "CCBReader/CCBAnimationManager.h" +#include "CCBReader/CCBKeyframe.h" +#include "CCBReader/CCBSequence.h" +#include "CCBReader/CCBSequenceProperty.h" +#include "CCBReader/CCBValue.h" +#include "CCBReader/CCData.h" +#include "CCBReader/CCNode+CCBRelativePositioning.h" #include "GUI/CCControlExtension/CCControlExtensions.h" #include "GUI/CCScrollView/CCScrollView.h" diff --git a/extensions/proj.win32/libExtensions.vcproj b/extensions/proj.win32/libExtensions.vcproj index 36ad9bc313..8853c4df2e 100644 --- a/extensions/proj.win32/libExtensions.vcproj +++ b/extensions/proj.win32/libExtensions.vcproj @@ -150,6 +150,14 @@ + + + + @@ -158,6 +166,14 @@ RelativePath="..\CCBReader\CCBFileLoader.h" > + + + + @@ -174,6 +190,30 @@ RelativePath="..\CCBReader\CCBSelectorResolver.h" > + + + + + + + + + + + + @@ -190,6 +230,14 @@ RelativePath="..\CCBReader\CCControlLoader.h" > + + + + @@ -250,6 +298,14 @@ RelativePath="..\CCBReader\CCMenuLoader.h" > + + + + diff --git a/extensions/proj.win32/libExtensions.vcxproj b/extensions/proj.win32/libExtensions.vcxproj index 32f9ed95a9..66047eb66e 100644 --- a/extensions/proj.win32/libExtensions.vcxproj +++ b/extensions/proj.win32/libExtensions.vcxproj @@ -79,10 +79,16 @@ + + + + + + @@ -90,6 +96,7 @@ + @@ -115,12 +122,18 @@ + + + + + + @@ -129,6 +142,7 @@ + diff --git a/extensions/proj.win32/libExtensions.vcxproj.filters b/extensions/proj.win32/libExtensions.vcxproj.filters index 3dfab3a3d7..19f47f527d 100644 --- a/extensions/proj.win32/libExtensions.vcxproj.filters +++ b/extensions/proj.win32/libExtensions.vcxproj.filters @@ -18,57 +18,6 @@ - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - GUI\CCControlExtension @@ -120,71 +69,80 @@ GUI\CCScrollView + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - - - CCBReader - GUI\CCControlExtension @@ -247,5 +205,89 @@ GUI\CCScrollView + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + + + CCBReader + \ No newline at end of file diff --git a/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h b/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h index 7038cd9406..3cc435c93f 100644 --- a/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h +++ b/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsLayerLoader.h @@ -2,7 +2,6 @@ #define _ANIMATIONSTESTLAYERLOADER_H_ #include "AnimationsTestLayer.h" -#include "CCNodeLoader.h" /* Forward declaration. */ class CCBReader; diff --git a/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp b/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp index 8769d080d4..b03b5e9939 100644 --- a/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp +++ b/samples/TestCpp/Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp @@ -1,5 +1,4 @@ #include "AnimationsTestLayer.h" -#include "CCBAnimationManager.h" USING_NS_CC; USING_NS_CC_EXT; diff --git a/samples/TestCpp/proj.win32/TestCpp.vcproj b/samples/TestCpp/proj.win32/TestCpp.vcproj index f664a59cc3..0ccd95ae80 100644 --- a/samples/TestCpp/proj.win32/TestCpp.vcproj +++ b/samples/TestCpp/proj.win32/TestCpp.vcproj @@ -1010,6 +1010,22 @@ > + + + + + + + + + @@ -191,6 +192,8 @@ + + diff --git a/samples/TestCpp/proj.win32/TestCpp.vcxproj.filters b/samples/TestCpp/proj.win32/TestCpp.vcxproj.filters index 0f76196539..ee747ea454 100644 --- a/samples/TestCpp/proj.win32/TestCpp.vcxproj.filters +++ b/samples/TestCpp/proj.win32/TestCpp.vcxproj.filters @@ -193,6 +193,9 @@ {2603ae57-b062-4281-9daf-c925634eaeb4} + + {e8752620-8414-4f43-a572-5fa82650f223} + @@ -441,6 +444,9 @@ Classes\ExtensionsTest\TableViewTest + + Classes\ExtensionsTest\AnimationsTest + @@ -863,5 +869,11 @@ Classes\ExtensionsTest\TableViewTest + + Classes\ExtensionsTest\AnimationsTest + + + Classes\ExtensionsTest\AnimationsTest + \ No newline at end of file