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