排行榜上小人方向修改

dev_chengFeng
jiaoyangna 2021-10-15 11:51:38 +08:00
parent 851bd2450c
commit f31f62ec09
2 changed files with 8 additions and 4 deletions

View File

@ -299,12 +299,13 @@ function this.SetHeadsInfo(data,root,index,name,level)
ride = data.userMount,
designation = data.userTitle,
}
LogGreen("data.userSkin:"..data.userSkin)
LogGreen("data.userMount:"..data.userMount)
npc = PlayerLiveView:New(this.livePrefab.transform,2, curPlayerLiveViewData,this.sortingOrder,NPCPosType.smallMap)
npc:SetNameHeight(-2.5)
npc:OnOpen(GetPlayerRoleSingleConFig().Scale6,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
npc:SetWalkDir(WALK_DIR.IDLE_FRONT)
if data.userMount and data.userMount > 0 and data.userMount ~= PlayerRide.YUJIAN then
npc:OnOpen(GetPlayerRoleSingleConFig().Scale6,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
else
npc:OnOpen(GetPlayerRoleSingleConFig().Scale6,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_FRONT)
end
Util.AddOnceClick(this.firstheadClick,function()
if sData.rankType == RANK_TYPE.TASUILINGXIAO then
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid,PLAYER_INFO_VIEW_TYPE.TSLX)

View File

@ -94,6 +94,8 @@ function PlayerLiveView:OnOpen(scale,pos,dir)
self:OnShowLive()
if dir then
self:SetWalkDir(dir)
else
self:SetWalkDir(WALK_DIR.IDLE_FRONT)
end
self.selfTagParent:SetActive(false)
-- self.liveParentCanvas.overrideSorting = false
@ -207,6 +209,7 @@ function PlayerLiveView:OnShowLive()
end
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale * effect,self.orginLayer)
end
self:SetWalkDir(WALK_DIR.IDLE_FRONT)
end
function PlayerLiveView:SetNameHeight(hei)
self.nameHeight=hei