限时抽卡修改

TCX_dev_realOne_master
PC-202302260912\Administrator 2023-12-19 22:00:48 +08:00
parent 2e6656e615
commit 03b9e20916
2 changed files with 16 additions and 6 deletions

View File

@ -295,6 +295,12 @@ function TimeLimitUpHero:RefreshGetHeroTimes()
m.num.text= PrintWanNum2(itemNum)
end
local sureFunc=function()
local isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.ChouJiangRukou)
local tip=GetFunctionOpenTip(FUNCTION_OPEN_TYPE.ChouJiangRukou)
if isOpen==false then
PopupTipPanel.ShowTip(tip)
return
end
local isFree = PrivilegeManager.GetPrivilegeRemainValue(self.freeTimesId)>= 1 and n == 1
if not isFree then
local count=PrivilegeManager.GetPrivilegeRemainValue(Setting.DiamondMaxTimes)

View File

@ -405,13 +405,17 @@ function this:RefreshTabData()
this.itemList[i].go.gameObject:SetActive(true)
this.itemList[i].tipObj:SetActive(false)
this.itemList[i].img.sprite = this.spLoader:LoadSprite(self.dicData[i].Icon[1])
if self.dicData[i].ActId==2 then
local isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.EquipWish)
local tip=GetFunctionOpenTip(FUNCTION_OPEN_TYPE.EquipWish)
this.itemList[i].tipObj:SetActive(not isOpen)
this.itemList[i].tipTxt.text=tip
local isOpen=true
local tip=""
if self.dicData[i].ActId==2 then
isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.EquipWish)
tip=GetFunctionOpenTip(FUNCTION_OPEN_TYPE.EquipWish)
elseif self.dicData[i].ActId==121 then
isOpen =CheckFunctionOpen(FUNCTION_OPEN_TYPE.ChouJiangRukou)
tip=GetFunctionOpenTip(FUNCTION_OPEN_TYPE.ChouJiangRukou)
end
this.itemList[i].tipObj:SetActive(not isOpen)
this.itemList[i].tipTxt.text=tip
BindRedPointObject(self.dicData[i].RpType,this.itemList[i].redpot)
redPointTypeList[self.dicData[i].RpType] = this.itemList[i].redpot
end