blob: 5fa0b9ed68be1f99d0d685006c7466000b9f626e (
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
|
using System;
using UILib;
using UnityEngine;
using XUtliPoolLib;
namespace XMainClient
{
internal class XQualifyingRankRewardWindow
{
public bool IsVisible
{
get
{
return this.m_Go.activeSelf;
}
}
public GameObject m_Go;
public XUIPool m_RewardPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public XUIPool m_ItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public IXUIButton m_Close;
public IXUIScrollView m_ScrollView;
public IXUILabel m_RankNum;
public IXUILabel m_RewardLeftTime;
public XQualifyingRankRewardWindow(GameObject go)
{
this.m_Go = go;
this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
this.m_RewardPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RewardTpl").gameObject, 20u, false);
this.m_ItemPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView/").gameObject, go.transform.Find("Bg/Bg/ScrollView/Item").gameObject, 50u, false);
this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
this.m_RankNum = (go.transform.Find("Bg/BestRank/Text").GetComponent("XUILabel") as IXUILabel);
this.m_RewardLeftTime = (go.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel);
}
public void SetVisible(bool v)
{
this.m_Go.SetActive(v);
}
}
}
|