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

namespace XMainClient.UI
{
	internal class ActivityTeamTowerSingleDlgBehaviour : DlgBehaviourBase
	{
		public IXUILabel mStage;

		public IXUILabel mResetNum;

		public IXUILabel mCurrentTime;

		public IXUIButton mMainClose;

		public IXUIButton m_Help;

		public IXUIButton mRank;

		public IXUIButton mGoBattle;

		public IXUILabel mDemandFP;

		public IXUIButton mSweepBtn;

		public IXUIButton mResetBtn;

		public IXUILabel mSweepLabel;

		public IXUIButton mBackClick;

		public IXUISprite mSweepResult;

		public IXUIScrollView mScroll;

		public IXUILabel mResetCount;

		public IXUISprite mResetSprite;

		public IXUISprite mSweepFrame;

		public IXUILabel mSweepedLevel;

		public IXUILabel mSweepEstimateTime;

		public IXUIButton mSingleDoSweep;

		public IXUIButton mDoubleSweep;

		public IXUIButton mDoubleDoSweep;

		public IXUIButton mCloseSweep;

		public IXUISprite mSingleMoneySign;

		public IXUILabel mSingleMoneyNum;

		public IXUISprite mDoubleMoneySign;

		public IXUILabel mDoubleMoneyNum;

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

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

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

		public IXUILabel mRewardLevel;

		public IXUILabel mRewardAlpha;

		public IXUILabel mRewardFreeTime;

		public IXUIButton mRewardRefresh;

		public IXUIButton mRewardGet;

		public IXUISprite mRewardFx;

		public IXUILabel mRewardMoneyNum;

		public IXUISprite mRewardMoneySign;

		public IXUILabel mRewardFreeLabel;

		public GameObject mEffect;

		public IXUIButton mFirstPassBtn;

		public IXUISprite mFirstPassRedPoint;

		public IXUILabel mFirstPassLevel;

		public IXUISprite mFirstPassPanel;

		public IXUIButton mFirstPassGetReward;

		public IXUISprite mFIrstPassCheck;

		public IXUIButton mFirstPassCheckReward;

		public IXUISprite mFirstPassGet;

		public IXUILabel mFirstPassPlsThrough;

		public IXUILabel mFirstPassCongraThrough;

		public IXUISprite mFirstPassBackClick;

		public IXUITweenTool mFirstPassPlayTween;

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

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

		private void Awake()
		{
			this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton);
			this.mCurrentTime = (base.transform.Find("Bg/times").GetComponent("XUILabel") as IXUILabel);
			this.mSweepBtn = (base.transform.Find("Bg/SweepBtn").GetComponent("XUIButton") as IXUIButton);
			this.mResetBtn = (base.transform.Find("Bg/Reset").GetComponent("XUIButton") as IXUIButton);
			this.mSweepLabel = (base.transform.Find("Bg/SweepInfo").GetComponent("XUILabel") as IXUILabel);
			this.mSweepFrame = (base.transform.Find("Bg/SweepFrame").GetComponent("XUISprite") as IXUISprite);
			this.mResetCount = (base.transform.Find("Bg/Reset/Number/Num").GetComponent("XUILabel") as IXUILabel);
			this.mResetSprite = (base.transform.Find("Bg/Reset/Number").GetComponent("XUISprite") as IXUISprite);
			this.mStage = (base.transform.Find("Bg/Stagepanel/Stage").GetComponent("XUILabel") as IXUILabel);
			this.mResetNum = (base.transform.Find("Bg/times").GetComponent("XUILabel") as IXUILabel);
			this.mMainClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.mRank = (base.transform.Find("Bg/Rank").GetComponent("XUIButton") as IXUIButton);
			this.mGoBattle = (base.transform.Find("Bg/GoBattle").GetComponent("XUIButton") as IXUIButton);
			this.mScroll = (base.transform.Find("Bg/Tower").GetComponent("XUIScrollView") as IXUIScrollView);
			this.mDemandFP = (base.transform.Find("Bg/Stagepanel/Reward/fp").GetComponent("XUILabel") as IXUILabel);
			this.mSweepedLevel = (base.transform.Find("Bg/SweepFrame/SweepLevel").GetComponent("XUILabel") as IXUILabel);
			this.mSweepEstimateTime = (base.transform.Find("Bg/SweepFrame/SweepTime").GetComponent("XUILabel") as IXUILabel);
			this.mSingleDoSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnNow").GetComponent("XUIButton") as IXUIButton);
			this.mDoubleSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnNormal").GetComponent("XUIButton") as IXUIButton);
			this.mDoubleDoSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick").GetComponent("XUIButton") as IXUIButton);
			this.mCloseSweep = (base.transform.Find("Bg/SweepFrame/Close").GetComponent("XUIButton") as IXUIButton);
			this.mBackClick = (base.transform.Find("Bg/SweepFrame/backclick").GetComponent("XUIButton") as IXUIButton);
			this.mSingleMoneySign = (base.transform.Find("Bg/SweepFrame/SweepBtnNow/moneysign").GetComponent("XUISprite") as IXUISprite);
			this.mSingleMoneyNum = (base.transform.Find("Bg/SweepFrame/SweepBtnNow/moneynum").GetComponent("XUILabel") as IXUILabel);
			this.mDoubleMoneySign = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick/moneysign").GetComponent("XUISprite") as IXUISprite);
			this.mDoubleMoneyNum = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick/moneynum").GetComponent("XUILabel") as IXUILabel);
			this.mRewardPool.SetupPool(base.transform.Find("Bg/SweepFrame/Grid").gameObject, base.transform.Find("Bg/SweepFrame/Grid/ItemTpl").gameObject, 2u, false);
			this.mTowerPool.SetupPool(base.transform.Find("Bg/Tower").gameObject, base.transform.Find("Bg/Tower/Towerrepeat").gameObject, 5u, false);
			this.mMainRewardPool.SetupPool(base.transform.Find("Bg/Stagepanel").gameObject, base.transform.Find("Bg/Stagepanel/Item").gameObject, 2u, false);
			this.mSweepResult = (base.transform.Find("Bg/SweepResult").GetComponent("XUISprite") as IXUISprite);
			this.mRewardLevel = (base.transform.Find("Bg/SweepResult/Result").GetComponent("XUILabel") as IXUILabel);
			this.mRewardAlpha = (base.transform.Find("Bg/SweepResult/Buff/Time").GetComponent("XUILabel") as IXUILabel);
			this.mRewardFreeTime = (base.transform.Find("Bg/SweepResult/Refresh/Time").GetComponent("XUILabel") as IXUILabel);
			this.mRewardRefresh = (base.transform.Find("Bg/SweepResult/Refresh").GetComponent("XUIButton") as IXUIButton);
			this.mRewardGet = (base.transform.Find("Bg/SweepResult/GetReward").GetComponent("XUIButton") as IXUIButton);
			this.mRewardFx = (base.transform.Find("Bg/SweepResult/Buff/Fx").GetComponent("XUISprite") as IXUISprite);
			this.mRewardMoneyNum = (base.transform.Find("Bg/SweepResult/Refresh/moneynum").GetComponent("XUILabel") as IXUILabel);
			this.mRewardMoneySign = (base.transform.Find("Bg/SweepResult/Refresh/moneynum/moneysign").GetComponent("XUISprite") as IXUISprite);
			this.mRewardFreeLabel = (base.transform.Find("Bg/SweepResult/Refresh/moneyfree").GetComponent("XUILabel") as IXUILabel);
			this.mRewardFramePool.SetupPool(base.transform.Find("Bg/SweepResult").gameObject, base.transform.Find("Bg/SweepResult/Item").gameObject, 2u, false);
			Transform transform = base.transform.Find("Bg/SweepResult/Buff/Time/UI_heianshendian/UI_heianshendian/kuosan_00");
			this.mEffect = base.transform.Find("Bg/SweepResult/Buff/Time/UI_heianshendian/UI_heianshendian").gameObject;
			this.mFirstPassBtn = (base.transform.Find("Bg/FirstBlood").GetComponent("XUIButton") as IXUIButton);
			this.mFirstPassRedPoint = (base.transform.Find("Bg/FirstBlood/RedPoint").GetComponent("XUISprite") as IXUISprite);
			this.mFirstPassLevel = (base.transform.Find("Bg/FirstBlood/StageNum/Num").GetComponent("XUILabel") as IXUILabel);
			this.mFirstPassPanel = (base.transform.Find("Bg/FirstReward").GetComponent("XUISprite") as IXUISprite);
			this.mFirstPassGetReward = (base.transform.Find("Bg/FirstReward/GetReward/BtnReward").GetComponent("XUIButton") as IXUIButton);
			this.mFirstPassCheckReward = (base.transform.Find("Bg/FirstReward/CheckReward/BtnReward").GetComponent("XUIButton") as IXUIButton);
			this.mFIrstPassCheck = (base.transform.Find("Bg/FirstReward/CheckReward").GetComponent("XUISprite") as IXUISprite);
			this.mFirstPassGet = (base.transform.Find("Bg/FirstReward/GetReward").GetComponent("XUISprite") as IXUISprite);
			this.mFirstPassPlsThrough = (base.transform.Find("Bg/FirstReward/CheckReward/Result").GetComponent("XUILabel") as IXUILabel);
			this.mFirstPassCongraThrough = (base.transform.Find("Bg/FirstReward/GetReward/Result").GetComponent("XUILabel") as IXUILabel);
			this.mFirstPassBackClick = (base.transform.Find("Bg/FirstReward/backclick").GetComponent("XUISprite") as IXUISprite);
			this.mFirstPassPlayTween = (base.transform.Find("Bg/FirstBlood/Box").GetComponent("XUIPlayTween") as IXUITweenTool);
			this.mFirstPassReward.SetupPool(base.transform.Find("Bg/FirstReward").gameObject, base.transform.Find("Bg/FirstReward/Item").gameObject, 3u, false);
		}

		private void OnApplicationPause(bool pause)
		{
			XSingleton<XDebug>.singleton.AddLog("OnApplicationPause:", pause.ToString(), null, null, null, null, XDebugColor.XDebug_None);
			XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument<XExpeditionDocument>(XExpeditionDocument.uuID);
			specificDocument.OnAppPaused();
		}
	}
}