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.singleton.m_uiTool); public XUIPool mMainRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); public XUIPool mTowerPool = new XUIPool(XSingleton.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.singleton.m_uiTool); public XUIPool mFirstPassReward = new XUIPool(XSingleton.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.singleton.AddLog("OnApplicationPause:", pause.ToString(), null, null, null, null, XDebugColor.XDebug_None); XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); specificDocument.OnAppPaused(); } } }