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

namespace XMainClient.UI
{
	internal class XTeamListBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close = null;

		public IXUIButton m_BtnJoin;

		public GameObject m_NoTeam;

		public IXUIScrollView m_ScrollView;

		public IXUIWrapContent m_WrapContent;

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

		public IXUIScrollView m_CategoryScrollView;

		public XTitleBar m_TitleBar;

		public IXUILabel m_PPTRequirement;

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			Transform transform = base.transform.Find("Bg");
			this.m_BtnJoin = (transform.Find("BtnJoin").GetComponent("XUIButton") as IXUIButton);
			transform = transform.Find("Titles");
			DlgHandlerBase.EnsureCreate<XTitleBar>(ref this.m_TitleBar, transform.gameObject, null, true);
			transform = base.transform.Find("Bg/Categories/Category");
			this.m_CategoryPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false);
			this.m_CategoryScrollView = (base.transform.Find("Bg/Categories/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
			transform = base.transform.Find("Bg/AllTeamsFrame");
			this.m_NoTeam = transform.Find("NoTeams").gameObject;
			this.m_ScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_WrapContent = (transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent);
			this.m_PPTRequirement = (base.transform.Find("Bg/BattlePoint/Num").GetComponent("XUILabel") as IXUILabel);
		}
	}
}