9 Star 14 Fork 12

zapline/kxlol_new

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MainTabBtnLayer.h 847 Bytes
一键复制 编辑 原始数据 按行查看 历史
CoderNeko 提交于 10年前 . 添加主场景Tab切换
#ifndef __MAIN_TAB_BTN_LAYER_H__
#define __MAIN_TAB_BTN_LAYER_H__
#include "cocos2d.h"
class MainTabBtnLayer : public cocos2d::Layer
{
private:
cocos2d::Ref* pCurSelBtn;
cocos2d::Node* pOpre;
cocos2d::Node* pOpreInfo;
public:
virtual bool init();
static MainTabBtnLayer* create(Node* pOpre, Node* pOpreInfo)
{
MainTabBtnLayer *pRet = new MainTabBtnLayer();
if (pRet && pRet->init())
{
pRet->setOperatorLayer(pOpre, pOpreInfo);
pRet->autorelease();
return pRet;
}
else
{
delete pRet;
pRet = NULL;
return NULL;
}
}
void TabChange(Ref* pSender);
void MainGodSpaceCallBack(Ref* pSender);
void PlanesMgrCenter(Ref* pSender);
void OriginUniverse(Ref* pSender);
void PowerCapsule(Ref* pSender);
void setOperatorLayer(Node* pOpre, Node* pOpreInfo);
};
#endif // __MAIN_TAB_BTN_LAYER_H__
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zapline/kxlol_new.git
git@gitee.com:zapline/kxlol_new.git
zapline
kxlol_new
kxlol_new
master

搜索帮助

371d5123 14472233 46e8bd33 14472233