local UICommonSummary = require "View/Common/UICommonSummary" local UIGoldenHeroTrySummary = UIViewClass(UICommonSummary) function UIGoldenHeroTrySummary:OnOpened(context) end function UIGoldenHeroTrySummary:SetSummaryInfo(context) UIUtils.SetActive(self.group_BtnNext, false) UIUtils.SetActive(self.group_BtnAgain, false) UIUtils.SetActive(self.group_Hint, false) if self.isWin then self.txt_Back.text = nil local seconds = DataSheetManager.ConstData:GetDataByID("ClimbTowerAutoNextLevel").IntValue self.leftTime = seconds self.txt_Back.text = string.FormatByIdsId(Const_IDS.IDS_ClimbTower_AutoQuit, seconds) UIUtils.SetActive(self.group_BtnNext, true) UIUtils.SetActive(self.txt_Next, false) UIUtils.SetActive(self.txt_NextPower, false) self.btn_Next:SetText(Const_IDS.IDS_ClimbTower_Restart) else local seconds = DataSheetManager.ConstData:GetDataByID("ClimbTowerAutoQuit").IntValue self.leftTime = seconds self.txt_Exit.text = string.FormatByIdsId(Const_IDS.IDS_ClimbTower_AutoQuit, seconds) UIUtils.SetActive(self.group_BtnAgain, true) end end function UIGoldenHeroTrySummary:OnClickAgain() self:StopRepeatFunc(self.OnUpdate) MDL.GoldenHeroMain.EnterHeroTry(MDL.GoldenHeroMain.LoadTempData()) end function UIGoldenHeroTrySummary:OnClickNext() self:OnClickAgain() end return UIGoldenHeroTrySummary