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/WeeknestBehaviour.cs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs new file mode 100644 index 00000000..224decd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs @@ -0,0 +1,48 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeeknestBehaviour : DlgBehaviourBase + { + public IXUILabel m_tittleLab; + + public IXUILabel m_timesLab; + + public IXUILabel m_tipsLab; + + public IXUIButton m_rankBtn; + + public IXUIButton m_goBattleBtn; + + public IXUIButton m_closedBtn; + + public IXUITexture m_bgTexture; + + public GameObject m_itemsGo; + + public Transform m_rankTra; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_rankTra = base.transform.Find("Rank"); + this.m_closedBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Main/Tittles"); + this.m_tittleLab = (transform.Find("Tittle1").GetComponent("XUILabel") as IXUILabel); + this.m_timesLab = (transform.Find("Times").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Main/Btns"); + this.m_rankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_goBattleBtn = (transform.Find("GoBtn").GetComponent("XUIButton") as IXUIButton); + this.m_bgTexture = (base.transform.Find("Main/P").GetComponent("XUITexture") as IXUITexture); + transform = base.transform.Find("Main/Items"); + this.m_itemsGo = transform.gameObject; + this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, false); + this.m_tipsLab = (transform.Find("t").GetComponent("XUILabel") as IXUILabel); + } + } +} -- cgit v1.1-26-g67d0