summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs
blob: 53a9deabde789c4aa69e5709de17e9f6e9b07c10 (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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient.UI
{
	internal class BattleMainBehaviour : DlgBehaviourBase
	{
		public IXUISprite m_GuildMineBuff;

		public IXUILabel m_GuildMineBuffText;

		public IXUIButton m_HorseRide;

		public Transform m_canvas;

		public Transform m_RoleInfo;

		public Transform m_PingFrame;

		public IXUISprite m_Hpbar = null;

		public IXUISprite m_Mpbar = null;

		public IXUILabel m_HpText;

		public IXUILabel m_MpText;

		public IXUISprite m_HpBackdrop;

		public IXUISprite m_avatar = null;

		public IXUISprite m_sprFrame = null;

		public IXUITexture m_txtHead = null;

		public IXUILabel m_Level = null;

		public IXUILabel m_Name = null;

		public GameObject m_TeamLeader = null;

		public IXUISlider m_sliderBattery;

		public IXUILabel m_lblTime;

		public IXUILabel m_lblfree;

		public GameObject m_avatarGO = null;

		public IXUILabel m_leftTimes = null;

		public IXUILabel m_winConditionTips = null;

		public IXUILabel m_BattleExplainTips = null;

		public IXUIButton m_pause = null;

		public IXPositionGroup m_pauseGroup = null;

		public IXUISprite m_sprwifi;

		public GameObject m_ComboFrame = null;

		public IXUILabel m_ComboText = null;

		public IXUITweenTool m_ComboTextTween = null;

		public IXUITweenTool m_ComboBgTween = null;

		public IXUIProgress m_ComboBuffTime = null;

		public IXUILabel m_ComboBuffName = null;

		public BattleSkillHandler m_SkillHandler;

		public BattleTargetHandler m_BattleTargetHandler;

		public GameObject m_NoticeFrame = null;

		public IXUILabel m_Notice = null;

		public Vector3 m_NoticePos;

		public Transform m_PromptFrame;

		public IXUILabel m_PromptLabel;

		public BattleIndicateHandler m_IndicateHandler;

		public IXUILabel m_LeftTime = null;

		public BattleWorldBossHandler m_WorldBossHandler;

		public XTeamMonitorHandler m_TeamMonitor;

		public XBattleEnemyInfoHandler m_EnemyInfoHandler;

		public XBattleTeamTowerHandler m_TeamTowerHandler;

		public XBuffMonitorHandler m_PlayerBuffMonitorHandler;

		public GameObject m_DpsPanel;

		public GameObject m_LowHP;

		public IXUISprite m_AutoPlayBorad;

		public IXUISprite m_AutoPlayCancelBoard;

		public IXUIButton m_AutoPlay;

		public IXUIButton m_CancelAuto;

		public IXUILabel m_AutoPlayLock;

		public IXUISprite m_AutoPlayTip;

		public IXUILabel m_lblKill;

		public IXUILabel m_WarTime;

		public IXUILabel m_SceneName;

		public Transform m_CountDownFrame;

		public Transform m_CountDownBeginFrame;

		public Transform m_CountDownTimeFrame;

		public IXUIProgress m_StrengthPresevedBar;

		public Transform m_3D25D;

		public Transform m_SightSelect;

		public IXUIButton m_25D;

		public IXUIButton m_3D;

		public IXUIButton m_3DFree;

		public IXUIButton m_Sight;

		public IXUISprite m_SightPic;

		public IXUISprite m_SelectPic;

		public GameObject m_objBossRush;

		public IXUISprite m_sprBuff1;

		public IXUILabel m_lblBuff1;

		public IXUISprite m_sprBuff2;

		public IXUILabel m_lblBuff2;

		public IXUILabel m_lblTitle;

		public GameObject m_objRwd;

		public IXUISprite m_sprBossbg;

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

		public GameObject m_SpectateInfo;

		public IXUILabel m_WatchNum;

		public IXUILabel m_CommendNum;

		public IXUILabel m_SkyAreanStage;

		public IXUISimpleList m_Menu;

		public GameObject m_AutoPlayContent;

		public IXUIButton m_BtnDamageStatistics;

		private void Awake()
		{
			this.m_canvas = base.transform.Find("_canvas");
			this.m_RoleInfo = base.transform.Find("_canvas/Bg/Bg");
			this.m_PingFrame = base.transform.Find("_canvas/Bg/PING");
			this.m_leftTimes = (base.transform.Find("_canvas/LeftTimes").GetComponent("XUILabel") as IXUILabel);
			this.m_leftTimes.SetVisible(false);
			this.m_winConditionTips = (base.transform.Find("_canvas/BattleWinTips").GetComponent("XUILabel") as IXUILabel);
			this.m_winConditionTips.SetVisible(false);
			this.m_BattleExplainTips = (base.transform.Find("_canvas/BattleExplainTips").GetComponent("XUILabel") as IXUILabel);
			Transform transform = this.m_RoleInfo.Find("HpBar");
			this.m_Hpbar = (transform.Find("BackDrop").GetComponent("XUISprite") as IXUISprite);
			this.m_HpBackdrop = this.m_Hpbar;
			Transform transform2 = this.m_RoleInfo.Find("MpBar");
			this.m_Mpbar = (transform2.Find("BackDrop").GetComponent("XUISprite") as IXUISprite);
			this.m_HpText = (this.m_RoleInfo.Find("HpText").GetComponent("XUILabel") as IXUILabel);
			this.m_MpText = (this.m_RoleInfo.Find("MpText").GetComponent("XUILabel") as IXUILabel);
			this.m_sliderBattery = (this.m_PingFrame.Find("Battery").GetComponent("XUISlider") as IXUISlider);
			this.m_lblTime = (this.m_PingFrame.Find("TIME").GetComponent("XUILabel") as IXUILabel);
			this.m_lblfree = (this.m_PingFrame.Find("T2").GetComponent("XUILabel") as IXUILabel);
			Transform transform3 = this.m_RoleInfo.Find("Avatar");
			this.m_avatar = (transform3.GetComponent("XUISprite") as IXUISprite);
			this.m_sprFrame = (transform3.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite);
			this.m_txtHead = (this.m_RoleInfo.Find("HeadPanel/Head").GetComponent("XUITexture") as IXUITexture);
			this.m_Level = (this.m_RoleInfo.Find("CoverPanel/Level").GetComponent("XUILabel") as IXUILabel);
			this.m_Name = (this.m_RoleInfo.Find("PlayerName").GetComponent("XUILabel") as IXUILabel);
			this.m_TeamLeader = this.m_RoleInfo.Find("CoverPanel/TeamLeader").gameObject;
			Transform transform4 = base.transform.Find("_canvas/Pause");
			this.m_pause = (transform4.GetComponent("XUIButton") as IXUIButton);
			this.m_pauseGroup = (transform4.GetComponent("PositionGroup") as IXPositionGroup);
			this.m_sprwifi = (this.m_PingFrame.Find("SysWifi").GetComponent("XUISprite") as IXUISprite);
			DlgHandlerBase.EnsureCreate<BattleIndicateHandler>(ref this.m_IndicateHandler, base.transform.Find("_canvas/Indicate").gameObject, null, false);
			this.m_lblKill = (base.transform.Find("_canvas/KillFrame/Label").GetComponent("XUILabel") as IXUILabel);
			this.m_ComboFrame = base.transform.Find("_canvas/ComboFrame/Frame").gameObject;
			Transform transform5 = base.transform.Find("_canvas/ComboFrame/Frame/Combo/ComboText");
			this.m_ComboText = (transform5.GetComponent("XUILabel") as IXUILabel);
			this.m_ComboTextTween = (transform5.GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_ComboBgTween = (base.transform.Find("_canvas/ComboFrame/Frame/Combo").GetComponent("XUIPlayTween") as IXUITweenTool);
			this.m_ComboFrame.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away;
			this.m_ComboBuffTime = (base.transform.Find("_canvas/ComboFrame/BuffArmor").GetComponent("XUIProgress") as IXUIProgress);
			this.m_ComboBuffName = (base.transform.Find("_canvas/ComboFrame/BuffArmor/Buff").GetComponent("XUILabel") as IXUILabel);
			this.m_ComboBuffTime.gameObject.SetActive(false);
			this.m_PromptFrame = base.transform.Find("_canvas/PromptFrame");
			this.m_PromptLabel = (base.transform.Find("_canvas/PromptFrame/Notice").GetComponent("XUILabel") as IXUILabel);
			this.m_PromptFrame.gameObject.SetActive(false);
			this.m_NoticeFrame = base.transform.Find("_canvas/NoticeFrame").gameObject;
			transform5 = base.transform.Find("_canvas/NoticeFrame/Notice");
			this.m_NoticePos = this.m_NoticeFrame.transform.localPosition;
			this.m_Notice = (transform5.GetComponent("XUILabel") as IXUILabel);
			this.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away;
			this.m_LowHP = base.transform.Find("_canvas/LowHPNotice").gameObject;
			this.m_LowHP.SetActive(false);
			this.m_LeftTime = (base.transform.Find("_canvas/LeftTime").GetComponent("XUILabel") as IXUILabel);
			this.m_LeftTime.SetVisible(false);
			this.m_WarTime = (base.transform.Find("_canvas/WarTime").GetComponent("XUILabel") as IXUILabel);
			this.m_WarTime.SetVisible(false);
			this.m_SceneName = (base.transform.Find("_canvas/Indicate/Bg/Name").GetComponent("XUILabel") as IXUILabel);
			DlgHandlerBase.EnsureCreate<BattleWorldBossHandler>(ref this.m_WorldBossHandler, base.transform.Find("_canvas/WorldBossFrame").gameObject, null, false);
			DlgHandlerBase.EnsureCreate<BattleSkillHandler>(ref this.m_SkillHandler, base.transform.Find("_canvas/SkillFrame").gameObject, null, false);
			DlgHandlerBase.EnsureCreate<XTeamMonitorHandler>(ref this.m_TeamMonitor, base.transform.Find("_canvas/TeamFrame").gameObject, null, false);
			DlgHandlerBase.EnsureCreate<XBattleEnemyInfoHandler>(ref this.m_EnemyInfoHandler, base.transform.Find("_canvas/EnemyInfoFrame").gameObject, null, true);
			DlgHandlerBase.EnsureCreate<BattleTargetHandler>(ref this.m_BattleTargetHandler, base.transform.Find("_canvas/BattleTaget").gameObject, null, true);
			DlgHandlerBase.EnsureCreate<XBattleTeamTowerHandler>(ref this.m_TeamTowerHandler, base.transform.Find("_canvas/TeamTower").gameObject, null, false);
			DlgHandlerBase.EnsureCreate<XBuffMonitorHandler>(ref this.m_PlayerBuffMonitorHandler, this.m_RoleInfo.Find("BuffFrame").gameObject, null, true);
			this.m_PlayerBuffMonitorHandler.InitMonitor(XSingleton<XGlobalConfig>.singleton.BuffMaxDisplayCountPlayer, true, true);
			this.m_AutoPlay = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/AutoPlay").GetComponent("XUIButton") as IXUIButton);
			this.m_AutoPlay.ID = 1UL;
			this.m_AutoPlayBorad = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard").GetComponent("XUISprite") as IXUISprite);
			this.m_AutoPlayCancelBoard = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayCancel").GetComponent("XUISprite") as IXUISprite);
			this.m_AutoPlayTip = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/Content/Lock").GetComponent("XUISprite") as IXUISprite);
			this.m_CancelAuto = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayCancel/AutoPlay").GetComponent("XUIButton") as IXUIButton);
			this.m_CancelAuto.ID = 0UL;
			this.m_AutoPlayLock = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/Content").GetComponent("XUILabel") as IXUILabel);
			this.m_CountDownFrame = base.transform.Find("_canvas/CountDownFrame");
			this.m_CountDownBeginFrame = this.m_CountDownFrame.Find("Begin");
			this.m_CountDownTimeFrame = this.m_CountDownFrame.Find("Time");
			this.m_CountDownFrame.gameObject.SetActive(false);
			this.m_StrengthPresevedBar = (base.transform.Find("_canvas/ChargeBar").GetComponent("XUIProgress") as IXUIProgress);
			this.m_3D25D = base.transform.Find("_canvas/3D25D");
			this.m_SightSelect = base.transform.Find("_canvas/3D25D/Select");
			this.m_25D = (base.transform.Find("_canvas/3D25D/Select/25D").GetComponent("XUIButton") as IXUIButton);
			this.m_3D = (base.transform.Find("_canvas/3D25D/Select/3D").GetComponent("XUIButton") as IXUIButton);
			this.m_3DFree = (base.transform.Find("_canvas/3D25D/Select/3DFree").GetComponent("XUIButton") as IXUIButton);
			this.m_Sight = (base.transform.Find("_canvas/3D25D/Sight").GetComponent("XUIButton") as IXUIButton);
			this.m_SightPic = (base.transform.Find("_canvas/3D25D/Sight/Content").GetComponent("XUISprite") as IXUISprite);
			this.m_SelectPic = (base.transform.Find("_canvas/3D25D/Select/Content").GetComponent("XUISprite") as IXUISprite);
			this.m_objBossRush = base.transform.Find("_canvas/BossRushReward").gameObject;
			this.m_sprBossbg = (this.m_objBossRush.transform.GetComponent("XUISprite") as IXUISprite);
			this.m_sprBuff1 = (base.transform.Find("_canvas/BossRushReward/BuffIcon").GetComponent("XUISprite") as IXUISprite);
			this.m_lblBuff1 = (this.m_sprBuff1.gameObject.transform.Find("T2").GetComponent("XUILabel") as IXUILabel);
			this.m_sprBuff2 = (base.transform.Find("_canvas/BossRushReward/BuffIcon2").GetComponent("XUISprite") as IXUISprite);
			this.m_lblBuff2 = (this.m_sprBuff2.gameObject.transform.Find("T2").GetComponent("XUILabel") as IXUILabel);
			this.m_lblTitle = (base.transform.Find("_canvas/BossRushReward/name").GetComponent("XUILabel") as IXUILabel);
			this.m_objRwd = base.transform.Find("_canvas/BossRushReward/ItemList/Item").gameObject;
			this.m_rwdpool.SetupPool(this.m_objRwd.transform.parent.gameObject, this.m_objRwd, 2u, true);
			this.m_SpectateInfo = base.transform.Find("_canvas/Spectate").gameObject;
			this.m_WatchNum = (this.m_SpectateInfo.transform.Find("WatchNum").GetComponent("XUILabel") as IXUILabel);
			this.m_CommendNum = (this.m_SpectateInfo.transform.Find("CommendNum").GetComponent("XUILabel") as IXUILabel);
			this.m_DpsPanel = base.transform.Find("_canvas/Adlet").gameObject;
			this.m_SkyAreanStage = (base.transform.Find("_canvas/SkyAreanStage").GetComponent("XUILabel") as IXUILabel);
			this.m_HorseRide = (base.transform.Find("_canvas/LeftButton/HorseRide").GetComponent("XUIButton") as IXUIButton);
			this.m_GuildMineBuff = (base.transform.Find("_canvas/GuildMineBuff").GetComponent("XUISprite") as IXUISprite);
			this.m_GuildMineBuffText = (base.transform.Find("_canvas/GuildMineBuff/T").GetComponent("XUILabel") as IXUILabel);
			this.m_Menu = (base.transform.Find("_canvas/Menu").GetComponent("XUISimpleList") as IXUISimpleList);
			this.m_AutoPlayContent = this.m_Menu.gameObject.transform.Find("AutoPlayContent").gameObject;
			this.m_BtnDamageStatistics = (this.m_Menu.gameObject.transform.Find("BtnDamageStatistics").GetComponent("XUIButton") as IXUIButton);
		}
	}
}