【bug】头像,头像框判断是否要进入版本

dev_chengFeng
gaoxin 2021-03-19 20:24:39 +08:00
parent 61ada763b2
commit 835ebf10c7
1 changed files with 9 additions and 6 deletions

View File

@ -63,12 +63,14 @@ function HeadManager.GetHeadList()
local AllHeadList = ConfigManager.GetAllConfigsDataByKey(ConfigName.ItemConfig, "ItemType", ItemType.Head)
local config = ConfigManager.GetConfigDataByKey(ConfigName.PlayerRole, "Role", NameManager.roleSex)
for _, head in ipairs(AllHeadList) do
if head.Name == Language[11393] then
if config.RolePic == head.Id then
if head.Ifopen == 1 then
if head.Name == Language[11393] then
if config.RolePic == head.Id then
table.insert(this._MyHeadList, head)
end
else
table.insert(this._MyHeadList, head)
end
else
table.insert(this._MyHeadList, head)
end
end
end
@ -80,8 +82,9 @@ function HeadManager.GetHeadFrameList()
if #this._MyHeadFrameList == 0 then
--this._MyHeadFrameList = ConfigManager.GetConfig(ConfigName.PlayerHeadIcon) --ConfigManager.GetAllConfigsDataByDoubleKey(ConfigName.ItemConfig, "ItemType", ItemType.HeadFrame, "Ifopen", 1)
for key, value in ConfigPairs(ConfigManager.GetConfig(ConfigName.PlayerHeadIcon)) do
-- body
table.insert(this._MyHeadFrameList,value)
if value.Type == 2 then
table.insert(this._MyHeadFrameList,value)
end
end
end
return this._MyHeadFrameList