summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs39
1 files changed, 39 insertions, 0 deletions
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<XGameUI>.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);
+ }
+ }
+}