From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/ReviveDlgBehaviour.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs new file mode 100644 index 00000000..e3c8f0c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class ReviveDlgBehaviour : DlgBehaviourBase + { + public Transform m_ReviveFrame; + + public IXUITweenTool m_ReviveFrameTween; + + public IXUIButton m_ReviveButton; + + public IXUIButton m_CancelButton; + + public IXUILabel m_ReviveCost; + + public IXUISprite m_ReviveCostIcon; + + public IXUILabel m_ReviveBuff; + + public IXUILabel m_ReviveLeftTime; + + private void Awake() + { + this.m_ReviveFrame = base.transform.Find("Frame/ReviveFrame"); + this.m_ReviveFrameTween = (this.m_ReviveFrame.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ReviveButton = (this.m_ReviveFrame.Find("Revive").GetComponent("XUIButton") as IXUIButton); + this.m_CancelButton = (this.m_ReviveFrame.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_ReviveCost = (this.m_ReviveFrame.Find("Revive/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveCostIcon = (this.m_ReviveFrame.Find("Revive/Cost/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_ReviveBuff = (this.m_ReviveFrame.Find("Buff").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveLeftTime = (this.m_ReviveFrame.Find("Revive/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveFrame.gameObject.SetActive(false); + } + } +} -- cgit v1.1-26-g67d0