#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& chatList); virtual bool init(const std::vector& chatList); virtual void onEnter(); virtual void onEnterTransitionDidFinish(); virtual void onExit(); virtual void popScene(); virtual void InitChatShot(const std::vector& 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; };