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