【修行】印记提交

dev_chengFeng
ZhangBiao 2021-05-29 19:32:47 +08:00
parent 749184a59a
commit 1d4842a7d6
3 changed files with 7 additions and 3 deletions

View File

@ -331,8 +331,9 @@ function this:BindEvent()
for i = 1, #NPCList do
local view = MainPlayerView.New(false, this.btnClickMove, rect, Vector2.New(math.random(rect.xMin, rect.xMax), math.random(rect.yMin, rect.yMax)),NPCList[i],this.sortingOrder)
view.NameText.text = NPCList[i].userName or NPCList[i].name
LogYellow("username:"..tostring( NPCList[i].userName).." name:"..tostring(NPCList[i].name).." lv:"..tostring(NPCList[i].lv).." practiceLevel:"..tostring(NPCList[i].practiceLevel))
if NPCList[i].lv and NPCList[i].lv >= GlobalSysConfig[108].OpenRules[2] then
LogYellow("username:"..tostring( NPCList[i].userName).." name:"..tostring(NPCList[i].name).." lv:"..tostring(NPCList[i].lv).." level:"..tostring(NPCList[i].level).." practiceLevel:"..tostring(NPCList[i].practiceLevel))
local _lv = NPCList[i].lv or NPCList[i].level
if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
view.ImprintImg:SetActive(true)
PracticeManager.SetPracticeIcon(view.ImprintImg,NPCList[i].practiceLevel)
end

View File

@ -707,6 +707,7 @@ function this.GetMainPlayerNPCData(fun)
for i = 1, #msg.Friends do
if msg.Friends[i].id ~= PlayerManager.uid then
--LogBlue("msg.Friends[i] "..msg.Friends[i].userSkin.." "..msg.Friends[i].userTitle.." "..msg.Friends[i].userMount.." "..msg.Friends[i].sex)
msg.Friends[i].name = PracticeManager.SetNameColor(msg.Friends[i].name,msg.Friends[i].practiceLevel)
table.insert(curfriendAllList,msg.Friends[i])
end
end
@ -768,6 +769,7 @@ function this.GetPlayerViewDataByType(index,randomList,needNum,func)
for i = 1, #msg.Friends do
if msg.Friends[i].id ~= PlayerManager.uid then
--LogBlue("msg.Friends[i] "..msg.Friends[i].userSkin.." "..msg.Friends[i].userTitle.." "..msg.Friends[i].userMount.." "..msg.Friends[i].sex.." "..msg.Friends[i].userName)
msg.Friends[i].name = PracticeManager.SetNameColor(msg.Friends[i].name,msg.Friends[i].practiceLevel)
table.insert(friendNPCList1,msg.Friends[i])
end
end

View File

@ -183,7 +183,8 @@ function SingleFightPlayerView:SetData(u,v,isSelf,data)
end
self.name.text = data.userName or data.name
self.nameDi.gameObject:SetActive(true)
if data.lv and data.lv >= GlobalSysConfig[108].OpenRules[2] then
local _lv = data.lv or data.level
if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
self.PracticeIcon:SetActive(true)
PracticeManager.SetPracticeIcon(self.PracticeIcon,data.practiceLevel)
end