背包通用碎片显示修改

wangzhenxing 2022-11-04 15:11:02 +08:00
parent 0c1b52f64f
commit 07f7aa5f41
1 changed files with 6 additions and 3 deletions

View File

@ -353,11 +353,12 @@ function RewardItemSingleShowPopup:OnShow()
if itemConfigData.RewardGroup then
local reward=ConfigManager.GetConfigData(ConfigName.RewardGroup,itemConfigData.RewardGroup[1])
if reward then
skillId=reward.ShowItem[1][1]
local config=ConfigManager.GetConfigDataByKey(ConfigName.ChangingCard,"CardId",skillId)
local config=ConfigManager.TryGetConfigDataByKey(ConfigName.ChangingCard,"CardId",reward.ShowItem[1][1])
if config then
skillId=config.Id
end
end
end
elseif itemConfigData.ItemType==ItemType.Incarnation then
local config=ConfigManager.GetConfigDataByKey(ConfigName.ChangingCard,"CardId",itemConfigData.Id)
skillId=config.Id
@ -365,6 +366,8 @@ function RewardItemSingleShowPopup:OnShow()
if skillId~=0 then
this.infoBar:SetActive(true)
this.infoBarTxt.text="变身卡技能:"..IncarnationManager.GetSkillDesStr(skillId,5)
else
this.infoBar:SetActive(false)
end
else
this.infoBar:SetActive(false)