From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/ItemAccessDlgBehaviour.cs | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs new file mode 100644 index 00000000..2284534f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemAccessDlgBehaviour : DlgBehaviourBase + { + public GameObject m_Item; + + public XUIPool m_RecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_RecordScrollView; + + public IXUIButton m_Close; + + public GameObject m_BossItem; + + public IXUILabel m_bossDec; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Item = base.transform.Find("Bg/Item").gameObject; + this.m_BossItem = base.transform.Find("Bg/Boss").gameObject; + this.m_bossDec = (this.m_BossItem.transform.Find("Des").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/ListPanel/ItemTpl"); + this.m_RecordPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_RecordScrollView = (base.transform.Find("Bg/ListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} -- cgit v1.1-26-g67d0