心魔试炼快速挑战开启条件修改
parent
7f0038e9c4
commit
49d7c26a39
|
@ -49,6 +49,9 @@ function MonsterCampNewPanel:InitComponent()
|
|||
this.btnRank = Util.GetGameObject(self.gameObject, "InfoRoot/btnRank")
|
||||
this.btnFormation = Util.GetGameObject(self.gameObject, "InfoRoot/btnFormation")
|
||||
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
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
|
@ -187,11 +190,14 @@ function MonsterCampNewPanel:OnShow()
|
|||
this.OnShowPanel()
|
||||
end
|
||||
function this.OnShowPanel()
|
||||
local isBuy=OperatingManager.IsBuyGift(2202)
|
||||
--local isBuy=OperatingManager.IsBuyGift(2202)
|
||||
local isBuy=PrivilegeManager.GetPrivilegeRemainValue(4021)>0
|
||||
if isBuy then
|
||||
this.moppingUpBtn:SetActive(true)
|
||||
this.hintTxt.gameObject:SetActive(false)
|
||||
else
|
||||
this.moppingUpBtn:SetActive(false)
|
||||
this.hintTxt.gameObject:SetActive(true)
|
||||
end
|
||||
SoundManager.PlayMusic(SoundConfig.BGM_Carbon)
|
||||
CheckRedPointStatus(RedPointType.EpicExplore_LevleReward)
|
||||
|
|
Loading…
Reference in New Issue