diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs new file mode 100644 index 00000000..8615d1b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs @@ -0,0 +1,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++;
+ }
+ }
+ }
+}
|