2013-03-19 16:33:23 +08:00
|
|
|
#ifndef _TIMELINE_TESTLAYER_H_
|
|
|
|
#define _TIMELINE_TESTLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "cocos-ext.h"
|
2013-10-15 18:00:03 +08:00
|
|
|
#include "CocosBuilder.h"
|
2013-03-19 16:33:23 +08:00
|
|
|
|
|
|
|
class TimelineCallbackTestLayer
|
2013-06-20 14:17:10 +08:00
|
|
|
: public cocos2d::Layer
|
2013-10-15 18:00:03 +08:00
|
|
|
, public cocosbuilder::CCBSelectorResolver
|
|
|
|
, public cocosbuilder::CCBMemberVariableAssigner
|
2013-03-19 16:33:23 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(TimelineCallbackTestLayer, create);
|
|
|
|
|
|
|
|
TimelineCallbackTestLayer();
|
|
|
|
virtual ~TimelineCallbackTestLayer();
|
|
|
|
|
2013-07-24 18:17:20 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
2013-07-26 15:22:45 +08:00
|
|
|
virtual cocos2d::extension::Control::Handler onResolveCCBCCControlSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
2013-07-27 21:44:49 +08:00
|
|
|
virtual cocos2d::SEL_CallFuncN onResolveCCBCCCallFuncSelector(Object * pTarget, const char* pSelectorName);
|
2013-07-23 08:25:44 +08:00
|
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::Object * pTarget, const char * pMemberVariableName, cocos2d::Node * node);
|
2013-03-19 16:33:23 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
void onCallback1(Node* sender);
|
|
|
|
void onCallback2(Node* sender);
|
2013-03-19 16:33:23 +08:00
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
cocos2d::LabelTTF* _helloLabel;
|
2013-03-19 16:33:23 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _TIMELINE_TESTLAYER_H_ */
|