summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs
blob: 51798bfbb7110b24a4e929e2f002d262500dcb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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);
		}
	}
}