local UIKingChallengeSeasonBuffPopUp = UIViewClass() function UIKingChallengeSeasonBuffPopUp:OnOpened() UIUtils.SetActive(self.UICommonPopShowView.btn_1, false) UIUtils.SetActive(self.UICommonPopShowView.btn_2, false) self.curBigSeasonId = MDL.KingChallenge.GetCurBigSeasonId() local bigSeasonCfg = DataSheetManager.KingChallengeSeason:GetDataByID(self.curBigSeasonId) local str1 = UIUtils.GetLocalizedTxt(Const_IDS[bigSeasonCfg.SeasonName]) UIUtils.SetLabel(self.UICommonPopShowView.lab_Title, string.FormatByIdsId(Const_IDS.IDS_VersionsActivity_King_Hint2, str1)) UIUtils.SetLabelText(self.txt_des, Const_IDS[bigSeasonCfg.SeasonBuffIDS]) end function UIKingChallengeSeasonBuffPopUp:OnBackButtonPressed() self:OnButtonClicked(self.UICommonPopShowView.img_Bg) end function UIKingChallengeSeasonBuffPopUp:OnButtonClicked(com) if com == self.UICommonPopShowView.img_Bg then self:CloseView() end end function UIKingChallengeSeasonBuffPopUp:OnClosed() UIUtils.SetActive(self.UICommonPopShowView.btn_1, true) UIUtils.SetActive(self.UICommonPopShowView.btn_2, true) end return UIKingChallengeSeasonBuffPopUp