【优化】云游商人增加白金装备分解配方

dev_chengFeng
ZhangBiao 2021-11-11 14:48:50 +08:00
parent 436de6bf4f
commit 0769659e72
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ local TypeUpdateFunc = {
curData.rewards[i].otherData.needItems = configData[j].NeedItems
curData.rewards[i].otherData.count = configData[j].Count
curData.rewards[i].otherData.composeType = configData[j].ComposeType
curData.rewards[i].otherData.IsShowItem = configData[j].IsShowItem == 1 and true or false
curData.rewards[i].otherData.selectId = 0
end
end

View File

@ -92,11 +92,11 @@ end
function ItemUpstarPre:SetMask()
if self.data.otherData.selectId == 0 then
self.btnMaskNeedAdd:SetActive(true)
self.btnMaskGet:SetActive(true)
self.btnMaskGet:SetActive(not self.data.otherData.IsShowItem)
Util.GetGameObject(self.itemList[1].gameObject,"effects"):SetActive(false)
Util.GetGameObject(self.itemList[1].gameObject,"item/icon"):SetActive(false)
Util.GetGameObject(self.itemList[3].gameObject,"effects"):SetActive(false)
Util.GetGameObject(self.itemList[3].gameObject,"item/icon"):SetActive(false)
Util.GetGameObject(self.itemList[3].gameObject,"item/icon"):SetActive(self.data.otherData.IsShowItem)
else
self.btnMaskNeedAdd:SetActive(false)
self.btnMaskGet:SetActive(false)