2012-06-14 05:19:13 +08:00
|
|
|
#ifndef _BUTTONTESTLAYER_H_
|
|
|
|
#define _BUTTONTESTLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2012-07-20 14:05:52 +08:00
|
|
|
#include "cocos-ext.h"
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2012-06-16 12:48:20 +08:00
|
|
|
class ButtonTestLayer
|
|
|
|
: public cocos2d::CCLayer
|
|
|
|
, public cocos2d::extension::CCBMemberVariableAssigner
|
|
|
|
, public cocos2d::extension::CCBSelectorResolver
|
|
|
|
{
|
2012-06-19 16:31:26 +08:00
|
|
|
public:
|
2012-06-20 11:48:31 +08:00
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(ButtonTestLayer, create);
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2012-06-19 16:31:26 +08:00
|
|
|
ButtonTestLayer();
|
|
|
|
virtual ~ButtonTestLayer();
|
2012-06-14 05:19:13 +08:00
|
|
|
|
2012-06-19 16:31:26 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
|
|
|
|
virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBCCControlSelector(cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName);
|
|
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode);
|
2012-06-14 16:32:52 +08:00
|
|
|
|
2012-06-19 16:31:26 +08:00
|
|
|
void onCCControlButtonClicked(cocos2d::CCObject * pSender, cocos2d::extension::CCControlEvent pCCControlEvent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
cocos2d::CCLabelBMFont * mCCControlEventLabel;
|
2012-06-14 05:19:13 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|