summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs
blob: e20a6ec01a318f0dda65347b2a9342905886a2bd (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using System;
using System.Collections.Generic;
using UILib;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XChatSmallBehaviour : DlgBehaviourBase
	{
		public static uint m_MaxShowMsg = 10u;

		public IXUISprite m_BgSprite;

		public IXUISprite m_RedPoint;

		public IXUISprite m_BgSpriteMini;

		public IXUISprite m_BgSpriteMain;

		public IXUISprite m_OpenWindow;

		public IXUISprite m_OpenWindowMini;

		public IXUILabelSymbol m_MiniText;

		public IXUISprite m_MiniTemplate;

		public IXUILabel m_AudioName;

		public IXUILabel m_AudioTime;

		public IXUILabel m_AudioContent;

		public IXUISprite m_MiniAudioTemplate;

		public XUIPool m_ChatPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public IXUIScrollView m_ScrollView;

		public List<XSmallChatInfo> ChatUIInfoList = new List<XSmallChatInfo>();

		public IXUITweenTool m_TweenTool;

		public IXUITweenTool m_BgTweenTool;

		public IXUISprite m_MainPanel;

		public IXUIPanel m_panel;

		public IXUIPanel m_contentPanel;

		public IXUISprite m_sprMailRed;

		public IXUIProgress m_Exp;

		public IXUILabel m_ExpValue;

		private void Awake()
		{
			this.m_BgSprite = (base.transform.Find("Alphaboard/Bg/Back").GetComponent("XUISprite") as IXUISprite);
			this.m_sprMailRed = (base.transform.Find("Alphaboard/Bg/mailredpoint").GetComponent("XUISprite") as IXUISprite);
			this.m_ScrollView = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_RedPoint = (base.transform.Find("Alphaboard/Bg/redpoint").GetComponent("XUISprite") as IXUISprite);
			this.m_BgSpriteMini = (base.transform.Find("Alphaboard/Bg2").GetComponent("XUISprite") as IXUISprite);
			this.m_BgSpriteMain = (base.transform.Find("Alphaboard/Bg").GetComponent("XUISprite") as IXUISprite);
			this.m_OpenWindow = (base.transform.Find("Alphaboard/Bg/go").GetComponent("XUISprite") as IXUISprite);
			this.m_OpenWindowMini = (base.transform.Find("Alphaboard/Bg2/go").GetComponent("XUISprite") as IXUISprite);
			this.m_MiniText = (base.transform.Find("Alphaboard/Bg2/ChatContent/template/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_MiniTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/template").GetComponent("XUISprite") as IXUISprite);
			this.m_AudioName = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/name").GetComponent("XUILabel") as IXUILabel);
			this.m_AudioTime = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/time").GetComponent("XUILabel") as IXUILabel);
			this.m_AudioContent = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/content").GetComponent("XUILabel") as IXUILabel);
			this.m_MiniAudioTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio").GetComponent("XUISprite") as IXUISprite);
			this.m_contentPanel = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIPanel") as IXUIPanel);
			this.m_ChatPool.SetupPool(base.transform.Find("Alphaboard/Bg/ChatContent").gameObject, base.transform.Find("Alphaboard/Bg/ChatContent/template").gameObject, 4u, false);
			this.m_TweenTool = (base.transform.Find("Alphaboard/Bg").GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_BgTweenTool = (base.transform.Find("Alphaboard").GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_MainPanel = (base.transform.Find("Alphaboard").GetComponent("XUISprite") as IXUISprite);
			this.m_panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel);
			this.m_Exp = (base.transform.Find("Alphaboard/Bg/Exp").GetComponent("XUIProgress") as IXUIProgress);
			this.m_ExpValue = (this.m_Exp.gameObject.transform.Find("content").GetComponent("XUILabel") as IXUILabel);
		}
	}
}