summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs39
1 files changed, 39 insertions, 0 deletions
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);
+ }
+ }
+}