[称号]====挂机界面特效显示修改,称号位置修改

dev_chengFeng
wangzhenxing 2021-06-03 15:52:12 +08:00
parent 154cab45a2
commit 9c3f1cb5eb
5 changed files with 9 additions and 5 deletions

View File

@ -4815,7 +4815,7 @@ Camera:
m_Depth: 0 m_Depth: 0
m_CullingMask: m_CullingMask:
serializedVersion: 2 serializedVersion: 2
m_Bits: 1 m_Bits: 33
m_RenderingPath: -1 m_RenderingPath: -1
m_TargetTexture: {fileID: 0} m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0 m_TargetDisplay: 0

View File

@ -1044,7 +1044,7 @@ JumpType = {
NPCPosType={ NPCPosType={
maincity=1, maincity=1,
onHook = 2,
} }

View File

@ -835,7 +835,7 @@ function this.RefreshLittleMap()
if this.liveNode then if this.liveNode then
this.liveNode:OnClose() this.liveNode:OnClose()
end end
this.liveNode = PlayerLiveView:New(this.btnMap.transform,1,nil,1) this.liveNode = PlayerLiveView:New(this.btnMap.transform,1,nil,orginLayer)
this.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale3,Vector3.New(0,-40,0)) this.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale3,Vector3.New(0,-40,0))
if FightPointPassManager.GetRoleDirection()==1 then if FightPointPassManager.GetRoleDirection()==1 then
this.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT) this.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT)

View File

@ -166,6 +166,7 @@ function PlayerLiveView:OnShowLive()
local curLocalScale = Vector3.New(curArtResourcesConfig.Scale,curArtResourcesConfig.Scale,curArtResourcesConfig.Scale) local curLocalScale = Vector3.New(curArtResourcesConfig.Scale,curArtResourcesConfig.Scale,curArtResourcesConfig.Scale)
local y=curArtResourcesConfig.Position[2]+curPlayerRole.Height local y=curArtResourcesConfig.Position[2]+curPlayerRole.Height
if isRide then if isRide then
LogError("name height=="..self.nameHeight)
y=y+3+self.nameHeight y=y+3+self.nameHeight
end end
local curLocalPosition = Vector3.New(curArtResourcesConfig.Position[1],y,0) local curLocalPosition = Vector3.New(curArtResourcesConfig.Position[1],y,0)
@ -174,6 +175,8 @@ function PlayerLiveView:OnShowLive()
local effect=0 local effect=0
if self.posType==NPCPosType.maincity then if self.posType==NPCPosType.maincity then
effect=self.transform.localScale.x effect=self.transform.localScale.x
elseif self.posType==NPCPosType.onHook then
effect=50
else else
effect=self.leader.transform.localScale.x effect=self.leader.transform.localScale.x
end end

View File

@ -159,7 +159,7 @@ function SingleFightPlayerView:SetData(u,v,isSelf,data)
npc = NameManager.roleSex == ROLE_SEX.BOY and npc1 or npc2 npc = NameManager.roleSex == ROLE_SEX.BOY and npc1 or npc2
scale = NameManager.roleSex == ROLE_SEX.BOY and 1 or 0.5 scale = NameManager.roleSex == ROLE_SEX.BOY and 1 or 0.5
self.userId = PlayerManager.uid self.userId = PlayerManager.uid
self.playerLiveView = PlayerLiveView:New(self.roleRoot,1,nil) self.playerLiveView = PlayerLiveView:New(self.roleRoot,1,nil,sortingorder,NPCPosType.onHook)
self.playerLiveView:RemoveTitleCanvas() self.playerLiveView:RemoveTitleCanvas()
self.nameDi.gameObject:SetActive(false) self.nameDi.gameObject:SetActive(false)
--如果修行开启设置修行标识 --如果修行开启设置修行标识
@ -176,7 +176,8 @@ function SingleFightPlayerView:SetData(u,v,isSelf,data)
sex = data.sex, sex = data.sex,
ride = data.userMount, ride = data.userMount,
designation = data.userTitle, designation = data.userTitle,
}) },sortingorder,NPCPosType.onHook)
self.playerLiveView:SetNameHeight(1.5)
self.playerLiveView:RemoveTitleCanvas() self.playerLiveView:RemoveTitleCanvas()
if data.userMount == 0 then if data.userMount == 0 then
self.nameDi.transform.localPosition = namePos[1].pos self.nameDi.transform.localPosition = namePos[1].pos