【修行】印记提交

dev_chengFeng
ZhangBiao 2021-05-29 19:14:24 +08:00
parent 07582f1918
commit 4cfff84328
2 changed files with 9 additions and 5 deletions

View File

@ -331,6 +331,10 @@ 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
if NPCList[i].lv and NPCList[i].lv >= GlobalSysConfig[108].OpenRules[2] then
view.ImprintImg:SetActive(true)
PracticeManager.SetPracticeIcon(view.ImprintImg,NPCList[i].practiceLevel)
end
view:SetAutoMove()
view.leader.transform.name = "MainPlayerView"..i
table.insert(curNPCList,view)

View File

@ -43,11 +43,11 @@ function MainPlayerView.New(isSelf, root, rect, pos,_NpvData,sortingOrder)
Util.GetGameObject(instance.leader, "name/text"):SetActive(false)
Util.GetGameObject(instance.leader, "name/text2"):SetActive(true)
_sex = _NpvData.sex
--如果修行开启设置修行标识
if _NpvData.lv and _NpvData.lv >= GlobalSysConfig[108].OpenRules[2] then
instance.ImprintImg:SetActive(true)
PracticeManager.SetPracticeIcon(instance.ImprintImg,_NpvData.practiceLevel)
end
-- --如果修行开启设置修行标识
-- if _NpvData.lv and _NpvData.lv >= GlobalSysConfig[108].OpenRules[2] then
-- instance.ImprintImg:SetActive(true)
-- PracticeManager.SetPracticeIcon(instance.ImprintImg,_NpvData.practiceLevel)
-- end
if _sex == 0 then zuoqi = 80008 end
local PlayerLiveViewData = {
skin = _NpvData.userSkin,