【图鉴】根据表配置控制显示隐藏

dev_chengFeng
gaoxin 2021-03-16 18:06:57 +08:00
parent 3fe1267e86
commit c8c81215ce
1 changed files with 20 additions and 18 deletions

View File

@ -209,6 +209,7 @@ function HandBookHeroAndEquipListPanel:GetHeroData()
local twoHeroList = {}
local oneHeroList = {}
for id, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.HeroConfig)) do
if not v.Hide or v.Hide == 0 then
--5星最高星级是10的要在十星里面显示出来
if v.Star == 5 and v.MaxRank >= 10 and (proId == 0 or v.PropertyName == proId) then
table.insert(tenHeroList,v)
@ -230,6 +231,7 @@ function HandBookHeroAndEquipListPanel:GetHeroData()
table.insert(oneHeroList,v)
end
end
end
self:SortHeroNatural(elevenHeroList)
self:SortHeroNatural(tenHeroList)
self:SortHeroNatural(sexHeroList)