心魔试炼快速挑战开启条件修改

china/dev_fengTi
wangzhenxing 2023-08-04 15:15:08 +08:00
parent 7f0038e9c4
commit 49d7c26a39
1 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,9 @@ function MonsterCampNewPanel:InitComponent()
this.btnRank = Util.GetGameObject(self.gameObject, "InfoRoot/btnRank") this.btnRank = Util.GetGameObject(self.gameObject, "InfoRoot/btnRank")
this.btnFormation = Util.GetGameObject(self.gameObject, "InfoRoot/btnFormation") this.btnFormation = Util.GetGameObject(self.gameObject, "InfoRoot/btnFormation")
this.btnHelpFight = Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFight") this.btnHelpFight = Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFight")
this.hintTxt=Util.GetGameObject(self.gameObject, "InfoRoot/hintTxt"):GetComponent("Text")
this.hintTxt.fontSize=40
this.hintTxt.text="开通超级特权开启快速挑战"
end end
--绑定事件(用于子类重写) --绑定事件(用于子类重写)
@ -187,11 +190,14 @@ function MonsterCampNewPanel:OnShow()
this.OnShowPanel() this.OnShowPanel()
end end
function this.OnShowPanel() function this.OnShowPanel()
local isBuy=OperatingManager.IsBuyGift(2202) --local isBuy=OperatingManager.IsBuyGift(2202)
local isBuy=PrivilegeManager.GetPrivilegeRemainValue(4021)>0
if isBuy then if isBuy then
this.moppingUpBtn:SetActive(true) this.moppingUpBtn:SetActive(true)
this.hintTxt.gameObject:SetActive(false)
else else
this.moppingUpBtn:SetActive(false) this.moppingUpBtn:SetActive(false)
this.hintTxt.gameObject:SetActive(true)
end end
SoundManager.PlayMusic(SoundConfig.BGM_Carbon) SoundManager.PlayMusic(SoundConfig.BGM_Carbon)
CheckRedPointStatus(RedPointType.EpicExplore_LevleReward) CheckRedPointStatus(RedPointType.EpicExplore_LevleReward)