summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs
blob: bef5e6b75951e705571c4a0d42517a2cf55acfe0 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class MobaEntranceBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close;

		public IXUIButton m_BuyBtn;

		public IXUILabel m_HeroDescription;

		public IXUILabel m_HeroName;

		public IXUILabel m_ExperienceTime;

		public Transform m_SkillPreViewTs;

		public Transform m_BattleRecordFrame;

		public GameObject m_RewardPreViewFrame;

		public IUIDummy m_Snapshot;

		public IXUISprite m_SnapDrag;

		public IXUIButton m_BattleRecordBtn;

		public IXUIButton m_ShopBtn;

		public IXUIButton m_RewardPreViewBtn;

		public IXUIButton m_SingleMatch;

		public IXUIButton m_TeamMatch;

		public IXUILabel m_SingleMatchLabel;

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

		public IXUILabel m_WeekCurrentWin;

		public IXUISprite m_ClickGet;

		public GameObject m_HadGet;

		public IXUILabel m_WeekBattleTips;

		public Transform m_WeekRewardTs;

		public IXUIButton m_RewardPreViewCloseBtn;

		public IXUILabel m_CurrentWinThisWeek;

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

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

		public IXUITexture m_BgTex;

		public IXUIButton m_RankBtn;

		public IXUISprite m_PrivilegeIcon;

		public IXUILabel m_PrivilegeName;

		public IXUISprite m_Privilege;

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

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

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_BattleRecordFrame = base.transform.Find("Bg/BattleRecordFrame");
			this.m_RewardPreViewFrame = base.transform.Find("Bg/RewardPreView").gameObject;
			this.m_SkillPreViewTs = base.transform.Find("Bg/SkillPreViewParent");
			Transform transform = base.transform.Find("Bg/SkillBtn/SkillBtnTpl");
			this.m_SkillsPool.SetupPool(null, transform.gameObject, MobaEntranceView.SKILL_MAX, false);
			this.m_BuyBtn = (base.transform.Find("Bg/BuyBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_HeroDescription = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel);
			this.m_HeroName = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel);
			this.m_ExperienceTime = (base.transform.Find("Bg/ExperienceTime").GetComponent("XUILabel") as IXUILabel);
			Transform transform2 = base.transform.Find("Bg/CharacterFrame");
			this.m_Snapshot = (transform2.Find("Snapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_SnapDrag = (transform2.Find("SnapDrag").GetComponent("XUISprite") as IXUISprite);
			transform2 = base.transform.Find("Bg/Right");
			this.m_BattleRecordBtn = (transform2.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_ShopBtn = (transform2.Find("ShopBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_RewardPreViewBtn = (transform2.Find("RewardPreViewBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_SingleMatch = (transform2.Find("SingleMatchBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_TeamMatch = (transform2.Find("TeamMatchBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_SingleMatchLabel = (this.m_SingleMatch.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel);
			Transform transform3 = transform2.Find("WeekReward/RewardTs/ItemTpl");
			this.m_RewardPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 6u, false);
			this.m_WeekCurrentWin = (transform2.Find("WeekReward/CurrentWin").GetComponent("XUILabel") as IXUILabel);
			this.m_ClickGet = (transform2.Find("WeekReward/ClickGet").GetComponent("XUISprite") as IXUISprite);
			this.m_HadGet = transform2.Find("WeekReward/HadGet").gameObject;
			this.m_WeekBattleTips = (transform2.Find("WeekReward/WeekTips").GetComponent("XUILabel") as IXUILabel);
			this.m_WeekRewardTs = transform2.Find("WeekReward/RewardTs");
			transform2 = base.transform.Find("Bg/RewardPreView");
			this.m_RewardPreViewCloseBtn = (transform2.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_CurrentWinThisWeek = (transform2.Find("Bg/CurrentWin/Text").GetComponent("XUILabel") as IXUILabel);
			transform3 = transform2.Find("Bg/Bg/ScrollView/ItemTpl");
			this.m_PreViewItemPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 16u, false);
			transform3 = transform2.Find("Bg/Bg/ScrollView/RewardTpl");
			this.m_PreViewBgPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 4u, false);
			this.m_BgTex = (base.transform.Find("Bg/Bg").GetComponent("XUITexture") as IXUITexture);
			this.m_RankBtn = (base.transform.Find("Bg/Right/RankBtn").GetComponent("XUIButton") as IXUIButton);
			this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite);
			this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel);
			this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite);
			Transform transform4 = base.transform.Find("Bg/HeroInfo/HeroInfoTpl");
			this.m_AttributesPool.SetupPool(null, transform4.gameObject, 4u, false);
		}
	}
}