parent
1e4a7a57be
commit
7f5a36cf4b
|
@ -102,7 +102,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
|||
local TimerText = Util.GetGameObject(go.transform,"Box/Empty/frame/Text"):GetComponent("Text")
|
||||
local AddImage = Util.GetGameObject(go.transform,"Box/Empty/frame/AddImage")
|
||||
local redPoint = Util.GetGameObject(go.transform,"Box/Empty/redPoint")
|
||||
|
||||
local heroObj = Util.GetGameObject(go.transform,"GameObject")
|
||||
Util.GetGameObject(go.transform, "GameObject/proIcon"):GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_huo 1_zh")
|
||||
ItemList[go] ={}
|
||||
ItemList[go].index = index
|
||||
|
@ -110,6 +110,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
|||
ItemList[go].Empty = Empty
|
||||
ItemList[go].AddImage = AddImage
|
||||
|
||||
heroObj:SetActive(false)
|
||||
Empty:SetActive(true)
|
||||
mask:SetActive(true)
|
||||
lock:SetActive(true)
|
||||
|
@ -121,6 +122,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
|||
if gridData.gridId <= Box then
|
||||
if gridData.heroId ~= "" then
|
||||
Empty:SetActive(false)
|
||||
heroObj:SetActive(true)
|
||||
local data = HeroManager.GetSingleHeroData(gridData.heroId)
|
||||
if data then
|
||||
this.SingleItemDataShow(go, data)
|
||||
|
@ -135,6 +137,7 @@ function this.SingleBoxDataShow(go,boxData,index)
|
|||
AddImage:SetActive(false)
|
||||
end
|
||||
Empty:SetActive(true)
|
||||
heroObj:SetActive(false)
|
||||
mask:SetActive(false)
|
||||
lock:SetActive(false)
|
||||
redPoint:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue