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/HallFameBehavior.cs | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs new file mode 100644 index 00000000..528f07ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs @@ -0,0 +1,52 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HallFameBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIButton RankBtn; + + public IXUIButton ShareBtn; + + public IXUIButton SupportBtn; + + public IXUIButton HelpBtn; + + public IXUILabel DateSeasonLabel; + + public XUIPool TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform RoleList; + + public Transform RoleDetail; + + public Transform RecentEmpty; + + public Transform CurrentEmpty; + + public GameObject EffectWidget; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.RankBtn = (base.transform.Find("Bg/RankList").GetComponent("XUIButton") as IXUIButton); + this.ShareBtn = (base.transform.Find("Bg/BtnShare").GetComponent("XUIButton") as IXUIButton); + this.SupportBtn = (base.transform.Find("Bg/Support").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.DateSeasonLabel = (base.transform.Find("Bg/date").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Tabs/TabTpl"); + this.TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.RoleList = base.transform.Find("Bg/RoleList"); + this.RoleDetail = base.transform.Find("Bg/RoleDetail"); + this.RecentEmpty = this.RoleDetail.Find("HistoryRecord/Emport"); + this.CurrentEmpty = this.RoleDetail.Find("Empty"); + this.EffectWidget = base.transform.Find("Bg/EffectWidget").gameObject; + } + } +} -- cgit v1.1-26-g67d0