From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/XTeamListBehaviour.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs') 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.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(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); + } + } +} -- cgit v1.1-26-g67d0