排行榜上小人方向修改
parent
851bd2450c
commit
f31f62ec09
|
@ -299,12 +299,13 @@ function this.SetHeadsInfo(data,root,index,name,level)
|
||||||
ride = data.userMount,
|
ride = data.userMount,
|
||||||
designation = data.userTitle,
|
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 = PlayerLiveView:New(this.livePrefab.transform,2, curPlayerLiveViewData,this.sortingOrder,NPCPosType.smallMap)
|
||||||
npc:SetNameHeight(-2.5)
|
npc:SetNameHeight(-2.5)
|
||||||
npc:OnOpen(GetPlayerRoleSingleConFig().Scale6,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
|
if data.userMount and data.userMount > 0 and data.userMount ~= PlayerRide.YUJIAN then
|
||||||
npc:SetWalkDir(WALK_DIR.IDLE_FRONT)
|
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()
|
Util.AddOnceClick(this.firstheadClick,function()
|
||||||
if sData.rankType == RANK_TYPE.TASUILINGXIAO then
|
if sData.rankType == RANK_TYPE.TASUILINGXIAO then
|
||||||
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid,PLAYER_INFO_VIEW_TYPE.TSLX)
|
UIManager.OpenPanel(UIName.PlayerInfoPopup, data.uid,PLAYER_INFO_VIEW_TYPE.TSLX)
|
||||||
|
|
|
@ -94,6 +94,8 @@ function PlayerLiveView:OnOpen(scale,pos,dir)
|
||||||
self:OnShowLive()
|
self:OnShowLive()
|
||||||
if dir then
|
if dir then
|
||||||
self:SetWalkDir(dir)
|
self:SetWalkDir(dir)
|
||||||
|
else
|
||||||
|
self:SetWalkDir(WALK_DIR.IDLE_FRONT)
|
||||||
end
|
end
|
||||||
self.selfTagParent:SetActive(false)
|
self.selfTagParent:SetActive(false)
|
||||||
-- self.liveParentCanvas.overrideSorting = false
|
-- self.liveParentCanvas.overrideSorting = false
|
||||||
|
@ -207,6 +209,7 @@ function PlayerLiveView:OnShowLive()
|
||||||
end
|
end
|
||||||
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale * effect,self.orginLayer)
|
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale * effect,self.orginLayer)
|
||||||
end
|
end
|
||||||
|
self:SetWalkDir(WALK_DIR.IDLE_FRONT)
|
||||||
end
|
end
|
||||||
function PlayerLiveView:SetNameHeight(hei)
|
function PlayerLiveView:SetNameHeight(hei)
|
||||||
self.nameHeight=hei
|
self.nameHeight=hei
|
||||||
|
|
Loading…
Reference in New Issue