summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs54
1 files changed, 54 insertions, 0 deletions
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<XGameUI>.singleton.m_uiTool);
+
+ public XUIPool AttrPool = new XUIPool(XSingleton<XGameUI>.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);
+ }
+ }
+}