2012-03-19 18:20:32 +08:00
|
|
|
#ifndef _ACTIONS__PROGRESS_TEST_H_
|
|
|
|
#define _ACTIONS_PROGRESS_TEST_H_
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-03-19 18:20:32 +08:00
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
class SpriteDemo : public BaseTest
|
2010-08-21 10:26:26 +08:00
|
|
|
{
|
2012-03-19 18:20:32 +08:00
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
SpriteDemo(void);
|
|
|
|
~SpriteDemo(void);
|
2012-03-19 18:20:32 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
virtual void onEnter();
|
2010-08-21 10:26:26 +08:00
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
void restartCallback(Object* sender);
|
|
|
|
void nextCallback(Object* sender);
|
|
|
|
void backCallback(Object* sender);
|
2010-08-21 10:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressToRadial : public SpriteDemo
|
|
|
|
{
|
2012-03-19 18:20:32 +08:00
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2010-08-21 10:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressToHorizontal : public SpriteDemo
|
|
|
|
{
|
2012-03-19 18:20:32 +08:00
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2010-08-21 10:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressToVertical : public SpriteDemo
|
|
|
|
{
|
2012-03-19 18:20:32 +08:00
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2012-03-19 18:20:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressToRadialMidpointChanged : public SpriteDemo
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2012-03-19 18:20:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressBarVarious : public SpriteDemo
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2012-03-19 18:20:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressBarTintAndFade : public SpriteDemo
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2012-03-19 18:20:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteProgressWithSpriteFrame : public SpriteDemo
|
|
|
|
{
|
|
|
|
public:
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual void onEnter();
|
|
|
|
virtual std::string subtitle();
|
2010-08-21 10:26:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class ProgressActionsTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|