挑战副本奖励显示修改

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)
local showReward={}
ConnectTable(showReward,data.FixedReward)
ConnectTable(showReward,data.PassReward)
if type~=2 then
ConnectTable(showReward,data.VictoryReward)
end
-- ConnectTable(showReward,data.PassReward)
-- if type~=2 then
-- ConnectTable(showReward,data.VictoryReward)
-- end
ResetItemView(root,rewardGrid.transform,itemList,3,0.9,orginLayer,false,showReward)
for i = 0, 2 do
local item=rewardGrid.transform:GetChild(i)
local image = Util.GetGameObject(item,"PreciousShow")
image.gameObject:SetActive(true)
Util.GetGameObject(image, "Text").gameObject:SetActive(false)
if i==0 then
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_baodijiaobiao_zh")
elseif i==1 then
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_jindujiaobiao_zh")
else
image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_shoucijiaobiao_zh")
end
-- local image = Util.GetGameObject(item,"PreciousShow")
-- image.gameObject:SetActive(true)
-- Util.GetGameObject(image, "Text").gameObject:SetActive(false)
-- if i==0 then
-- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_baodijiaobiao_zh")
-- elseif i==1 then
-- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_jindujiaobiao_zh")
-- else
-- image:GetComponent("Image").sprite = this.spLoader:LoadSprite("x_xianyuan_shoucijiaobiao_zh")
-- end
end