2012-06-14 05:19:13 +08:00
|
|
|
#ifndef _TESTHEADERLAYER_H_
|
|
|
|
#define _TESTHEADERLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2013-10-16 16:48:39 +08:00
|
|
|
#include "extensions/cocos-ext.h"
|
2013-10-16 11:19:01 +08:00
|
|
|
#include "cocosbuilder/CocosBuilder.h"
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2012-06-16 12:48:20 +08:00
|
|
|
class TestHeaderLayer
|
2013-06-20 14:17:10 +08:00
|
|
|
: public cocos2d::Layer
|
2013-10-15 18:00:03 +08:00
|
|
|
, public cocosbuilder::CCBSelectorResolver
|
|
|
|
, public cocosbuilder::NodeLoaderListener
|
2012-06-16 12:48:20 +08:00
|
|
|
{
|
2012-06-14 05:19:13 +08:00
|
|
|
public:
|
2012-06-20 11:48:31 +08:00
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(TestHeaderLayer, create);
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::Ref * pTarget, const char * pSelectorName);
|
|
|
|
virtual cocos2d::extension::Control::Handler onResolveCCBCCControlSelector(cocos2d::Ref * pTarget, const char * pSelectorName);
|
2013-10-15 18:00:03 +08:00
|
|
|
virtual void onNodeLoaded(cocos2d::Node * node, cocosbuilder::NodeLoader * nodeLoader);
|
2013-04-15 10:39:44 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void onBackClicked(cocos2d::Ref * sender);
|
2012-06-14 05:19:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|