2012-04-19 14:35:52 +08:00
|
|
|
#ifndef __EXTENSIONS_TEST_H__
|
|
|
|
#define __EXTENSIONS_TEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class ExtensionsMainLayer : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
2014-02-27 21:10:03 +08:00
|
|
|
virtual void onEnter() override;
|
2013-07-09 04:20:24 +08:00
|
|
|
|
2013-10-23 16:14:03 +08:00
|
|
|
void onTouchesBegan(const std::vector<Touch*>& touches, Event *event);
|
|
|
|
void onTouchesMoved(const std::vector<Touch*>& touches, Event *event);
|
2013-07-09 04:20:24 +08:00
|
|
|
|
2014-04-15 18:23:40 +08:00
|
|
|
Vector2 _beginPos;
|
2013-07-09 04:20:24 +08:00
|
|
|
Menu* _itemMenu;
|
|
|
|
|
|
|
|
int _testcount;
|
2013-12-16 17:40:34 +08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void onMouseScroll(Event* event);
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class ExtensionsTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __EXTENSIONS_TEST_H__ */
|