2012-06-14 05:19:13 +08:00
|
|
|
#include "TestHeaderLayer.h"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
|
|
|
USING_NS_CC_EXT;
|
2013-10-15 18:00:03 +08:00
|
|
|
using namespace cocosbuilder;
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
SEL_MenuHandler TestHeaderLayer::onResolveCCBCCMenuItemSelector(Ref * pTarget, const char * pSelectorName) {
|
2012-06-15 09:16:54 +08:00
|
|
|
CCB_SELECTORRESOLVER_CCMENUITEM_GLUE(this, "onBackClicked", TestHeaderLayer::onBackClicked);
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2014-07-10 00:45:27 +08:00
|
|
|
return nullptr;
|
2012-06-14 05:19:13 +08:00
|
|
|
}
|
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
Control::Handler TestHeaderLayer::onResolveCCBCCControlSelector(Ref * pTarget, const char * pSelectorName) {
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2014-07-10 00:45:27 +08:00
|
|
|
return nullptr;
|
2012-06-14 05:19:13 +08:00
|
|
|
}
|
|
|
|
|
2013-10-15 18:00:03 +08:00
|
|
|
void TestHeaderLayer::onNodeLoaded(cocos2d::Node * node, cocosbuilder::NodeLoader * nodeLoader)
|
2013-04-15 10:39:44 +08:00
|
|
|
{
|
|
|
|
CCLOG("TestHeaderLayer::onNodeLoaded");
|
|
|
|
}
|
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void TestHeaderLayer::onBackClicked(cocos2d::Ref *pSender) {
|
2013-07-12 06:24:23 +08:00
|
|
|
Director::getInstance()->popScene();
|
2014-06-19 19:45:24 +08:00
|
|
|
}
|