blob: 0e41f9ce23bc0c1846a4c2df432653b54d4b7b97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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);
}
}
}
|