summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs
blob: 0491c7f4351a0d01be42cca67e97e9ac8a21c69a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
		}
	}
}