添加修行等级
parent
d4d1653bc2
commit
b118d30185
|
@ -176,7 +176,7 @@ function this.InitMapUserInfosData(data,mapId)
|
|||
singleUserData.userSkin = data[i].userSkin
|
||||
singleUserData.userTitle = data[i].userTitle
|
||||
singleUserData.userMount = data[i].userMount
|
||||
singleUserData.practiceLevel = data[i].practiceLevel
|
||||
singleUserData.practiceLevel = data[i].precticeLevel or 1
|
||||
singleUserData.lv = data[i].level
|
||||
singleUserData.formationId = i
|
||||
singleUserData.hp = 0
|
||||
|
@ -194,7 +194,7 @@ function this.InitMapUserInfosData(data,mapId)
|
|||
myData.userSkin = PlayerManager.designation
|
||||
myData.userTitle = PlayerManager.skin
|
||||
myData.userMount = PlayerManager.ride
|
||||
myData.practiceLevel = 0
|
||||
myData.practiceLevel = PracticeManager.PracticeLevel or 1
|
||||
myData.lv = PlayerManager.level
|
||||
myData.formationId = 0
|
||||
myData.hp = 0
|
||||
|
|
|
@ -172,11 +172,11 @@ function SingleExplorePlayerView:SetData(u,v,data)
|
|||
self.playerLiveView = PlayerLiveView:New(self.roleRoot,1,nil,sortingorder)
|
||||
self.playerLiveView:RemoveTitleCanvas()
|
||||
self.nameDi.gameObject:SetActive(false)
|
||||
-- --如果修行开启设置修行标识
|
||||
-- if ActTimeCtrlManager.SingleFuncState(108) then
|
||||
-- self.PracticeIcon:SetActive(true)
|
||||
-- PracticeManager.SetPracticeIcon(self.PracticeIcon,PracticeManager.PracticeLevel or 1)
|
||||
-- end
|
||||
--如果修行开启设置修行标识
|
||||
if ActTimeCtrlManager.SingleFuncState(108) then
|
||||
self.PracticeIcon:SetActive(true)
|
||||
PracticeManager.SetPracticeIcon(self.PracticeIcon,PracticeManager.PracticeLevel or 1)
|
||||
end
|
||||
else
|
||||
npc = data.sex == ROLE_SEX.BOY and npc1 or npc2
|
||||
scale = data.sex == ROLE_SEX.BOY and 1 or 0.5
|
||||
|
@ -196,11 +196,11 @@ function SingleExplorePlayerView:SetData(u,v,data)
|
|||
end
|
||||
self.name.text = data.userName or data.name
|
||||
self.nameDi.gameObject:SetActive(true)
|
||||
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)
|
||||
-- end
|
||||
local _lv = data.lv
|
||||
if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
|
||||
self.PracticeIcon:SetActive(true)
|
||||
PracticeManager.SetPracticeIcon(self.PracticeIcon,data.practiceLevel)
|
||||
end
|
||||
end
|
||||
|
||||
self.playerLiveView:OnOpen(GetPlayerRoleSingleConFig().Scale2)
|
||||
|
|
Loading…
Reference in New Issue