From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Chat/ChatAssistBehaviour.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs new file mode 100644 index 00000000..0491c7f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatAssistBehaviour : DlgBehaviourBase + { + public IXUIButton m_btnEmotion; + + public IXUIButton m_btnHistory; + + public GameObject m_objEmotionTpl; + + public XUIPool m_ChatEmotionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_sprBg; + + public ILoopScrollView m_loophistoryView; + + public GameObject m_objEmotion; + + public GameObject m_objHistory; + + private void Awake() + { + this.m_btnEmotion = (base.transform.Find("Tabs/SmallTab_emo").GetComponent("XUIButton") as IXUIButton); + this.m_btnHistory = (base.transform.Find("Tabs/SmallTab_his").GetComponent("XUIButton") as IXUIButton); + this.m_objEmotionTpl = base.transform.Find("ChatEmotion/template").gameObject; + this.m_sprBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_loophistoryView = (base.transform.Find("ChatHistory/loopscroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_objEmotion = base.transform.Find("ChatEmotion").gameObject; + this.m_objHistory = base.transform.Find("ChatHistory").gameObject; + this.m_ChatEmotionPool.SetupPool(this.m_objEmotion, this.m_objEmotionTpl, 24u, false); + } + } +} -- cgit v1.1-26-g67d0