变身卡自选箱修改提交
parent
dd232c96d7
commit
97c23fb3cb
|
@ -183,6 +183,14 @@ function RewardBoxPanel:SetSingleGiftData(index,item,boxId,tagNum)
|
||||||
--判断是否是在背包界面打开
|
--判断是否是在背包界面打开
|
||||||
select:GetComponent("Button").interactable = BagManager.isBagPanel
|
select:GetComponent("Button").interactable = BagManager.isBagPanel
|
||||||
select:SetActive(BagManager.isBagPanel)
|
select:SetActive(BagManager.isBagPanel)
|
||||||
|
if itemConfig[rewardGroup[boxId].ShowItem[index][1]].ItemType == ItemType.Incarnation then
|
||||||
|
local num = BagManager.GetItemCountById(rewardGroup[boxId].ShowItem[index][1])
|
||||||
|
if num > 0 then
|
||||||
|
select:SetActive(false)
|
||||||
|
else
|
||||||
|
select:SetActive(true)
|
||||||
|
end
|
||||||
|
end
|
||||||
--判断是否选了该物品
|
--判断是否选了该物品
|
||||||
if curId == rewardGroup[boxId].ShowItem[index][1] then
|
if curId == rewardGroup[boxId].ShowItem[index][1] then
|
||||||
go:SetActive(true)
|
go:SetActive(true)
|
||||||
|
|
Loading…
Reference in New Issue