#ifndef __TestCpp__CutomGUIScene__ #define __TestCpp__CutomGUIScene__ #include "cocos2d.h" #include "extensions/cocos-ext.h" #include "../../testBasic.h" #include "ui/CocosGUI.h" USING_NS_CC; USING_NS_CC_EXT; using namespace cocos2d::ui; class CustomGUITestMainLayer : public Layer { public: virtual void onEnter() override; void onTouchesBegan(const std::vector& touches, Event *event) override; // void onTouchesMoved(const std::vector& touches, Event *event) override; void touchEvent(Ref* pSender, Widget::TouchEventType type); private: Vec2 _beginPos; Menu* _itemMenu; }; class CustomGUITestScene : public TestScene { public: virtual void onEnter() override; virtual void runThisTest(); void BackCallback(Ref* pSender); }; #endif /* defined(__TestCpp__CutomGUIScene__) */