local UIKingChallengeSeasonOpen = UIViewClass() function UIKingChallengeSeasonOpen:OnOpened() self.curBigSeasonId = MDL.KingChallenge.GetCurBigSeasonId() local bigSeasonCfg = DataSheetManager.KingChallengeSeason:GetDataByID(self.curBigSeasonId) if self.Loc_tittle.CurState == 1 then self.Loc_tittle:SetText(0, UIUtils.GetLocalizedTxt(Const_IDS[bigSeasonCfg.SeasonName])) else self.Loc_tittle:SetImage(0, bigSeasonCfg.SeasonArtName, true) end UIUtils.SetImageByAssetBundle(self.img_season, bigSeasonCfg.SeasonPic) CTL.Sound.PlayGameSound("UI_unique") end function UIKingChallengeSeasonOpen:OnButtonClicked(com) if com == self.btn_Start then self:CloseView() CTL.SubjectMonth.OpenMainView() end end return UIKingChallengeSeasonOpen