summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs
new file mode 100644
index 00000000..f1cd11cd
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs
@@ -0,0 +1,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);
+ }
+ }
+}