summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs
blob: f69ef925ac547d005ae7ae2a37cea4f7b9f17e1b (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient.UI
{
	internal class DungeonSelectBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close;

		public IXUISprite m_Normal;

		public IXUISprite m_Hard;

		public IXUICheckBox m_cbNormal;

		public IXUICheckBox m_cbHard;

		public GameObject m_NormalRedpoint;

		public GameObject m_HardRedpoint;

		public GameObject m_NormalBg;

		public GameObject m_HardBg;

		public BoxCollider m_hardBox;

		public BoxCollider m_normalBox;

		public IXUISprite m_LevelBg;

		public IXUITweenTool m_LevelTween;

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

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

		public IXUILabel m_Rank;

		public IXUIProgress m_RankProgress;

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

		public GameObject m_BoxFrame;

		public IXUISprite m_BoxFrameBg;

		public GameObject m_BoxChest;

		public IXUILabel m_BoxStar;

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

		public IXUIButton m_BoxFetch;

		public GameObject m_BoxRedPoint;

		public GameObject m_SceneDetail;

		public GameObject m_SceneNormal;

		public GameObject m_SceneHard;

		public IXUILabel m_SceneName;

		public IXUIButton m_SceneClose;

		public IXUILabel[] m_SceneStarCond = new IXUILabel[3];

		public IXUISprite[] m_SceneStar = new IXUISprite[3];

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

		public IXUILabel m_SceneHint;

		public IXUILabel m_SceneMyPPT;

		public IXUILabel m_SceneRecommendPPT;

		public IXUILabel m_SweepPPT;

		public GameObject m_SweepPPTName;

		public IXUILabel m_SweepTicketLab;

		public IXUISprite m_addTicketSpr;

		public GameObject m_SweepTicketGo;

		public IXUIButton m_SceneGoBattle;

		public IXUIButton m_SceneSoloBattle;

		public IXUIButton m_SceneTeamBattle;

		public IXUILabelSymbol m_SceneSoloBattleCost;

		public IXUILabelSymbol m_SceneTeamBattleCost;

		public IXUIButton m_SceneQuick1;

		public IXUIButton m_SceneQuick10;

		public IXUILabel m_SceneQuick10Lab;

		public IXUILabel m_DropExpLab;

		public IXUILabel m_DropExpLab1;

		public GameObject m_SceneFirstSSS;

		public IXUILabelSymbol m_SceneFirstSSSReward;

		public IXUILabelSymbol m_Cost;

		public IXUILabel m_SceneRecommendHint;

		public Vector3 m_SceneTeamBattlePos;

		public IXUIButton m_Left;

		public IXUIButton m_Right;

		public IXUITweenTool m_MainHint;

		public IXUILabel m_MainHintText;

		public GameObject m_HardLeftCountGo0;

		public GameObject m_HardLeftCountGo1;

		public IXUILabel m_HardLeftCount0;

		public IXUILabel m_HardLeftCount1;

		public IXUISprite m_BtnAddHardLeftCount0;

		public IXUISprite m_BtnAddHardLeftCount1;

		public IXUISprite m_PrerogativeSpr;

		public IXUILabel m_PrerogativeLab;

		public IXUISprite m_PrerogativeBg;

		public IXUIButton m_ShopBtn;

		private void Awake()
		{
			this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_Normal = (base.transform.Find("Bg/Normal").GetComponent("XUISprite") as IXUISprite);
			this.m_Hard = (base.transform.Find("Bg/Hard").GetComponent("XUISprite") as IXUISprite);
			this.m_NormalRedpoint = base.transform.Find("Bg/Normal/RedPoint").gameObject;
			this.m_HardRedpoint = base.transform.Find("Bg/Hard/RedPoint").gameObject;
			this.m_cbNormal = (this.m_Normal.gameObject.GetComponent("XUICheckBox") as IXUICheckBox);
			this.m_cbHard = (this.m_Hard.gameObject.GetComponent("XUICheckBox") as IXUICheckBox);
			this.m_normalBox = base.transform.Find("Bg/Normal").GetComponent<BoxCollider>();
			this.m_hardBox = base.transform.Find("Bg/Hard").GetComponent<BoxCollider>();
			Transform transform = base.transform.Find("Bg/PlayTween");
			this.m_LevelTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_LevelBg = (transform.GetComponent("XUISprite") as IXUISprite);
			Transform transform2 = base.transform.Find("Bg/PlayTween/LevelFramePanel/LevelFrame/LevelTpl");
			this.m_ScenePool.SetupPool(transform.Find("LevelFramePanel").gameObject, transform2.gameObject, 20u, false);
			transform2 = base.transform.Find("Bg/PlayTween/LevelFramePanel/LevelFrame");
			this.m_SceneFramePool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false);
			this.m_NormalBg = base.transform.Find("Bg/NormalBg").gameObject;
			this.m_HardBg = base.transform.Find("Bg/HardBg").gameObject;
			this.m_Rank = (base.transform.Find("Bg/StarBar/Text").GetComponent("XUILabel") as IXUILabel);
			this.m_RankProgress = (base.transform.Find("Bg/StarBar").GetComponent("XUIProgress") as IXUIProgress);
			transform2 = base.transform.Find("Bg/StarBar/Reward");
			this.m_RankBox.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false);
			this.m_BoxFrame = base.transform.Find("Bg/BoxFrame").gameObject;
			this.m_BoxFrame.SetActive(false);
			this.m_BoxFrameBg = (base.transform.Find("Bg/BoxFrame/Bg").GetComponent("XUISprite") as IXUISprite);
			this.m_BoxChest = base.transform.Find("Bg/BoxFrame/T1").gameObject;
			this.m_BoxStar = (base.transform.Find("Bg/BoxFrame/Text").GetComponent("XUILabel") as IXUILabel);
			transform2 = base.transform.Find("Bg/BoxFrame/DropFrame/ItemTpl");
			this.m_BoxRewardPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false);
			this.m_BoxFetch = (base.transform.Find("Bg/BoxFrame/Fetch").GetComponent("XUIButton") as IXUIButton);
			this.m_BoxRedPoint = base.transform.Find("Bg/BoxFrame/RedPoint").gameObject;
			this.m_SceneDetail = base.transform.Find("Bg/DetailFrame").gameObject;
			this.m_SceneDetail.gameObject.SetActive(false);
			this.m_SceneNormal = this.m_SceneDetail.transform.Find("Normal").gameObject;
			this.m_SceneHard = this.m_SceneDetail.transform.Find("Hard").gameObject;
			this.m_SceneName = (this.m_SceneDetail.transform.Find("Name").GetComponent("XUILabel") as IXUILabel);
			this.m_SceneClose = (this.m_SceneDetail.transform.Find("Close").GetComponent("XUIButton") as IXUIButton);
			for (int i = 0; i < 3; i++)
			{
				this.m_SceneStarCond[i] = (this.m_SceneDetail.transform.Find("Name/Star" + (i + 1) + "/Desc").GetComponent("XUILabel") as IXUILabel);
				this.m_SceneStar[i] = (this.m_SceneDetail.transform.Find("Name/Star" + (i + 1)).GetComponent("XUISprite") as IXUISprite);
			}
			transform2 = this.m_SceneDetail.transform.Find("DropFrame/Panel/Grid/ItemTpl");
			this.m_SceneDropPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false);
			this.m_DropExpLab = (this.m_SceneDetail.transform.Find("DropFrame/ResouceDrop/Label").GetComponent("XUILabel") as IXUILabel);
			this.m_DropExpLab1 = (this.m_SceneDetail.transform.Find("DropFrame/ResouceDrop1/Label").GetComponent("XUILabel") as IXUILabel);
			transform2 = this.m_SceneDetail.transform.Find("Bg");
			this.m_SceneHint = (transform2.Find("Hint").GetComponent("XUILabel") as IXUILabel);
			this.m_SceneMyPPT = (transform2.Find("MyPPT").GetComponent("XUILabel") as IXUILabel);
			this.m_SceneRecommendPPT = (transform2.Find("RecommendPPT").GetComponent("XUILabel") as IXUILabel);
			this.m_SweepPPT = (transform2.Find("SweepPPT").GetComponent("XUILabel") as IXUILabel);
			this.m_SweepPPTName = this.m_SceneDetail.transform.Find("P/T4").gameObject;
			this.m_SweepTicketGo = transform2.Find("SweepQuantity").gameObject;
			this.m_SweepTicketLab = (this.m_SweepTicketGo.transform.GetComponent("XUILabel") as IXUILabel);
			this.m_addTicketSpr = (this.m_SweepTicketGo.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite);
			this.m_SceneGoBattle = (transform2.Find("GoBattle").GetComponent("XUIButton") as IXUIButton);
			this.m_SceneSoloBattle = (transform2.Find("GoAloneBattle").GetComponent("XUIButton") as IXUIButton);
			this.m_SceneSoloBattleCost = (transform2.Find("GoAloneBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_SceneTeamBattle = (transform2.Find("GoTeamBattle").GetComponent("XUIButton") as IXUIButton);
			this.m_SceneTeamBattleCost = (transform2.Find("GoTeamBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_SceneTeamBattlePos = this.m_SceneTeamBattle.gameObject.transform.localPosition;
			this.m_SceneQuick1 = (transform2.Find("Quick1").GetComponent("XUIButton") as IXUIButton);
			this.m_SceneQuick10 = (transform2.Find("Quick10").GetComponent("XUIButton") as IXUIButton);
			this.m_SceneQuick10Lab = (transform2.Find("Quick10/T1").GetComponent("XUILabel") as IXUILabel);
			this.m_Cost = (transform2.Find("GoBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_SceneFirstSSS = transform2.Find("First3Star").gameObject;
			this.m_SceneFirstSSSReward = (this.m_SceneFirstSSS.transform.Find("Num").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_SceneRecommendHint = (base.transform.Find("Bg/DetailFrame/Tj").GetComponent("XUILabel") as IXUILabel);
			this.m_Left = (base.transform.Find("Bg/Left").GetComponent("XUIButton") as IXUIButton);
			this.m_Right = (base.transform.Find("Bg/Right").GetComponent("XUIButton") as IXUIButton);
			this.m_MainHint = (base.transform.Find("Bg/MainHint").GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_MainHintText = (base.transform.Find("Bg/MainHint").GetComponent("XUILabel") as IXUILabel);
			this.m_HardLeftCountGo0 = base.transform.Find("Bg/HardLeftCount").gameObject;
			this.m_HardLeftCountGo1 = base.transform.Find("Bg/DetailFrame/HardLeftCount").gameObject;
			this.m_PrerogativeBg = (this.m_HardLeftCountGo0.transform.Find("tq/p").GetComponent("XUISprite") as IXUISprite);
			this.m_PrerogativeSpr = (this.m_HardLeftCountGo0.transform.Find("tq").GetComponent("XUISprite") as IXUISprite);
			this.m_PrerogativeLab = (this.m_HardLeftCountGo0.transform.Find("tq/t").GetComponent("XUILabel") as IXUILabel);
			this.m_HardLeftCount0 = (this.m_HardLeftCountGo0.transform.Find("Value").GetComponent("XUILabel") as IXUILabel);
			this.m_HardLeftCount1 = (this.m_HardLeftCountGo1.transform.Find("Value").GetComponent("XUILabel") as IXUILabel);
			this.m_BtnAddHardLeftCount0 = (this.m_HardLeftCountGo0.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite);
			this.m_BtnAddHardLeftCount1 = (this.m_HardLeftCountGo1.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite);
			this.m_MainHint.gameObject.SetActive(false);
			this.m_ShopBtn = (base.transform.Find("Bg/BtnShop").GetComponent("XUIButton") as IXUIButton);
		}
	}
}