49 lines
1010 B
C++
49 lines
1010 B
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
#include "PlatformHeader.h"
|
|
#include "Singleton.h"
|
|
#include "GamePlayer.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
#define TABLE_PLAYER_COUNT 5
|
|
|
|
class DismissScene : public TipNode, public Singleton<DismissScene>
|
|
{
|
|
public:
|
|
DismissScene();
|
|
~DismissScene();
|
|
|
|
public:
|
|
CREATE_FUNC(DismissScene);
|
|
|
|
virtual bool init();
|
|
|
|
void show(BYTE[], GamePlayer* players[TABLE_PLAYER_COUNT], bool bBtnsVisiable, BYTE cbCount);
|
|
|
|
void hide();
|
|
|
|
void OnEventGameClock(float dt);
|
|
|
|
void pushScene();
|
|
void popScene();
|
|
|
|
private:
|
|
ImageView* m_ImageViewBg;
|
|
Layout* m_aryUserInfo[TABLE_PLAYER_COUNT]; // 玩家界面节点;
|
|
Layout* m_PanelList; // 玩家列表控件;
|
|
|
|
////Text* m_aryName[TABLE_PLAYER_COUNT];
|
|
//Sprite* m_aryHead[TABLE_PLAYER_COUNT];
|
|
//Text* m_aryResult[TABLE_PLAYER_COUNT];
|
|
Text* m_ALNumber;
|
|
int m_nSecondCount;
|
|
|
|
Button* m_btnAgree; //同意按钮
|
|
Button* m_btnRefused; //拒绝按钮
|
|
Button* m_btnClose; //关闭按钮(默认拒绝)
|
|
|
|
bool m_isStart; //是否启动
|
|
}; |