summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs47
1 files changed, 47 insertions, 0 deletions
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<XGameUI>.singleton.m_uiTool);
+
+ public XUIPool m_ChestPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ public XUIPool m_RewardItemPool = new XUIPool(XSingleton<XGameUI>.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);
+ }
+ }
+}