挑战副本奖励显示修改

dev_chengFeng
yuanshuai 2022-12-02 11:47:07 +08:00
parent 848a5ed792
commit 8023aa69f0
1 changed files with 14 additions and 14 deletions

View File

@ -196,23 +196,23 @@ function this.SetData(root, data)
type=CarbonManager.CheckChallengeCopyId(data.Chapter,data.NextLevel) type=CarbonManager.CheckChallengeCopyId(data.Chapter,data.NextLevel)
local showReward={} local showReward={}
ConnectTable(showReward,data.FixedReward) ConnectTable(showReward,data.FixedReward)
ConnectTable(showReward,data.PassReward) -- ConnectTable(showReward,data.PassReward)
if type~=2 then -- if type~=2 then
ConnectTable(showReward,data.VictoryReward) -- ConnectTable(showReward,data.VictoryReward)
end -- end
ResetItemView(root,rewardGrid.transform,itemList,3,0.9,orginLayer,false,showReward) ResetItemView(root,rewardGrid.transform,itemList,3,0.9,orginLayer,false,showReward)
for i = 0, 2 do for i = 0, 2 do
local item=rewardGrid.transform:GetChild(i) local item=rewardGrid.transform:GetChild(i)
local image = Util.GetGameObject(item,"PreciousShow") -- local image = Util.GetGameObject(item,"PreciousShow")
image.gameObject:SetActive(true) -- image.gameObject:SetActive(true)
Util.GetGameObject(image, "Text").gameObject:SetActive(false) -- Util.GetGameObject(image, "Text").gameObject:SetActive(false)
if i==0 then -- if i==0 then
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_baodijiaobiao_zh") -- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_baodijiaobiao_zh")
elseif i==1 then -- elseif i==1 then
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_jindujiaobiao_zh") -- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_jindujiaobiao_zh")
else -- else
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_shoucijiaobiao_zh") -- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_shoucijiaobiao_zh")
end -- end
end end