2010-09-16 11:35:58 +08:00
|
|
|
#ifndef _EFFECT_ADVANCED_TEST_H_
|
|
|
|
#define _EFFECT_ADVANCED_TEST_H_
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
class EffectAdvanceTextLayer: public BaseTest
|
2010-09-16 11:35:58 +08:00
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
protected:
|
2013-06-20 14:17:10 +08:00
|
|
|
TextureAtlas* _atlas;
|
2010-09-16 11:35:58 +08:00
|
|
|
|
2013-06-15 14:03:30 +08:00
|
|
|
std::string _title;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-12-11 13:39:34 +08:00
|
|
|
Node* _bgNode;
|
|
|
|
Node* _target1;
|
|
|
|
Node* _target2;
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
~EffectAdvanceTextLayer(void);
|
2010-09-16 11:35:58 +08:00
|
|
|
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
|
|
|
virtual std::string subtitle() const override;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
void restartCallback(Object* sender);
|
|
|
|
void nextCallback(Object* sender);
|
|
|
|
void backCallback(Object* sender);
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect1 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect2 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect3 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect4 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect5 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Issue631 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
2013-12-19 05:52:10 +08:00
|
|
|
virtual std::string title() const override;
|
|
|
|
virtual std::string subtitle() const override;
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectAdvanceScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|