聊天页面-通讯录-头像
This commit is contained in:
parent
ac60fc0d0a
commit
e118c2746e
@ -1011,7 +1011,7 @@ function UIChatView:RefreshMeTab()
|
|||||||
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
||||||
if storyNpcCfg and storyNpcCfg.Type == 1 then
|
if storyNpcCfg and storyNpcCfg.Type == 1 then
|
||||||
wiftNum = wiftNum + 1
|
wiftNum = wiftNum + 1
|
||||||
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId})
|
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
table.insert(contactDatas, 1, {type = 2, name = I18N.T("妻子"), num = wiftNum})
|
table.insert(contactDatas, 1, {type = 2, name = I18N.T("妻子"), num = wiftNum})
|
||||||
@ -1025,7 +1025,7 @@ function UIChatView:RefreshMeTab()
|
|||||||
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
||||||
if storyNpcCfg and storyNpcCfg.Type == 2 then
|
if storyNpcCfg and storyNpcCfg.Type == 2 then
|
||||||
loverNum = loverNum + 1
|
loverNum = loverNum + 1
|
||||||
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId})
|
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
loverGroup.num = loverNum
|
loverGroup.num = loverNum
|
||||||
@ -1039,7 +1039,7 @@ function UIChatView:RefreshMeTab()
|
|||||||
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
local storyNpcCfg = ManagerContainer.CfgMgr:GetStoryNpcCfgByChatNpcId(tonumber(npcId))
|
||||||
if storyNpcCfg and storyNpcCfg.Type == 3 then
|
if storyNpcCfg and storyNpcCfg.Type == 3 then
|
||||||
paNum = paNum + 1
|
paNum = paNum + 1
|
||||||
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId})
|
table.insert(contactDatas, {type = 1, name = I18N.T(storyNpcCfg.NameKey), heart = heart, storyNpcId=npcId, head=storyNpcCfg.Head})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
paGroup.num = paNum
|
paGroup.num = paNum
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user