42 lines
844 B
C++
42 lines
844 B
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
#include "PlatformHeader.h"
|
|
#include "Singleton.h"
|
|
#include "GamePlayer.h"
|
|
#include "DismissScene.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class AutoReadyScene : public TipNode, public Singleton<AutoReadyScene>
|
|
{
|
|
public:
|
|
AutoReadyScene();
|
|
~AutoReadyScene();
|
|
|
|
public:
|
|
CREATE_FUNC(AutoReadyScene);
|
|
|
|
virtual bool init();
|
|
|
|
void show(CMD_GR_Private_ReadyInfo* pNetInfo, GamePlayer* players[TABLE_PLAYER_COUNT], bool bBtnsVisiable, uint8 cbPlayCount);
|
|
|
|
void hide();
|
|
|
|
void pushScene();
|
|
void popScene();
|
|
|
|
private:
|
|
ImageView* m_ImageViewBg;
|
|
Layout* m_aryUserInfo[TABLE_PLAYER_COUNT]; // 玩家界面节点;
|
|
Layout* m_PanelList; // 玩家列表控件;
|
|
|
|
Text* m_txtStartPlayer;
|
|
int m_nSecondCount;
|
|
|
|
Button* m_btnAgree; //同意按钮
|
|
Button* m_btnRefused; //拒绝按钮
|
|
|
|
bool m_isStart; //是否启动
|
|
}; |