From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/AbyssPartyEntranceBehaviour.cs | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs') 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.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.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.singleton.AddChild(transform4.gameObject, gameObject); + gameObject.name = "item"; + num++; + } + this.m_AbyssPool.ActualReturnAll(true); + } + } +} -- cgit v1.1-26-g67d0