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

namespace XMainClient.UI
{
	internal class ItemIconListDlgBehaviour : DlgBehaviourBase
	{
		public IXUILabel m_Title = null;

		public IXUISprite m_Bg = null;

		public IXUISprite m_Close = null;

		public IXUISprite m_MinFrame = null;

		public Transform m_Arrow = null;

		public Transform m_ArrowDown = null;

		public IXUISprite m_Split = null;

		public Transform m_SplitPos = null;

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

		public int m_BorderWidth;

		private void Awake()
		{
			Transform transform = base.transform.Find("Bg/Title");
			this.m_Title = (transform.GetComponent("XUILabel") as IXUILabel);
			transform = base.transform.Find("Close");
			this.m_Close = (transform.GetComponent("XUISprite") as IXUISprite);
			transform = base.transform.Find("Bg");
			this.m_Bg = (transform.GetComponent("XUISprite") as IXUISprite);
			transform = base.transform.Find("Bg/MinFrame");
			this.m_MinFrame = (transform.GetComponent("XUISprite") as IXUISprite);
			this.m_ItemPool.SetupPool(base.transform.Find("Bg/ListPanel").gameObject, base.transform.Find("Bg/ListPanel/ItemTpl").gameObject, 3u, false);
			this.m_BorderWidth = this.m_Bg.spriteWidth - this.m_MinFrame.spriteWidth;
			this.m_Arrow = base.transform.Find("Bg/Arrow");
			this.m_ArrowDown = base.transform.Find("Bg/ArrowDown");
			this.m_Split = (base.transform.Find("Bg/Split").GetComponent("XUISprite") as IXUISprite);
			this.m_SplitPos = base.transform.Find("Bg/Split/Sprite");
		}
	}
}