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); } } }