【本地化】魂灵宝处需要修改
parent
8430af12af
commit
51c0b51a87
|
@ -362,6 +362,7 @@ function this.EquipInfo()
|
||||||
--宝器
|
--宝器
|
||||||
for m = 1, 2 do
|
for m = 1, 2 do
|
||||||
Util.GetGameObject(this.babyGrid,"Pre"..m.."/Frame").gameObject:SetActive(false)
|
Util.GetGameObject(this.babyGrid,"Pre"..m.."/Frame").gameObject:SetActive(false)
|
||||||
|
Util.GetGameObject(this.babyGrid,"Pre"..m.."/Text"):GetComponent("RectTransform").sizeDelta = GetCurLanguage() == 0 and Vector2.New(48, 95) or Vector2.New(95, 95)
|
||||||
end
|
end
|
||||||
local b=#curHeroData.jewels>0
|
local b=#curHeroData.jewels>0
|
||||||
this.babyTitle.gameObject:SetActive(b)
|
this.babyTitle.gameObject:SetActive(b)
|
||||||
|
@ -379,7 +380,7 @@ function this.EquipInfo()
|
||||||
local pos= jewelConfig[data.id].Location
|
local pos= jewelConfig[data.id].Location
|
||||||
|
|
||||||
local o=Util.GetGameObject(this.babyGrid,"Pre"..pos)
|
local o=Util.GetGameObject(this.babyGrid,"Pre"..pos)
|
||||||
Util.GetGameObject(o,"Text"):GetComponent("RectTransform").sizeDelta = GetCurLanguage() == 0 and Vector2.New(48, 95) or Vector2.New(95, 95)
|
LogRed("!!!")
|
||||||
local btn=Util.GetGameObject(o,"Frame")
|
local btn=Util.GetGameObject(o,"Frame")
|
||||||
btn.gameObject:SetActive(true)
|
btn.gameObject:SetActive(true)
|
||||||
local frame=Util.GetGameObject(o,"Frame"):GetComponent("Image")
|
local frame=Util.GetGameObject(o,"Frame"):GetComponent("Image")
|
||||||
|
|
Loading…
Reference in New Issue