48 lines
881 B
C++
48 lines
881 B
C++
|
|
#pragma once
|
|
#include "TipNode.h"
|
|
#include "RadioCtrl.h"
|
|
#include "GameMission.h"
|
|
#include "GlobalJosn.h"
|
|
|
|
class ChatLayer : public TipNode
|
|
{
|
|
|
|
public:
|
|
ChatLayer();
|
|
~ChatLayer();
|
|
|
|
static ChatLayer* create(const std::vector<std::string>& chatList);
|
|
|
|
virtual bool init(const std::vector<std::string>& chatList);
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual void popScene();
|
|
|
|
virtual void InitChatShot(const std::vector<std::string>& chatList);
|
|
|
|
virtual void InitChatFace();
|
|
|
|
void onSendChatShot(Ref* ref, ListView::EventType eventType);
|
|
|
|
void onSendChatInfo(Ref* ref);
|
|
|
|
private:
|
|
Animation* GetAnimationFace(int index);
|
|
|
|
private:
|
|
Node* m_pRootNode;
|
|
ImageView* m_ImageView_BG;
|
|
|
|
Layout* m_ShotItem;
|
|
ListView* m_ChatShotList;
|
|
Layout* m_Panel_Face;
|
|
Button* m_btnSend;
|
|
TextField* m_ptxtSendInfo;
|
|
};
|