From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/DragonGuildLivenessBehaviour.cs | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs new file mode 100644 index 00000000..b82f983a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs @@ -0,0 +1,47 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonGuildLivenessBehaviour : DlgBehaviourBase + { + public ILoopScrollView m_loopScrool; + + public XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_closedSpr; + + public XChestProgress m_Progress; + + public IXUILabel m_totalExp; + + public XNumberTween m_TotalExpTween; + + public IXUILabel m_chestTips; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/RightView/ActivityTpl"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_closedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_Progress = new XChestProgress(base.transform.Find("Bg/UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + transform = base.transform.Find("Bg/UpView/Progress/Chests/Chest"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/LeftView/Item"); + this.m_RewardItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_totalExp = (base.transform.Find("Bg/UpView/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_TotalExpTween = XNumberTween.Create(this.m_totalExp); + this.m_TotalExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_chestTips = (base.transform.Find("Bg/LeftView/BigChest/Tips/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_loopScrool = (base.transform.Find("Bg/RightView").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_ChestPool.ReturnAll(false); + } + } +} -- cgit v1.1-26-g67d0