[bug]========称号显示修改
parent
9a2d9c70a7
commit
ef714577e8
|
@ -1082,7 +1082,7 @@ JumpType = {
|
|||
NPCPosType={
|
||||
maincity=1,
|
||||
onHook = 2,
|
||||
|
||||
smallMap = 3,
|
||||
}
|
||||
|
||||
YaoHunFrame = {
|
||||
|
|
|
@ -163,7 +163,7 @@ function ExpeditionMainPanel:OnOpen()
|
|||
if self.liveNode then
|
||||
self.liveNode:OnClose()
|
||||
end
|
||||
self.liveNode = PlayerLiveView:New(Util.GetTransform(self.parent, "playerLive"),1,nil,self.sortingOrder)
|
||||
self.liveNode = PlayerLiveView:New(Util.GetTransform(self.parent, "playerLive"),1,nil,self.sortingOrder,NPCPosType.smallMap)
|
||||
self.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale10,nil,WALK_DIR.IDLE_FRONT)
|
||||
if ExpeditionManager.ExpeditionState == 3 then
|
||||
ExpeditionManager.SetExpeditionState(1)
|
||||
|
|
|
@ -847,7 +847,7 @@ function this.RefreshLittleMap()
|
|||
if this.liveNode then
|
||||
this.liveNode:OnClose()
|
||||
end
|
||||
this.liveNode = PlayerLiveView:New(this.btnMap.transform,1,nil,orginLayer)
|
||||
this.liveNode = PlayerLiveView:New(this.btnMap.transform,1,nil,orginLayer,NPCPosType.smallMap)
|
||||
this.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale3,Vector3.New(0,-40,0))
|
||||
if FightPointPassManager.GetRoleDirection()==1 then
|
||||
this.liveNode:SetWalkDir(WALK_DIR.RUN_LEFT)
|
||||
|
|
|
@ -39,6 +39,7 @@ function this:Init(_curSmallFightId,_IsPlayAni,_openPanel)
|
|||
end
|
||||
this.liveNode = PlayerLiveView:New(Util.GetGameObject(rootParent, "mapParent/selectMap/Image (1)/roleRoot"),1)
|
||||
this.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale5,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
|
||||
this.liveNode:SetTitleHide()
|
||||
this:LoadMapData()
|
||||
if IsPlayAni then
|
||||
isWalk = true
|
||||
|
|
|
@ -143,7 +143,7 @@ function this.InitRolePre(u, v)
|
|||
this.NpcGO:OnClose()
|
||||
end
|
||||
Util.GetTransform(this.leader, "root/ui/nemeDi").gameObject:SetActive(false)
|
||||
this.NpcGO = PlayerLiveView:New(Util.GetTransform(this.leader, "root/ui/roleRoot"),1)
|
||||
this.NpcGO = PlayerLiveView:New(Util.GetTransform(this.leader, "root/ui/roleRoot"),1,nil,MapPanel.sortingOrder)
|
||||
this.NpcGO:OnOpen(GetPlayerRoleSingleConFig().Scale9,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
|
||||
this.NpcGO:RemoveTitleCanvas()
|
||||
end
|
||||
|
|
|
@ -187,14 +187,16 @@ function PlayerLiveView:OnShowLive()
|
|||
-- curArtResourcesConfig.Scale* self.transform.localScale.x
|
||||
local effect=0
|
||||
if self.posType==NPCPosType.maincity then
|
||||
LogError("=================zhucheng".." "..self.transform.localScale.x)
|
||||
effect=self.transform.localScale.x
|
||||
elseif self.posType==NPCPosType.onHook then
|
||||
effect=50
|
||||
else
|
||||
elseif self.posType==NPCPosType.smallMap then
|
||||
effect=self.leader.transform.localScale.x
|
||||
else
|
||||
--effect=self.leader.transform.localScale.x
|
||||
effect=45
|
||||
end
|
||||
LogError("curArtResourcesConfig.Scale=="..curArtResourcesConfig.Scale.." effect=="..effect)
|
||||
LogError(" effect scale=="..effect)
|
||||
self.titleLive:SetShow(self.PlayerLiveViewData.designation, curLocalPosition, curArtResourcesConfig.Scale, curArtResourcesConfig.Scale * effect,self.orginLayer)
|
||||
end
|
||||
end
|
||||
|
@ -202,6 +204,11 @@ function PlayerLiveView:SetNameHeight(hei)
|
|||
self.nameHeight=hei
|
||||
end
|
||||
|
||||
function PlayerLiveView:SetTitleHide()
|
||||
self.titleLiveGo:SetActive(false)
|
||||
end
|
||||
|
||||
|
||||
function PlayerLiveView:SetWalkDir(dir)
|
||||
-- LogBlue("PlayerLiveView dir : "..dir)
|
||||
if dir == WALK_DIR.IDLE_FRONT then-- 站立_向前
|
||||
|
|
|
@ -53,7 +53,6 @@ function PlayerTitle:SetShow(itemId, position, scale, effectScale, layer)
|
|||
self.curTitleName = curArtResourcesConfig.Name
|
||||
self.titleLive = poolManager:LoadAsset(self.curTitleName, PoolManager.AssetType.GameObject)
|
||||
self.titleLive.transform:SetParent(self.transform)
|
||||
self.titleLive.gameObject:SetActive(false)
|
||||
if effectScale then
|
||||
self:SetEffectScale(effectScale)
|
||||
end
|
||||
|
@ -68,7 +67,6 @@ function PlayerTitle:SetShow(itemId, position, scale, effectScale, layer)
|
|||
if layer then
|
||||
self:SetLayer(layer)
|
||||
end
|
||||
self.titleLive.gameObject:SetActive(true)
|
||||
end
|
||||
|
||||
function PlayerTitle:SetPostion(position)
|
||||
|
@ -87,6 +85,7 @@ end
|
|||
|
||||
function PlayerTitle:SetEffectScale(effectScale)
|
||||
if self.titleLive then
|
||||
self.titleLive.gameObject:SetActive(false)
|
||||
Util.SetParticleScale(self.titleLive, effectScale)
|
||||
local isScaleActive = true
|
||||
-- 处理喜扑老包称号显示异常的问题,喜扑第一个版本的包在底层删除了缩放节点,这里要处理下针对此包不再进行缩放还原
|
||||
|
@ -109,6 +108,7 @@ function PlayerTitle:SetEffectScale(effectScale)
|
|||
self.titleLive.transform.localScale = Vector3.one * (self.scale or 1)
|
||||
end
|
||||
end
|
||||
self.titleLive.gameObject:SetActive(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue