50 lines
1014 B
C++
50 lines
1014 B
C++
#pragma once
|
|
#include "cocos2d.h"
|
|
#include "cocostudio/CocoStudio.h"
|
|
#include "ui/CocosGUI.h"
|
|
#include "PlatformHeader.h"
|
|
#include "Singleton.h"
|
|
#include "DDZ_CMD.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class DDZGameEndNode : public Node
|
|
{
|
|
public:
|
|
DDZGameEndNode();
|
|
~DDZGameEndNode();
|
|
|
|
public:
|
|
CREATE_FUNC(DDZGameEndNode);
|
|
|
|
virtual bool init();
|
|
|
|
//隐藏;
|
|
void hide();
|
|
|
|
void SetShowPrivate();
|
|
|
|
//显示;
|
|
void show(uint16 wLandChairID, uint16 wSelfChairID, std::string[], DDZ_CMD_S_GameConclude*, uint16 wTime);
|
|
|
|
//显示剩余扑克;
|
|
void showLeftCard(Layout* pRootPanel, uint8 aryCardData[], uint8 cbCardCount);
|
|
|
|
private:
|
|
//继续按钮点击事件;
|
|
void onButtonContinueClick(Ref*);
|
|
void onButtonShareClick(Ref*);
|
|
|
|
private:
|
|
Node* m_rootPanel;
|
|
Button* m_btnPrivate; //关闭按钮;
|
|
Button* m_btnContinue; //继续按钮;
|
|
Button* m_btnShare; //分享按钮;
|
|
//TextAtlas* m_txtAtlTime;
|
|
|
|
Sprite* m_sprLandlord;
|
|
Sprite* m_sprWin;
|
|
Sprite* m_sprTitleWin;
|
|
Sprite* m_sprChunTian;
|
|
}; |