diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs new file mode 100644 index 00000000..78f9dd73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs @@ -0,0 +1,63 @@ +using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class AbyssPartyEntranceBehaviour : DlgBehaviourBase
+ {
+ public IXUIButton m_Close;
+
+ public IXUIButton m_Help;
+
+ public IXUIButton m_Join;
+
+ public IXUIButton m_Fall;
+
+ public XUIPool m_TabPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public IXUILabel m_Name;
+
+ public IXUILabel m_CurPPT;
+
+ public IXUILabel m_SugPPT;
+
+ public IXUILabel m_SugLevel;
+
+ public Transform m_CostItem;
+
+ public XUIPool m_AbyssPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ private void Awake()
+ {
+ this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton);
+ this.m_Join = (base.transform.Find("Bg/EnterBtn").GetComponent("XUIButton") as IXUIButton);
+ this.m_Fall = (base.transform.Find("Bg/FallBtn").GetComponent("XUIButton") as IXUIButton);
+ Transform transform = base.transform.Find("Bg/Tab/TabTpl");
+ this.m_TabPool.SetupPool(null, transform.gameObject, 3u, false);
+ this.m_Name = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel);
+ this.m_CurPPT = (base.transform.Find("Bg/DetailFrame/CurPPT").GetComponent("XUILabel") as IXUILabel);
+ this.m_SugPPT = (base.transform.Find("Bg/DetailFrame/SugPPT").GetComponent("XUILabel") as IXUILabel);
+ this.m_SugLevel = (base.transform.Find("Bg/DetailFrame/SugLevel").GetComponent("XUILabel") as IXUILabel);
+ this.m_CostItem = base.transform.Find("Bg/Cost");
+ Transform transform2 = base.transform.Find("Bg/LevelFrame");
+ Transform transform3 = transform2.Find("AbyssTpl");
+ this.m_AbyssPool.SetupPool(null, transform3.gameObject, AbyssPartyEntranceView.ABYSS_MAX, false);
+ this.m_AbyssPool.FakeReturnAll();
+ int num = 0;
+ while ((long)num < (long)((ulong)AbyssPartyEntranceView.ABYSS_MAX))
+ {
+ GameObject gameObject = this.m_AbyssPool.FetchGameObject(false);
+ Transform transform4 = transform2.Find(string.Format("Abyss{0}", num));
+ XSingleton<UiUtility>.singleton.AddChild(transform4.gameObject, gameObject);
+ gameObject.name = "item";
+ num++;
+ }
+ this.m_AbyssPool.ActualReturnAll(true);
+ }
+ }
+}
|