From b118d30185fc6918bb1836b44d377bc0a0c707ef Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Thu, 30 Dec 2021 14:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E8=A1=8C=E7=AD=89?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Explore/ExploreManager.lua | 4 ++-- .../~Lua/View/SingleExplorePlayerView.lua | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Explore/ExploreManager.lua b/Assets/ManagedResources/~Lua/Modules/Explore/ExploreManager.lua index 69d363e033..cc456c6a21 100644 --- a/Assets/ManagedResources/~Lua/Modules/Explore/ExploreManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Explore/ExploreManager.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua b/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua index 774bd3f26c..0cad691846 100644 --- a/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua +++ b/Assets/ManagedResources/~Lua/View/SingleExplorePlayerView.lua @@ -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)