2012-06-15 09:16:54 +08:00
|
|
|
#ifndef _MENUTESTLAYER_H_
|
|
|
|
#define _MENUTESTLAYER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
2012-07-20 14:05:52 +08:00
|
|
|
#include "cocos-ext.h"
|
2012-06-15 09:16:54 +08:00
|
|
|
|
2012-06-16 12:48:20 +08:00
|
|
|
class MenuTestLayer
|
2013-06-20 14:17:10 +08:00
|
|
|
: public cocos2d::Layer
|
2012-06-16 12:48:20 +08:00
|
|
|
, public cocos2d::extension::CCBSelectorResolver
|
|
|
|
, public cocos2d::extension::CCBMemberVariableAssigner
|
|
|
|
{
|
2012-06-15 09:16:54 +08:00
|
|
|
public:
|
2012-06-20 11:48:31 +08:00
|
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(MenuTestLayer, create);
|
2012-06-15 09:16:54 +08:00
|
|
|
|
2012-06-19 16:31:26 +08:00
|
|
|
MenuTestLayer();
|
|
|
|
virtual ~MenuTestLayer();
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBMenuItemSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
|
|
|
virtual cocos2d::extension::SEL_CCControlHandler onResolveCCBControlSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
|
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::Object * pTarget, const char * pMemberVariableName, cocos2d::Node * pNode);
|
2012-06-15 09:16:54 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
void onMenuItemAClicked(cocos2d::Object * pSender);
|
|
|
|
void onMenuItemBClicked(cocos2d::Object * pSender);
|
|
|
|
void onMenuItemCClicked(cocos2d::Object * pSender);
|
2012-06-15 09:16:54 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
cocos2d::LabelBMFont * mMenuItemStatusLabelBMFont;
|
2012-06-15 09:16:54 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|