[飞升]====卡牌背景修改
parent
73ccdca2aa
commit
7fd7ef19f3
|
@ -750,12 +750,17 @@ function SetHeroBg(spLoader, bg,cardBg,star,quality,layer)
|
|||
SetParticleSortLayer(bg,layer)
|
||||
SetParticleSortLayer(long,layer)
|
||||
else
|
||||
if flyImg then
|
||||
flyImg.gameObject:SetActive(false)
|
||||
end
|
||||
if fly then
|
||||
fly:SetActive(false)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--把英雄星级父对象和星级传过来
|
||||
local star2index = {
|
||||
[1] = {3},
|
||||
|
|
|
@ -61,6 +61,8 @@ function HandBookHeroAndEquipListPanel:InitComponent()
|
|||
mat.material.shader=poolManager:LoadAsset("Add Lv1_1",poolManager.AssetType.Other)
|
||||
elseif mat.material.shader.name=="UI Particles/Additive" then
|
||||
mat.material.shader=poolManager:LoadAsset("UI-Particle-Add_1",poolManager.AssetType.Other)
|
||||
elseif mat.material.shader.name=="YXZ/Effect/Mix Masking(Without Moving)_alphablend" then
|
||||
mat.material.shader=poolManager:LoadAsset("YXZ_MixMaskingWithoutMoving_alphablend_1",poolManager.AssetType.Other)
|
||||
end
|
||||
end
|
||||
local meshs=self.heroprefab:GetComponentsInChildren(typeof(UnityEngine.MeshRenderer))
|
||||
|
@ -239,10 +241,14 @@ function HandBookHeroAndEquipListPanel:GetHeroData()
|
|||
for id, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.HeroConfig)) do
|
||||
if not v.Hide or v.Hide == 0 then
|
||||
|
||||
if v.Natural == 7 and (proId == 0 or v.PropertyName == proId) then
|
||||
table.insert(tenHeroList,v)
|
||||
elseif v.Natural == 6 and (proId == 0 or v.PropertyName == proId) then
|
||||
-- if v.Natural == 7 and (proId == 0 or v.PropertyName == proId) then
|
||||
-- table.insert(tenHeroList,v)
|
||||
-- else
|
||||
if v.Natural == 6 and (proId == 0 or v.PropertyName == proId) then
|
||||
table.insert(sexHeroList,v)
|
||||
if v.MaxRank==14 then
|
||||
table.insert(tenHeroList,v)
|
||||
end
|
||||
elseif v.Natural == 5 and (proId == 0 or v.PropertyName == proId) then
|
||||
table.insert(fiveHeroList,v)
|
||||
elseif v.Natural == 4 and (proId == 0 or v.PropertyName == proId) then
|
||||
|
@ -291,10 +297,14 @@ function HandBookHeroAndEquipListPanel:GetHeroData()
|
|||
table.insert(tempData,v[n])
|
||||
--LogBlue("v[n].id:"..v[n].Id)
|
||||
end
|
||||
local showStar=v[i].MaxRank
|
||||
if k==6 then
|
||||
showStar=11
|
||||
end
|
||||
if i%5 ==0 then
|
||||
table.insert(heroScrolldatas,{type = 1,natural=k, star = v[i].MaxRank,index = math.floor(i/5), content = tempData})
|
||||
table.insert(heroScrolldatas,{type = 1,natural=k, star = showStar,index = math.floor(i/5), content = tempData})
|
||||
else
|
||||
table.insert(heroScrolldatas,{type = 1,natural=k, star = v[i].MaxRank,index = math.floor(i/5) + 1, content = tempData})
|
||||
table.insert(heroScrolldatas,{type = 1,natural=k, star = showStar,index = math.floor(i/5) + 1, content = tempData})
|
||||
end
|
||||
temp = i
|
||||
end
|
||||
|
@ -670,7 +680,9 @@ function HandBookHeroAndEquipListPanel:OnShowSingleHeroData(...)
|
|||
if(param[3]) then
|
||||
natural=param[3]
|
||||
end
|
||||
|
||||
if (param[4]) then
|
||||
star=param[4]
|
||||
end
|
||||
local rankUpConfig=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.HeroRankupConfig,"Type",2,"OpenStar",star)
|
||||
if rankUpConfig then
|
||||
lv=rankUpConfig.OpenLevel
|
||||
|
@ -693,6 +705,7 @@ function HandBookHeroAndEquipListPanel:OnShowSingleHeroData(...)
|
|||
lv=1
|
||||
end
|
||||
end
|
||||
|
||||
heroData.curLv=lv
|
||||
Util.GetGameObject(_go.transform, "card/choosed").gameObject:SetActive(false)
|
||||
Util.GetGameObject(_go.transform, "card/flyImg").gameObject:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue