2014-03-04 16:51:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __TestCpp__GUIEditorTest__
|
|
|
|
#define __TestCpp__GUIEditorTest__
|
|
|
|
|
|
|
|
#include "../../testBasic.h"
|
|
|
|
|
|
|
|
class GUIEditorMainLayer : public Layer
|
|
|
|
{
|
|
|
|
public:
|
2015-03-15 02:33:15 +08:00
|
|
|
virtual void onEnter() override;
|
2014-03-04 16:51:35 +08:00
|
|
|
void menuCallback(Ref* pSender);
|
2015-03-15 02:33:15 +08:00
|
|
|
void onTouchesBegan(const std::vector<Touch*>& touches, Event *event) override;
|
|
|
|
void onTouchesMoved(const std::vector<Touch*>& touches, Event *event) override;
|
2014-03-04 16:51:35 +08:00
|
|
|
private:
|
2014-05-15 01:07:09 +08:00
|
|
|
Vec2 _beginPos;
|
2014-03-04 16:51:35 +08:00
|
|
|
Menu* _itemMenu;
|
|
|
|
|
|
|
|
int _testcount;
|
|
|
|
};
|
|
|
|
|
|
|
|
class GUIEditorTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
2015-03-15 02:33:15 +08:00
|
|
|
virtual void onEnter() override;
|
2014-03-04 16:51:35 +08:00
|
|
|
virtual void runThisTest();
|
|
|
|
void BackCallback(Ref* pSender);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* defined(__TestCpp__GUIEditorTest__) */
|