summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.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/Team/XTeamLeagueLoadingBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs45
1 files changed, 45 insertions, 0 deletions
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<Transform> m_LeftMemberNode = new List<Transform>();
+
+ public List<Transform> m_RightMemberNode = new List<Transform>();
+
+ 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<XGameUI>.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<XGameUI>.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);
+ }
+ }
+ }
+}