【变身卡】======自选箱去掉选择限制

wangzhenxing 2022-09-06 14:55:52 +08:00
parent ba6ee4065d
commit 290a284596
1 changed files with 10 additions and 10 deletions

View File

@ -214,16 +214,16 @@ function RewardBoxPanel:SetSingleGiftData(index,item,dataList)
select:GetComponent("Button").interactable = BagManager.isBagPanel
select:SetActive(BagManager.isBagPanel)
yihuode:SetActive(false)
if heroConfig.ItemType == ItemType.Incarnation and BagManager.isBagPanel then
local num = BagManager.GetItemCountById(dataList[index][1])
if num > 0 or IncarnationManager.GetStatusByItemId(dataList[index][1]) >= 0 then
select:SetActive(false)
yihuode:SetActive(true)
else
select:SetActive(true)
yihuode:SetActive(false)
end
end
-- if heroConfig.ItemType == ItemType.Incarnation and BagManager.isBagPanel then
-- local num = BagManager.GetItemCountById(dataList[index][1])
-- if num > 0 or IncarnationManager.GetStatusByItemId(dataList[index][1]) >= 0 then
-- select:SetActive(false)
-- yihuode:SetActive(true)
-- else
-- select:SetActive(true)
-- yihuode:SetActive(false)
-- end
-- end
if heroConfig.ItemType == ItemType.Talisman then
if heroConfig.ItemDescribe then
local aaa=string.split(heroConfig.ItemDescribe,'')