mirror of https://github.com/axmolengine/axmol.git
78 lines
1.4 KiB
C++
78 lines
1.4 KiB
C++
#ifndef _ACTIONS__PROGRESS_TEST_H_
|
|
#define _ACTIONS_PROGRESS_TEST_H_
|
|
|
|
#include "../testBasic.h"
|
|
#include "../BaseTest.h"
|
|
|
|
class SpriteDemo : public BaseTest
|
|
{
|
|
public:
|
|
SpriteDemo(void);
|
|
~SpriteDemo(void);
|
|
|
|
virtual std::string title();
|
|
virtual std::string subtitle();
|
|
virtual void onEnter();
|
|
|
|
void restartCallback(Object* sender);
|
|
void nextCallback(Object* sender);
|
|
void backCallback(Object* sender);
|
|
};
|
|
|
|
class SpriteProgressToRadial : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressToHorizontal : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressToVertical : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressToRadialMidpointChanged : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressBarVarious : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressBarTintAndFade : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class SpriteProgressWithSpriteFrame : public SpriteDemo
|
|
{
|
|
public:
|
|
virtual void onEnter();
|
|
virtual std::string subtitle();
|
|
};
|
|
|
|
class ProgressActionsTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
#endif
|