【修行】印记提交2
parent
62d78738ec
commit
717b0039cb
|
@ -332,7 +332,7 @@ function this:BindEvent()
|
|||
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).." level:"..tostring(NPCList[i].level).." practiceLevel:"..tostring(NPCList[i].practiceLevel))
|
||||
local _lv = NPCList[i].lv or NPCList[i].level
|
||||
local _lv = NPCList[i].lv or NPCList[i].level or NPCList[i].userLevel
|
||||
if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
|
||||
view.ImprintImg:SetActive(true)
|
||||
PracticeManager.SetPracticeIcon(view.ImprintImg,NPCList[i].practiceLevel)
|
||||
|
|
|
@ -183,7 +183,7 @@ function SingleFightPlayerView:SetData(u,v,isSelf,data)
|
|||
end
|
||||
self.name.text = data.userName or data.name
|
||||
self.nameDi.gameObject:SetActive(true)
|
||||
local _lv = data.lv or data.level
|
||||
local _lv = data.lv or data.level or data.userLevel
|
||||
if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
|
||||
self.PracticeIcon:SetActive(true)
|
||||
PracticeManager.SetPracticeIcon(self.PracticeIcon,data.practiceLevel)
|
||||
|
|
Loading…
Reference in New Issue