From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../UI/FashionCollectionDlgBehaviour.cs | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs new file mode 100644 index 00000000..0e41f9ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionCollectionDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_CharacterInfoFrame; + + public IXUILabel m_TotalCollection; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_SuitName; + + public IXUIButton m_ShopBtn; + + public XUIPool FashionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Vector3[] ShowPos = new Vector3[7]; + + public IUIDummy m_SnapShot = null; + + private void Awake() + { + this.m_CharacterInfoFrame = base.transform.Find("Bg/CharacterInfoFrame").gameObject; + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_TotalCollection = (base.transform.Find("Bg/ListFrame/Bg/P/CollectNum/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (base.transform.Find("Bg/ListFrame/ListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/ListFrame/ListPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_SuitName = (base.transform.Find("Bg/InfoFrame/SuitName").GetComponent("XUILabel") as IXUILabel); + this.m_ShopBtn = (base.transform.Find("Bg/InfoFrame/BtnShop").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 7; i++) + { + Transform transform = base.transform.Find("Bg/InfoFrame/ItemLocation" + (i + 1)); + this.ShowPos[i] = transform.localPosition; + } + Transform transform2 = base.transform.Find("Bg/InfoFrame/ItemTpl"); + this.FashionPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 7u, false); + transform2 = base.transform.Find("Bg/InfoFrame/AttrFrame/AttrTpl"); + this.AttrPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false); + this.m_SnapShot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + } +} -- cgit v1.1-26-g67d0