【修行】印记提交
parent
07582f1918
commit
4cfff84328
|
@ -331,6 +331,10 @@ function this:BindEvent()
|
||||||
for i = 1, #NPCList do
|
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)
|
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
|
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:SetAutoMove()
|
||||||
view.leader.transform.name = "MainPlayerView"..i
|
view.leader.transform.name = "MainPlayerView"..i
|
||||||
table.insert(curNPCList,view)
|
table.insert(curNPCList,view)
|
||||||
|
|
|
@ -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/text"):SetActive(false)
|
||||||
Util.GetGameObject(instance.leader, "name/text2"):SetActive(true)
|
Util.GetGameObject(instance.leader, "name/text2"):SetActive(true)
|
||||||
_sex = _NpvData.sex
|
_sex = _NpvData.sex
|
||||||
--如果修行开启设置修行标识
|
-- --如果修行开启设置修行标识
|
||||||
if _NpvData.lv and _NpvData.lv >= GlobalSysConfig[108].OpenRules[2] then
|
-- if _NpvData.lv and _NpvData.lv >= GlobalSysConfig[108].OpenRules[2] then
|
||||||
instance.ImprintImg:SetActive(true)
|
-- instance.ImprintImg:SetActive(true)
|
||||||
PracticeManager.SetPracticeIcon(instance.ImprintImg,_NpvData.practiceLevel)
|
-- PracticeManager.SetPracticeIcon(instance.ImprintImg,_NpvData.practiceLevel)
|
||||||
end
|
-- end
|
||||||
if _sex == 0 then zuoqi = 80008 end
|
if _sex == 0 then zuoqi = 80008 end
|
||||||
local PlayerLiveViewData = {
|
local PlayerLiveViewData = {
|
||||||
skin = _NpvData.userSkin,
|
skin = _NpvData.userSkin,
|
||||||
|
|
Loading…
Reference in New Issue