local UIDemonGodResult = UIViewClass() function UIDemonGodResult:OnOpened(context) CTL.Sound.PlayGameSound("UI_victory_v1") UIManager.ActiveUIModle(false, "UIDemonGodResult") local passTime = context.passTime self.txt_Time.text = UTL.Time.FormatTimeBySeconds(passTime) local demonGodResult = context.demonGodResult self.txt_ScoreNow.text = demonGodResult.damage self.txt_ScoreRecord.text = demonGodResult.maxDamage CTL.DemonGod.ShowRewards() end function UIDemonGodResult:OnButtonClicked(comp) if comp == self.event_Again then MDL.DemonGod.TryEnterDemonGodAgain() elseif comp == self.event_Exit then MDL.Level.SendRoleLeaveFuben() end end function UIDemonGodResult:OnClosed() UIManager.ActiveUIModle(true, "UIDemonGodResult") end return UIDemonGodResult