【碎片详情】碎片详情添加灵兽和神将的查看-特殊碎片不显示查看按钮

dev_chengFeng
gaoxin 2021-09-08 18:28:50 +08:00
parent 992608f7a4
commit 29d1b095e5
1 changed files with 11 additions and 6 deletions

View File

@ -471,12 +471,17 @@ function RewardItemSingleShowPopup:OnShow()
end
this.itemView:OnOpen(false, {itemConfigData.Id,0}, 1.1, false, false, false, self.sortingOrder)
if itemConfigData.ItemType == ItemType.HeroDebris then
this.checkHero:SetActive(true)
this.checkHeroText.text = "查看神将"
elseif itemConfigData.ItemType == ItemType.LingShouChip then
this.checkHero:SetActive(true)
this.checkHeroText.text = "查看灵兽"
if itemConfigData.RewardGroup then
local rg = ConfigManager.TryGetConfigData(ConfigName.RewardGroup, itemConfigData.RewardGroup[1])
if rg and rg.ShowItem and itemConfigData.ItemType == ItemType.HeroDebris then
this.checkHero:SetActive(true)
this.checkHeroText.text = "查看神将"
elseif rg and rg.ShowItem and itemConfigData.ItemType == ItemType.LingShouChip then
this.checkHero:SetActive(true)
this.checkHeroText.text = "查看灵兽"
else
this.checkHero:SetActive(false)
end
else
this.checkHero:SetActive(false)
end