From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Team/XTeamLeagueLoadingBehaviour.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs new file mode 100644 index 00000000..bb13bd84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueLoadingBehaviour : DlgBehaviourBase + { + public IXUILabel[] m_TeamName = new IXUILabel[2]; + + public IXUILabel[] m_TeamRegion = new IXUILabel[2]; + + public XUIPool[] m_MembersPool = new XUIPool[2]; + + public List m_LeftMemberNode = new List(); + + public List m_RightMemberNode = new List(); + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Left"); + Transform transform2 = base.transform.Find("Bg/Right"); + this.m_TeamName[0] = (transform.Find("Team/Teamneme").GetComponent("XUILabel") as IXUILabel); + this.m_TeamName[1] = (transform2.Find("Team/Teamneme").GetComponent("XUILabel") as IXUILabel); + this.m_TeamRegion[0] = (transform.Find("Team/Region").GetComponent("XUILabel") as IXUILabel); + this.m_TeamRegion[1] = (transform2.Find("Team/Region").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = transform.Find("DetailTpl"); + this.m_MembersPool[0] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MembersPool[0].SetupPool(transform3.parent.gameObject, transform3.gameObject, 4u, false); + Transform transform4 = transform2.Find("DetailTpl"); + this.m_MembersPool[1] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MembersPool[1].SetupPool(transform4.parent.gameObject, transform4.gameObject, 4u, false); + for (int i = 0; i < 4; i++) + { + Transform item = transform.Find(string.Format("Detail{0}", i)); + this.m_LeftMemberNode.Add(item); + Transform item2 = transform2.Find(string.Format("Detail{0}", i)); + this.m_RightMemberNode.Add(item2); + } + } + } +} -- cgit v1.1-26-g67d0