local UIStormResult = UIViewClass() function UIStormResult:OnOpened(context) CTL.Sound.PlayGameSound("MUSIC_Victory") UIUtils.SetLabel(self.txt_Time, UTL.Time.FormatTimeBySeconds(context.Time)) UIUtils.SetLabel(self.txt_Score, context.score) UIUtils.SetLabel(self.txt_HighestScore, context.maxScore) self.summaryTemplateEffectHandle1, self.summaryTemplateEffectHandle2 = CTL.LevelSelect.ShowCommonSummaryTemplate(self, true) end function UIStormResult:OnButtonClicked(comp) if comp == self.btn_Exit then self:OnClickExit() end end function UIStormResult:OnClickExit() MDL.Level.SendRoleLeaveFuben() --退出副本 end return UIStormResult