summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs
blob: 8615d1b90a24c64590d435d00c903e22f1cc0ebc (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
using System;
using UILib;
using UnityEngine;

namespace XMainClient.UI
{
	internal class BattleMysteriourHandler : DlgHandlerBase
	{
		protected override string FileName
		{
			get
			{
				return "";
			}
		}

		private IXUILabel m_lblLevel;

		private IXUILabel m_lblTime;

		private GameObject[] m_icons = new GameObject[3];

		private IXUISlider m_slider;

		protected override void Init()
		{
			base.Init();
			int i = 0;
			int num = this.m_icons.Length;
			while (i < num)
			{
				this.m_icons[i] = base.transform.Find(string.Concat(i)).gameObject;
				i++;
			}
			this.m_lblLevel = (base.transform.Find("").GetComponent("") as IXUILabel);
			this.m_lblTime = (base.transform.Find("").GetComponent("") as IXUILabel);
			this.m_slider = (base.transform.Find("").GetComponent("") as IXUISlider);
		}

		protected override void OnShow()
		{
			base.OnShow();
			this.m_lblLevel.SetText("");
			this.m_lblTime.SetText("");
			this.RefreshBuff();
		}

		private void RefreshBuff()
		{
			int i = 0;
			int num = this.m_icons.Length;
			while (i < num)
			{
				this.m_icons[i].SetActive(false);
				i++;
			}
		}
	}
}