【森罗幻境】小游戏转盘,灵兽碎片显示整只灵兽
parent
4977de55ba
commit
78c1b12067
File diff suppressed because it is too large
Load Diff
|
@ -38,11 +38,19 @@ function this.Show()
|
|||
red:SetActive(true)
|
||||
|
||||
for index, item in pairs(this.itemsList) do
|
||||
local ItemId = this.TrialGameConfig[this.list[index]].RewardID
|
||||
local reward = Util.GetGameObject(item,"reward"):GetComponent("Image")
|
||||
local Name = this.ArtConfig[this.ItemConfig[this.TrialGameConfig[this.list[index]].RewardID].ResourceID].Name--(Index->奖励id->itemID->资源名字)
|
||||
local Name = this.ArtConfig[this.ItemConfig[ItemId].ResourceID].Name--(Index->奖励id->itemID->资源名字)
|
||||
reward.sprite = Util.LoadSprite(Name)
|
||||
local Num = Util.GetGameObject(item,"Num"):GetComponent("Text")
|
||||
Num.text =this.TrialGameConfig[this.list[index]].Max
|
||||
local piece = Util.GetGameObject(item,"piece"):GetComponent("Image")
|
||||
if this.ItemConfig[ItemId].ItemType == 22 then
|
||||
piece.gameObject:SetActive(true)
|
||||
piece.sprite = Util.LoadSprite(GetHeroChipQuantityImageByquality(this.ItemConfig[ItemId].Quantity))
|
||||
else
|
||||
piece.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
Util.AddOnceClick(this.btnStart,function()
|
||||
|
|
Loading…
Reference in New Issue