axmol/tests/cpp-tests/Classes/ExtensionsTest/CocoStudioActionTimelineTest/ActionTimelineTestScene.h

65 lines
1.4 KiB
C
Raw Normal View History

2014-06-11 11:10:07 +08:00
#ifndef __ANIMATION_TEST_SCENE_H__
#define __ANIMATION_TEST_SCENE_H__
#include "cocos2d.h"
#include "../../VisibleRect.h"
#include "../../testBasic.h"
#include "cocostudio/CocoStudio.h"
using namespace cocostudio::timeline;
class ActionTimelineTestScene : public TestScene
2014-06-11 11:10:07 +08:00
{
public:
ActionTimelineTestScene(bool bPortrait = false);
2014-06-11 11:10:07 +08:00
virtual void runThisTest();
// The CallBack for back to the main menu scene
virtual void MainMenuCallback(Ref* pSender);
};
enum {
TEST_ANIMATIONELEMENT = 0,
2014-06-17 11:13:46 +08:00
TEST_TIMELINE_PERFORMACE,
2014-06-11 11:10:07 +08:00
TEST_ANIMATION_LAYER_COUNT
};
class ActionTimelineTestLayer : public Layer
2014-06-11 11:10:07 +08:00
{
public:
virtual std::string title() const;
virtual std::string subtitle() const;
virtual void restartCallback(Ref* pSender);
virtual void nextCallback(Ref* pSender);
virtual void backCallback(Ref* pSender);
// overrides
virtual void onEnter() override;
virtual void onExit() override;
protected:
MenuItemImage *restartItem;
MenuItemImage *nextItem;
MenuItemImage *backItem;
};
class TestActionTimeline : public ActionTimelineTestLayer
2014-06-11 11:10:07 +08:00
{
public:
virtual void onEnter();
virtual std::string title() const override;
};
2014-06-17 11:13:46 +08:00
class TestTimelinePerformance : public ActionTimelineTestLayer
{
public:
virtual void onEnter();
virtual std::string title() const override;
};
2014-06-11 11:10:07 +08:00
#endif // __ANIMATION_SCENE_H__