local UICommonSummary = require "View/Common/UICommonSummary" local UIGoldenHeroAnecdoteSummary = UIViewClass(UICommonSummary) local timeHintText = UIUtils.GetLocalizedTxt(Const_IDS.IDS_GoldHeroActivity_AnecdotalHint3) local function StringFormat(ids) return string.format(timeHintText, UIUtils.GetLocalizedTxt(Const_IDS[ids])) end function UIGoldenHeroAnecdoteSummary:SetSummaryInfo(context) UIUtils.SetActive(self.group_BtnNext, false) UIUtils.SetActive(self.group_BtnAgain, false) if self.isWin then UIUtils.SetActive(self.group_Hint, false) self.txt_Back.text = nil local seconds = DataSheetManager.ConstData:GetDataByID("ClimbTowerAutoQuit").IntValue self.leftTime = seconds self.txt_Back.text = string.FormatByIdsId(Const_IDS.IDS_ClimbTower_AutoQuit, seconds) else UIUtils.SetActive(self.group_Hint, true) local seconds = DataSheetManager.ConstData:GetDataByID("ClimbTowerAutoQuit").IntValue self.leftTime = seconds self.txt_Exit.text = string.FormatByIdsId(Const_IDS.IDS_ClimbTower_AutoQuit, seconds) local activityId, anecdoteId = MDL.GoldenHeroAnecdote.LoadTempData() local percent, isMax, leftTime = MDL.GoldenHeroAnecdote.GetDampPercentAndTime(activityId, anecdoteId) if not isMax then self.group_Hint:SetDHMSStr(StringFormat("IDS_PreviewTime1"), StringFormat("IDS_PreviewTime2"), StringFormat("IDS_PreviewTime3"), StringFormat("IDS_PreviewTime4")) self.group_Hint:ResetAndBeginCustomTimer(false, leftTime, 0, "") else self.group_Hint:EndTimer() end end end function UIGoldenHeroAnecdoteSummary:OnClickAgain() end function UIGoldenHeroAnecdoteSummary:OnClickNext() end return UIGoldenHeroAnecdoteSummary