summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs
blob: 28f9e5bf584788bf79f555bbe922b5b7611248aa (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
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient.UI
{
	internal class HeroAttrBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close;

		public GameObject m_HeroFrame;

		public GameObject m_SkillFrame;

		public GameObject m_GamePlayFrame;

		public IXUICheckBox[] m_Tab = new IXUICheckBox[3];

		public IXUISprite m_HeroIcon;

		public IXUILabel m_HeroName;

		public IXUILabel m_HeroSmallTips;

		public IXUIScrollView m_DescScrollView;

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

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

		public IXUIScrollView m_ScrollView;

		public IXUILabel m_GamePlayTips;

		public IXUIScrollView m_GamePlayScrollView;

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton);
			this.m_HeroFrame = base.transform.Find("HeroFrame").gameObject;
			this.m_SkillFrame = base.transform.Find("SkillFrame").gameObject;
			this.m_GamePlayFrame = base.transform.Find("GamePlayFrame").gameObject;
			for (int i = 0; i < 3; i++)
			{
				this.m_Tab[i] = (base.transform.Find(string.Format("Tabs/Tab{0}", i)).GetComponent("XUICheckBox") as IXUICheckBox);
			}
			this.m_HeroIcon = (this.m_HeroFrame.transform.Find("Left/Hero").GetComponent("XUISprite") as IXUISprite);
			this.m_HeroName = (this.m_HeroFrame.transform.Find("Left/Name").GetComponent("XUILabel") as IXUILabel);
			this.m_HeroSmallTips = (this.m_HeroFrame.transform.Find("Left/ScrollView/Desc").GetComponent("XUILabel") as IXUILabel);
			this.m_DescScrollView = (this.m_HeroFrame.transform.Find("Left/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
			Transform transform = this.m_HeroFrame.transform.Find("Panel/Tpl");
			this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 15u, false);
			transform = this.m_SkillFrame.transform.Find("Panel/Tpl");
			this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 15u, false);
			this.m_ScrollView = (this.m_SkillFrame.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_GamePlayTips = (this.m_GamePlayFrame.transform.Find("ScrollView/Desc").GetComponent("XUILabel") as IXUILabel);
			this.m_GamePlayScrollView = (this.m_GamePlayFrame.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
		}
	}
}