mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
//
|
|
// InviteCell.h
|
|
// OnceAgain
|
|
//
|
|
// Created by mac on 14-5-6.
|
|
//
|
|
//
|
|
|
|
#ifndef __OnceAgain__InviteCell__
|
|
#define __OnceAgain__InviteCell__
|
|
|
|
#include "cocos2d.h"
|
|
#include "cocos-ext.h"
|
|
#include "FriendManager.h"
|
|
USING_NS_CC;
|
|
USING_NS_CC_EXT;
|
|
class InviteCell : public CCLayer{
|
|
|
|
public:
|
|
InviteCell();
|
|
~InviteCell();
|
|
CREATE_FUNC(InviteCell);
|
|
virtual bool init();
|
|
virtual void onEnter();
|
|
|
|
//设置按钮的方法.
|
|
void addSendCallbackFunc(CCObject* target, SEL_ReleaseEvent callfun);
|
|
|
|
void sendInvite(CCObject* pSender);
|
|
//
|
|
void sureSend(CCObject* pSender);
|
|
void setNode(CCNode* node);
|
|
|
|
void setInfo(sGameRank info);
|
|
void requestIcon();
|
|
void sendInviteForThisFriend(CCObject*p);
|
|
CC_SYNTHESIZE(bool, mbLoadImg, LoadImg)
|
|
private:
|
|
UILayer* cellLyaer;
|
|
CCSprite* scoreSprite;
|
|
CCSprite* img;
|
|
std::string userId;
|
|
const char* name;
|
|
CCNode* m_pListener;
|
|
CCSprite *graylightWithCCSprite(CCSprite* oldSprite,bool isLight);
|
|
void setPicToBeHide(CCObject *p);
|
|
sGameRank info;
|
|
};
|
|
|
|
#endif /* defined(__OnceAgain__InviteCell__) */
|