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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2012-04-19 14:35:52 +08:00
|
|
|
~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
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void restartCallback(Ref* sender);
|
|
|
|
void nextCallback(Ref* sender);
|
|
|
|
void backCallback(Ref* sender);
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect1 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
|
|
|
virtual void onExit() override;
|
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:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
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
|