mirror of https://github.com/axmolengine/axmol.git
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
#ifndef _MENUTESTLAYER_H_
|
|
#define _MENUTESTLAYER_H_
|
|
|
|
#include "cocos2d.h"
|
|
#include "cocos-ext.h"
|
|
|
|
class MenuTestLayer
|
|
: public cocos2d::Layer
|
|
, public cocos2d::extension::CCBSelectorResolver
|
|
, public cocos2d::extension::CCBMemberVariableAssigner
|
|
{
|
|
public:
|
|
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(MenuTestLayer, create);
|
|
|
|
MenuTestLayer();
|
|
virtual ~MenuTestLayer();
|
|
|
|
virtual cocos2d::SEL_MenuHandler onResolveCCBCCMenuItemSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
|
virtual cocos2d::extension::Control::Handler onResolveCCBCCControlSelector(cocos2d::Object * pTarget, const char * pSelectorName);
|
|
virtual bool onAssignCCBMemberVariable(cocos2d::Object * pTarget, const char * pMemberVariableName, cocos2d::Node * node);
|
|
|
|
void onMenuItemAClicked(cocos2d::Object * sender);
|
|
void onMenuItemBClicked(cocos2d::Object * sender);
|
|
void onMenuItemCClicked(cocos2d::Object * sender);
|
|
|
|
private:
|
|
cocos2d::LabelBMFont * mMenuItemStatusLabelBMFont;
|
|
};
|
|
|
|
#endif |