diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs new file mode 100644 index 00000000..51798bfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs @@ -0,0 +1,53 @@ +using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient.UI
+{
+ internal class PartnerLivenessBehaviour : 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;
+
+ public IXUILabel m_Name;
+
+ public IXUILabel m_Tip;
+
+ 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);
+ this.m_Name = (base.transform.Find("Bg/UpView/CurrentExp/T").GetComponent("XUILabel") as IXUILabel);
+ this.m_Tip = (base.transform.Find("Bg/Bg/Label").GetComponent("XUILabel") as IXUILabel);
+ }
+ }
+}
|