summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.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/ActivityGoddessTrialBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs49
1 files changed, 49 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs
new file mode 100644
index 00000000..b9fe7c79
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs
@@ -0,0 +1,49 @@
+using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient.UI
+{
+ internal class ActivityGoddessTrialBehaviour : DlgBehaviourBase
+ {
+ public IXUILabel m_canJoinTimeslab;
+
+ public IXUILabel m_NeedTimesLab;
+
+ public IXUIButton m_goBattleBtn;
+
+ public IXUIButton m_closedBtn;
+
+ public IXUIButton m_getBtn;
+
+ public IXUIButton m_shopBtn;
+
+ public IXUIButton m_Help;
+
+ public GameObject m_noTimesGo;
+
+ public GameObject m_hadGetGo;
+
+ public XUIPool m_ItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ private void Awake()
+ {
+ this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton);
+ Transform transform = base.transform.Find("Bg");
+ this.m_closedBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_goBattleBtn = (transform.Find("GoBattle").GetComponent("XUIButton") as IXUIButton);
+ this.m_getBtn = (transform.Find("GetRewardBtn").GetComponent("XUIButton") as IXUIButton);
+ this.m_shopBtn = (transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton);
+ this.m_canJoinTimeslab = (transform.Find("times").GetComponent("XUILabel") as IXUILabel);
+ this.m_NeedTimesLab = (transform.Find("Reward/NeedTimes").GetComponent("XUILabel") as IXUILabel);
+ this.m_noTimesGo = transform.Find("NoJoinTimesTips").gameObject;
+ this.m_hadGetGo = transform.Find("HadGet").gameObject;
+ transform = transform.Find("Reward/Item");
+ this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, true);
+ this.m_canJoinTimeslab.SetText("");
+ this.m_NeedTimesLab.SetText("");
+ }
+ }
+}