summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs
blob: 415b8790acac43a40f4fadc55b6f4ea439a73a15 (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
55
56
57
58
59
60
61
62
63
using System;
using System.Collections.Generic;
using UILib;
using UnityEngine;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XQualifyingChallengeRecordWindow
	{
		public bool IsVisible
		{
			get
			{
				return this.m_Go.activeSelf;
			}
		}

		public GameObject m_Go;

		public XUIPool m_RecordPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public IXUIButton m_Close;

		public IXUIScrollView m_ScrollView;

		public IXUILabel MatchTotalWin;

		public IXUILabel MatchTotalLose;

		public IXUILabel RateOfTotalWin;

		public IXUILabel MaxConsecutiveWin;

		public IXUILabel MaxConsecutiveLose;

		public List<IXUILabel> RateOfWinProf = new List<IXUILabel>();

		public XQualifyingChallengeRecordWindow(GameObject go)
		{
			this.m_Go = go;
			this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_RecordPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RecordTpl").gameObject, 20u, false);
			this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView);
			this.MatchTotalWin = (go.transform.Find("Bg/Bg/Message/Win/Label").GetComponent("XUILabel") as IXUILabel);
			this.MatchTotalLose = (go.transform.Find("Bg/Bg/Message/Lose/Label").GetComponent("XUILabel") as IXUILabel);
			this.RateOfTotalWin = (go.transform.Find("Bg/Bg/Message/Rate/Label").GetComponent("XUILabel") as IXUILabel);
			this.MaxConsecutiveWin = (go.transform.Find("Bg/Bg/Message/ConsWin/Label").GetComponent("XUILabel") as IXUILabel);
			this.MaxConsecutiveLose = (go.transform.Find("Bg/Bg/Message/ConsLose/Label").GetComponent("XUILabel") as IXUILabel);
			Transform transform = go.transform.Find("Bg/Bg/Message/WinRate");
			for (int i = 0; i < transform.childCount; i++)
			{
				IXUILabel item = transform.Find(string.Format("Rate{0}/Label", i)).GetComponent("XUILabel") as IXUILabel;
				this.RateOfWinProf.Add(item);
			}
		}

		public void SetVisible(bool v)
		{
			this.m_Go.SetActive(v);
		}
	}
}