summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs
blob: d720e1d6cc41de34c7f92b2c79ee0d47c5165092 (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
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XMainClient.Utility;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XTaskBehaviour : DlgBehaviourBase
	{
		public IXUISprite m_Close;

		public IXUILabelSymbol m_Target;

		public IXUILabelSymbol m_Description;

		public XUIPool m_ItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public XUITabControl m_Tabs = new XUITabControl();

		public XUIPool m_TasksPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public GameObject m_SelectTask;

		public IXUILabel m_SelectTaskLabel;

		public IXUIScrollView m_TaskListScrollView;

		public IXUIButton m_BtnGo;

		public IXUIButton m_BtnReward;

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite);
			Transform transform = base.transform.Find("Bg/Right/Panel/RewardList/ItemTpl");
			this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false);
			this.m_Tabs.SetTabTpl(base.transform.Find("Bg/TabList/TabTpl"));
			transform = base.transform.Find("Bg/Left/TaskTpl");
			this.m_TasksPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false);
			this.m_SelectTask = base.transform.Find("Bg/Left/Select").gameObject;
			this.m_SelectTaskLabel = (this.m_SelectTask.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel);
			this.m_Target = (base.transform.Find("Bg/Right/Panel/Target").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_Description = (base.transform.Find("Bg/Right/Panel/Description").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_TaskListScrollView = (base.transform.Find("Bg/Left").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_BtnGo = (base.transform.Find("Bg/Right/BtnGo").GetComponent("XUIButton") as IXUIButton);
			this.m_BtnReward = (base.transform.Find("Bg/Right/BtnReward").GetComponent("XUIButton") as IXUIButton);
		}
	}
}