From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/ActivityWeekendPartyBehaviour.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs new file mode 100644 index 00000000..e5657880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs @@ -0,0 +1,52 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityWeekendPartyBehaviour : DlgBehaviourBase + { + public IXUILabel m_CurrActName; + + public IXUILabel m_Rule; + + public IXUILabel m_Times; + + public IXUIButton m_SingleMatch; + + public IXUIButton m_TeamMatch; + + public IXUIButton m_Close; + + public IXUILabel m_SingleMatchLabel; + + public IXUIButton m_Help; + + public IXUITexture m_Bg; + + public IXUILabel m_TimeTip; + + public IXUIList m_DropAward; + + public XUIPool m_DropAwardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Rule = (base.transform.Find("Bg/Left/GameRule").GetComponent("XUILabel") as IXUILabel); + this.m_CurrActName = (base.transform.Find("Bg/Left/CurrName").GetComponent("XUILabel") as IXUILabel); + this.m_Times = (base.transform.Find("Bg/Right/Times").GetComponent("XUILabel") as IXUILabel); + this.m_TimeTip = (base.transform.Find("Bg/Right/Times/time").GetComponent("XUILabel") as IXUILabel); + this.m_SingleMatch = (base.transform.Find("Bg/Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); + this.m_TeamMatch = (base.transform.Find("Bg/Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatchLabel = (this.m_SingleMatch.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Bg = (base.transform.Find("Bg/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_DropAward = (base.transform.Find("Bg/WeekReward/ListPanel/Grid").GetComponent("XUIList") as IXUIList); + Transform transform = this.m_DropAward.gameObject.transform.Find("ItemTpl"); + this.m_DropAwardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 4u, false); + } + } +} -- cgit v1.1-26-g67d0