mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5985 from andyque/remove_pragma_mark
issue #4401, remove unused pargma mark macro
This commit is contained in:
commit
5e2ffc45ec
|
@ -1458,9 +1458,7 @@ private:
|
||||||
CC_DISALLOW_COPY_AND_ASSIGN(Node);
|
CC_DISALLOW_COPY_AND_ASSIGN(Node);
|
||||||
};
|
};
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// NodeRGBA
|
||||||
//#pragma mark - NodeRGBA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** NodeRGBA is a subclass of Node that implements the RGBAProtocol protocol.
|
/** NodeRGBA is a subclass of Node that implements the RGBAProtocol protocol.
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,7 @@ using namespace std;
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// Profiling Categories
|
||||||
//#pragma mark - Profiling Categories
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* set to false the categories that you don't want to profile */
|
/* set to false the categories that you don't want to profile */
|
||||||
bool kProfilerCategorySprite = false;
|
bool kProfilerCategorySprite = false;
|
||||||
bool kProfilerCategoryBatchSprite = false;
|
bool kProfilerCategoryBatchSprite = false;
|
||||||
|
|
|
@ -41,10 +41,8 @@ bool CC_DLL cc_assert_script_compatible(const char *msg)
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
// #pragma mark -
|
// // ScriptHandlerEntry
|
||||||
// #pragma mark ScriptHandlerEntry
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ScriptHandlerEntry* ScriptHandlerEntry::create(int handler)
|
ScriptHandlerEntry* ScriptHandlerEntry::create(int handler)
|
||||||
{
|
{
|
||||||
|
@ -63,10 +61,8 @@ ScriptHandlerEntry::~ScriptHandlerEntry(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
// #pragma mark -
|
// // SchedulerScriptHandlerEntry
|
||||||
// #pragma mark SchedulerScriptHandlerEntry
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SchedulerScriptHandlerEntry* SchedulerScriptHandlerEntry::create(int handler, float interval, bool paused)
|
SchedulerScriptHandlerEntry* SchedulerScriptHandlerEntry::create(int handler, float interval, bool paused)
|
||||||
{
|
{
|
||||||
|
@ -91,10 +87,9 @@ SchedulerScriptHandlerEntry::~SchedulerScriptHandlerEntry(void)
|
||||||
LUALOG("[LUA] DEL script schedule %d, entryID: %d", _handler, _entryId);
|
LUALOG("[LUA] DEL script schedule %d, entryID: %d", _handler, _entryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
// #pragma mark -
|
//
|
||||||
// #pragma mark TouchScriptHandlerEntry
|
// // TouchScriptHandlerEntry
|
||||||
#endif
|
|
||||||
|
|
||||||
TouchScriptHandlerEntry* TouchScriptHandlerEntry::create(int handler,
|
TouchScriptHandlerEntry* TouchScriptHandlerEntry::create(int handler,
|
||||||
bool isMultiTouches,
|
bool isMultiTouches,
|
||||||
|
@ -120,10 +115,8 @@ bool TouchScriptHandlerEntry::init(bool isMultiTouches, int priority, bool swall
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
// #pragma mark -
|
// // ScriptEngineManager
|
||||||
// #pragma mark ScriptEngineManager
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static ScriptEngineManager* s_pSharedScriptEngineManager = nullptr;
|
static ScriptEngineManager* s_pSharedScriptEngineManager = nullptr;
|
||||||
|
|
||||||
|
|
|
@ -278,10 +278,8 @@ void ccArrayFullRemoveArray(ccArray *arr, ccArray *minusArr)
|
||||||
arr->num -= back;
|
arr->num -= back;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
// #pragma mark -
|
// // ccCArray for Values (c structures)
|
||||||
// #pragma mark ccCArray for Values (c structures)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/** Allocates and initializes a new C array with specified capacity */
|
/** Allocates and initializes a new C array with specified capacity */
|
||||||
ccCArray* ccCArrayNew(ssize_t capacity)
|
ccCArray* ccCArrayNew(ssize_t capacity)
|
||||||
|
|
|
@ -130,10 +130,8 @@ void ccArrayRemoveArray(ccArray *arr, ccArray *minusArr);
|
||||||
matching instances in arr will be removed. */
|
matching instances in arr will be removed. */
|
||||||
void ccArrayFullRemoveArray(ccArray *arr, ccArray *minusArr);
|
void ccArrayFullRemoveArray(ccArray *arr, ccArray *minusArr);
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
// #pragma mark -
|
// // ccCArray for Values (c structures)
|
||||||
// #pragma mark ccCArray for Values (c structures)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct _ccCArray {
|
typedef struct _ccCArray {
|
||||||
ssize_t num, max;
|
ssize_t num, max;
|
||||||
|
|
|
@ -217,9 +217,7 @@ void bindVAO(GLuint vaoId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// GL Vertex Attrib functions
|
||||||
//#pragma mark - GL Vertex Attrib functions
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void enableVertexAttribs( unsigned int flags )
|
void enableVertexAttribs( unsigned int flags )
|
||||||
{
|
{
|
||||||
|
@ -262,9 +260,8 @@ void enableVertexAttribs( unsigned int flags )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// GL Uniforms functions
|
||||||
//#pragma mark - GL Uniforms functions
|
|
||||||
#endif
|
|
||||||
void setProjectionMatrixDirty( void )
|
void setProjectionMatrixDirty( void )
|
||||||
{
|
{
|
||||||
s_currentProjectionMatrix = -1;
|
s_currentProjectionMatrix = -1;
|
||||||
|
|
|
@ -30,12 +30,9 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "cocostudio/ObjectFactory.h"
|
#include "cocostudio/ObjectFactory.h"
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
#pragma mark -
|
//// Widget macro
|
||||||
#pragma mark Widget macro
|
//
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define DECLARE_CLASS_GUI_INFO \
|
#define DECLARE_CLASS_GUI_INFO \
|
||||||
public: \
|
public: \
|
||||||
|
@ -53,12 +50,9 @@
|
||||||
cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
|
cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
|
||||||
|
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//
|
||||||
#pragma mark -
|
//// Reader macro
|
||||||
#pragma mark Reader macro
|
//
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define DECLARE_CLASS_WIDGET_READER_INFO \
|
#define DECLARE_CLASS_WIDGET_READER_INFO \
|
||||||
public: \
|
public: \
|
||||||
|
|
|
@ -129,7 +129,7 @@ ControlStepper* ControlStepper::create(Sprite *minusSprite, Sprite *plusSprite)
|
||||||
return pRet;
|
return pRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#pragma mark Properties
|
//// Properties
|
||||||
|
|
||||||
void ControlStepper::setWraps(bool wraps)
|
void ControlStepper::setWraps(bool wraps)
|
||||||
{
|
{
|
||||||
|
@ -190,11 +190,8 @@ bool ControlStepper::isContinuous() const
|
||||||
{
|
{
|
||||||
return _continuous;
|
return _continuous;
|
||||||
}
|
}
|
||||||
|
//
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
//// ControlStepper Public Methods
|
||||||
//#pragma mark -
|
|
||||||
//#pragma mark ControlStepper Public Methods
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ControlStepper::setValueWithSendingEvent(double value, bool send)
|
void ControlStepper::setValueWithSendingEvent(double value, bool send)
|
||||||
{
|
{
|
||||||
|
@ -249,7 +246,7 @@ void ControlStepper::update(float dt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//#pragma mark ControlStepper Private Methods
|
//// ControlStepper Private Methods
|
||||||
|
|
||||||
void ControlStepper::updateLayoutUsingTouchLocation(Point location)
|
void ControlStepper::updateLayoutUsingTouchLocation(Point location)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1432,9 +1432,7 @@ std::string ActionTargetedReverse::subtitle() const
|
||||||
return "Action that runs reversely on another target. Useful for sequences";
|
return "Action that runs reversely on another target. Useful for sequences";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ActionStacked
|
||||||
//#pragma mark - ActionStacked
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ActionStacked::onEnter()
|
void ActionStacked::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -1488,9 +1486,8 @@ std::string ActionStacked::subtitle() const
|
||||||
return "Tap screen";
|
return "Tap screen";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ActionMoveStacked
|
||||||
//#pragma mark - ActionMoveStacked
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ActionMoveStacked::runActionsInSprite(Sprite *sprite)
|
void ActionMoveStacked::runActionsInSprite(Sprite *sprite)
|
||||||
{
|
{
|
||||||
|
@ -1516,9 +1513,7 @@ std::string ActionMoveStacked::title() const
|
||||||
return "Stacked MoveBy/To actions";
|
return "Stacked MoveBy/To actions";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ActionMoveJumpStacked
|
||||||
//#pragma mark - ActionMoveJumpStacked
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ActionMoveJumpStacked::runActionsInSprite(Sprite *sprite)
|
void ActionMoveJumpStacked::runActionsInSprite(Sprite *sprite)
|
||||||
{
|
{
|
||||||
|
@ -1543,9 +1538,7 @@ std::string ActionMoveJumpStacked::title() const
|
||||||
return "tacked Move + Jump actions";
|
return "tacked Move + Jump actions";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ActionMoveBezierStacked
|
||||||
//#pragma mark - ActionMoveBezierStacked
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ActionMoveBezierStacked::runActionsInSprite(Sprite *sprite)
|
void ActionMoveBezierStacked::runActionsInSprite(Sprite *sprite)
|
||||||
{
|
{
|
||||||
|
@ -1577,7 +1570,7 @@ std::string ActionMoveBezierStacked::title() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//#pragma mark - ActionCatmullRomStacked
|
// ActionCatmullRomStacked
|
||||||
|
|
||||||
void ActionCatmullRomStacked::onEnter()
|
void ActionCatmullRomStacked::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -1699,9 +1692,7 @@ std::string ActionCatmullRomStacked::subtitle() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ActionCardinalSplineStacked
|
||||||
//#pragma mark - ActionCardinalSplineStacked
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ActionCardinalSplineStacked::onEnter()
|
void ActionCardinalSplineStacked::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -2354,4 +2345,4 @@ void ActionRemoveSelf::onEnter()
|
||||||
std::string ActionRemoveSelf::subtitle() const
|
std::string ActionRemoveSelf::subtitle() const
|
||||||
{
|
{
|
||||||
return "Sequence: Move + Rotate + Scale + RemoveSelf";
|
return "Sequence: Move + Rotate + Scale + RemoveSelf";
|
||||||
}
|
i
|
||||||
|
|
|
@ -66,7 +66,7 @@ static Layer* restartAction()
|
||||||
return layer;
|
return layer;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#pragma mark Demo examples start here
|
//// Demo examples start here
|
||||||
|
|
||||||
//@implementation BaseClippingNodeTest
|
//@implementation BaseClippingNodeTest
|
||||||
|
|
||||||
|
@ -130,9 +130,7 @@ void BaseClippingNodeTest::setup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// BasicTest
|
||||||
//#pragma mark - BasicTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string BasicTest::title() const
|
std::string BasicTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -211,9 +209,7 @@ Node* BasicTest::content()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ShapeTest
|
||||||
//#pragma mark - ShapeTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string ShapeTest::title() const
|
std::string ShapeTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -239,9 +235,8 @@ Node* ShapeTest::content()
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
//#pragma mark - ShapeInvertedTest
|
// ShapeInvertedTest
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string ShapeInvertedTest::title() const
|
std::string ShapeInvertedTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -260,9 +255,7 @@ ClippingNode* ShapeInvertedTest::clipper()
|
||||||
return clipper;
|
return clipper;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// SpriteTest
|
||||||
//#pragma mark - SpriteTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string SpriteTest::title() const
|
std::string SpriteTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -295,9 +288,7 @@ Node* SpriteTest::content()
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// SpriteNoAlphaTest
|
||||||
//#pragma mark - SpriteNoAlphaTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string SpriteNoAlphaTest::title() const
|
std::string SpriteNoAlphaTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -316,9 +307,7 @@ ClippingNode* SpriteNoAlphaTest::clipper()
|
||||||
return clipper;
|
return clipper;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// SpriteInvertedTest
|
||||||
//#pragma mark - SpriteInvertedTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string SpriteInvertedTest::title() const
|
std::string SpriteInvertedTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -338,9 +327,7 @@ ClippingNode* SpriteInvertedTest::clipper()
|
||||||
return clipper;
|
return clipper;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// NestedTest
|
||||||
//#pragma mark - NestedTest
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string NestedTest::title() const
|
std::string NestedTest::title() const
|
||||||
{
|
{
|
||||||
|
@ -385,9 +372,7 @@ void NestedTest::setup()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// HoleDemo
|
||||||
//#pragma mark - HoleDemo
|
|
||||||
#endif
|
|
||||||
|
|
||||||
HoleDemo::~HoleDemo()
|
HoleDemo::~HoleDemo()
|
||||||
{
|
{
|
||||||
|
@ -482,9 +467,7 @@ void HoleDemo::onTouchesBegan(const std::vector<Touch*>& touches, Event* event)
|
||||||
this->pokeHoleAtPoint(point);
|
this->pokeHoleAtPoint(point);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// ScrollViewDemo
|
||||||
//#pragma mark - ScrollViewDemo
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string ScrollViewDemo::title() const
|
std::string ScrollViewDemo::title() const
|
||||||
{
|
{
|
||||||
|
@ -560,9 +543,7 @@ void ScrollViewDemo::onTouchesEnded(const std::vector<Touch*>& touches, Event *
|
||||||
_scrolling = false;
|
_scrolling = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// RawStencilBufferTests
|
||||||
//#pragma mark - RawStencilBufferTests
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#if COCOS2D_DEBUG > 1
|
//#if COCOS2D_DEBUG > 1
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,9 @@
|
||||||
USING_NS_CC;
|
USING_NS_CC;
|
||||||
USING_NS_CC_EXT;
|
USING_NS_CC_EXT;
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
#pragma mark -
|
// CustomImageLayer
|
||||||
#pragma mark CustomImageLayer
|
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void CustomImageLayer::onEnter()
|
void CustomImageLayer::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -30,11 +28,9 @@ void CustomImageLayer::onEnter()
|
||||||
addChild(layout);
|
addChild(layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
#pragma mark -
|
// CustomImageScene
|
||||||
#pragma mark CustomImageScene
|
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void CustomImageScene::onEnter()
|
void CustomImageScene::onEnter()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,11 +18,9 @@ USING_NS_CC_EXT;
|
||||||
using namespace ui;
|
using namespace ui;
|
||||||
using namespace cocostudio;
|
using namespace cocostudio;
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
#pragma mark -
|
// CustomParticleWidgetLayer
|
||||||
#pragma mark CustomParticleWidgetLayer
|
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void CustomParticleWidgetLayer::onEnter()
|
void CustomParticleWidgetLayer::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -40,11 +38,9 @@ void CustomParticleWidgetLayer::onEnter()
|
||||||
addChild(custom, 10, -1);
|
addChild(custom, 10, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
#pragma mark -
|
// CustomImageScene
|
||||||
#pragma mark CustomImageScene
|
|
||||||
#pragma mark -
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void CustomParticleWidgetScene::onEnter()
|
void CustomParticleWidgetScene::onEnter()
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,9 +45,7 @@ void FileUtilsTestScene::runThisTest()
|
||||||
Director::getInstance()->replaceScene(this);
|
Director::getInstance()->replaceScene(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// FileUtilsDemo
|
||||||
// #pragma mark - FileUtilsDemo
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void FileUtilsDemo::onEnter()
|
void FileUtilsDemo::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -94,9 +92,7 @@ std::string FileUtilsDemo::subtitle() const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// TestResolutionDirectories
|
||||||
//#pragma mark - TestResolutionDirectories
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void TestResolutionDirectories::onEnter()
|
void TestResolutionDirectories::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -150,9 +146,7 @@ std::string TestResolutionDirectories::subtitle() const
|
||||||
return "See the console";
|
return "See the console";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// TestSearchPath
|
||||||
//#pragma mark - TestSearchPath
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void TestSearchPath::onEnter()
|
void TestSearchPath::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -231,9 +225,7 @@ std::string TestSearchPath::subtitle() const
|
||||||
return "See the console";
|
return "See the console";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// TestFilenameLookup
|
||||||
//#pragma mark - TestFilenameLookup
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void TestFilenameLookup::onEnter()
|
void TestFilenameLookup::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -271,9 +263,7 @@ std::string TestFilenameLookup::title() const
|
||||||
return "FileUtils: filename lookup";
|
return "FileUtils: filename lookup";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// TestIsFileExist
|
||||||
//#pragma mark - TestIsFileExist
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void TestIsFileExist::onEnter()
|
void TestIsFileExist::onEnter()
|
||||||
{
|
{
|
||||||
|
@ -317,9 +307,7 @@ std::string TestIsFileExist::subtitle() const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// TestWritePlist
|
||||||
//#pragma mark - TestWritePlist
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void TextWritePlist::onEnter()
|
void TextWritePlist::onEnter()
|
||||||
{
|
{
|
||||||
|
|
|
@ -111,9 +111,7 @@ void LayerTest::backCallback(Ref* sender)
|
||||||
s->release();
|
s->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
// Cascading support extensions
|
||||||
//#pragma mark - Cascading support extensions
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void setEnableRecursiveCascading(Node* node, bool enable)
|
static void setEnableRecursiveCascading(Node* node, bool enable)
|
||||||
{
|
{
|
||||||
|
@ -277,7 +275,7 @@ std::string LayerTestCascadingOpacityC::subtitle() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//#pragma mark Example LayerTestCascadingColor
|
//// Example LayerTestCascadingColor
|
||||||
|
|
||||||
// LayerTestCascadingColorA
|
// LayerTestCascadingColorA
|
||||||
void LayerTestCascadingColorA::onEnter()
|
void LayerTestCascadingColorA::onEnter()
|
||||||
|
|
|
@ -32,7 +32,7 @@ local function createLayerDemoLayer(title, subtitle)
|
||||||
return layer
|
return layer
|
||||||
end
|
end
|
||||||
|
|
||||||
--#pragma mark - Cascading support extensions
|
-- Cascading support extensions
|
||||||
|
|
||||||
local function setEnableRecursiveCascading(node, enable)
|
local function setEnableRecursiveCascading(node, enable)
|
||||||
if node == nil then
|
if node == nil then
|
||||||
|
@ -164,7 +164,7 @@ local function LayerTestCascadingOpacityC()
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
--#pragma mark Example LayerTestCascadingColor
|
--// Example LayerTestCascadingColor
|
||||||
|
|
||||||
-- LayerTestCascadingColorA
|
-- LayerTestCascadingColorA
|
||||||
local function LayerTestCascadingColorA()
|
local function LayerTestCascadingColorA()
|
||||||
|
|
Loading…
Reference in New Issue