diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs | 39 |
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);
+ }
+ }
+}
|