添加修行等级

dev_chengFeng
jiaoyangna 2021-12-30 14:38:06 +08:00
parent d4d1653bc2
commit b118d30185
2 changed files with 12 additions and 12 deletions

View File

@ -176,7 +176,7 @@ function this.InitMapUserInfosData(data,mapId)
singleUserData.userSkin = data[i].userSkin singleUserData.userSkin = data[i].userSkin
singleUserData.userTitle = data[i].userTitle singleUserData.userTitle = data[i].userTitle
singleUserData.userMount = data[i].userMount singleUserData.userMount = data[i].userMount
singleUserData.practiceLevel = data[i].practiceLevel singleUserData.practiceLevel = data[i].precticeLevel or 1
singleUserData.lv = data[i].level singleUserData.lv = data[i].level
singleUserData.formationId = i singleUserData.formationId = i
singleUserData.hp = 0 singleUserData.hp = 0
@ -194,7 +194,7 @@ function this.InitMapUserInfosData(data,mapId)
myData.userSkin = PlayerManager.designation myData.userSkin = PlayerManager.designation
myData.userTitle = PlayerManager.skin myData.userTitle = PlayerManager.skin
myData.userMount = PlayerManager.ride myData.userMount = PlayerManager.ride
myData.practiceLevel = 0 myData.practiceLevel = PracticeManager.PracticeLevel or 1
myData.lv = PlayerManager.level myData.lv = PlayerManager.level
myData.formationId = 0 myData.formationId = 0
myData.hp = 0 myData.hp = 0

View File

@ -172,11 +172,11 @@ function SingleExplorePlayerView:SetData(u,v,data)
self.playerLiveView = PlayerLiveView:New(self.roleRoot,1,nil,sortingorder) self.playerLiveView = PlayerLiveView:New(self.roleRoot,1,nil,sortingorder)
self.playerLiveView:RemoveTitleCanvas() self.playerLiveView:RemoveTitleCanvas()
self.nameDi.gameObject:SetActive(false) self.nameDi.gameObject:SetActive(false)
-- --如果修行开启设置修行标识 --如果修行开启设置修行标识
-- if ActTimeCtrlManager.SingleFuncState(108) then if ActTimeCtrlManager.SingleFuncState(108) then
-- self.PracticeIcon:SetActive(true) self.PracticeIcon:SetActive(true)
-- PracticeManager.SetPracticeIcon(self.PracticeIcon,PracticeManager.PracticeLevel or 1) PracticeManager.SetPracticeIcon(self.PracticeIcon,PracticeManager.PracticeLevel or 1)
-- end end
else else
npc = data.sex == ROLE_SEX.BOY and npc1 or npc2 npc = data.sex == ROLE_SEX.BOY and npc1 or npc2
scale = data.sex == ROLE_SEX.BOY and 1 or 0.5 scale = data.sex == ROLE_SEX.BOY and 1 or 0.5
@ -196,11 +196,11 @@ function SingleExplorePlayerView:SetData(u,v,data)
end end
self.name.text = data.userName or data.name self.name.text = data.userName or data.name
self.nameDi.gameObject:SetActive(true) self.nameDi.gameObject:SetActive(true)
local _lv = data.lv or data.level or data.userLevel local _lv = data.lv
-- if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then if _lv and _lv >= GlobalSysConfig[108].OpenRules[2] then
-- self.PracticeIcon:SetActive(true) self.PracticeIcon:SetActive(true)
-- PracticeManager.SetPracticeIcon(self.PracticeIcon,data.practiceLevel) PracticeManager.SetPracticeIcon(self.PracticeIcon,data.practiceLevel)
-- end end
end end
self.playerLiveView:OnOpen(GetPlayerRoleSingleConFig().Scale2) self.playerLiveView:OnOpen(GetPlayerRoleSingleConFig().Scale2)