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
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
~EffectAdvanceTextLayer(void);
|
2010-09-16 11:35:58 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
|
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();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect2 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect3 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Effect4 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
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();
|
|
|
|
virtual std::string title();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class Issue631 : public EffectAdvanceTextLayer
|
|
|
|
{
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2010-09-16 11:35:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectAdvanceScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|