local UIClimbTowerNotice = UIViewClass() function UIClimbTowerNotice:OnOpened(context) UIManager.ActiveUIModle(false, "UIClimbTowerNotice") UIUtils.SetLabel(self.UICommonPopShowView.TextBtn2,UIUtils.GetLocalizedTxt(Const_IDS.IDS_NewClimbTower_GoToGetStronger)) UIUtils.SetLabel(self.UICommonPopShowView.TextBtn1,UIUtils.GetLocalizedTxt(Const_IDS.IDS_NewClimbTower_ContinueToChallenge)) UIUtils.SetLabel(self.UICommonPopShowView.lab_Title,UIUtils.GetLocalizedTxt(Const_IDS.IDS_NewClimbTower_DifficultyTipsTitle)) end function UIClimbTowerNotice:OnButtonClicked(obj) if obj == self.UICommonPopShowView.btn_2 then -- 前往变强,打开阵容界面 --阵容 UIManager.OpenAndPush(Const_UI_Lua.UIEnum.UIHeroFormationPanel,nil, nil, Const_UI_Lua.UIEnum.UIClimbTowerMainPanel) self:CloseView() elseif obj == self.UICommonPopShowView.btn_1 then -- 继续出战 local nextConfig = CTL.ClimbTower.GetNextLevelConfig() --进爬塔关 local mapID = CTL.ClimbTower.GetClimbTowerLevelId(nextConfig.ID) if CTL.HotFix.HasLevelPackageDownload(nil, mapID) == false then return end MDL.LevelSelect.EnterFuben(LuaConst.LevelType.ClimbTower, nextConfig.ID, nil, mapID) MDL.ClimbTower.SetFirstEnterLevelId(nextConfig.ID) self:CloseView() elseif obj == self.UICommonPopShowView.img_Bg then --关闭界面 self:CloseView() end end function UIClimbTowerNotice:OnValueChanged(comp, state) if comp == self.toggle_Check then if state then CTL.ClimbTower.SetNotShowGSNotice() end end end function UIClimbTowerNotice:OnClosed() UIManager.ActiveUIModle(true, "UIClimbTowerNotice") end return UIClimbTowerNotice