From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/BattleMysteriourHandler.cs | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs') 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++; + } + } + } +} -- cgit v1.1-26-g67d0