主城主角名字 称号位置修改
parent
12380d2ffc
commit
5fcd2ada66
|
@ -32,9 +32,9 @@ function MainPlayerView.New(isSelf, root, rect, pos,_NpvData,sortingOrder)
|
|||
instance.NpcGO = PlayerLiveView:New(instance.roleRootTran,1, nil,sortingOrder,NPCPosType.maincity)
|
||||
|
||||
if PlayerManager.GetPlayerRide() > 0 then
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,230,0)
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,240,0)
|
||||
else
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,200,0)
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,210,0)
|
||||
end
|
||||
--如果修行开启设置修行标识
|
||||
if ActTimeCtrlManager.SingleFuncState(108) then
|
||||
|
@ -55,14 +55,14 @@ function MainPlayerView.New(isSelf, root, rect, pos,_NpvData,sortingOrder)
|
|||
designation = _NpvData.userTitle
|
||||
}
|
||||
if _NpvData.userMount > 0 then
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,230,0)
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,240,0)
|
||||
else
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,200,0)
|
||||
Util.GetGameObject(instance.leader, "name").transform.localPosition = Vector3.New(0,210,0)
|
||||
end
|
||||
instance.NpcGO = PlayerLiveView:New(instance.roleRootTran,2, PlayerLiveViewData,sortingOrder,NPCPosType.maincity)
|
||||
end
|
||||
-- instance.NpcGO = PlayerLiveView:New(instance.roleRootTran,1, nil)
|
||||
--instance.NpcGO:SetNameHeight(10)
|
||||
--instance.NpcGO:SetNameHeight(200)
|
||||
instance.NpcGO:OnOpen()
|
||||
instance.NpcGO:OnSortingOrderChange(sortingOrder)
|
||||
if isSelf then
|
||||
|
|
|
@ -191,7 +191,7 @@ function PlayerLiveView:OnShowLive(isMap)
|
|||
local curPlayerRole = ConfigManager.GetConfigData(ConfigName.PlayerRole,self.PlayerLiveViewData.designation)
|
||||
local curArtResourcesConfig = ConfigManager.GetConfigData(ConfigName.ArtResourcesConfig,curPlayerRole.LiveAnimName)
|
||||
local curLocalScale = Vector3.New(curArtResourcesConfig.Scale,curArtResourcesConfig.Scale,curArtResourcesConfig.Scale)
|
||||
local y=curPlayerRole.Height
|
||||
local y=curPlayerRole.Height+2
|
||||
if curArtResourcesConfig.Position[2] then
|
||||
y=y+curArtResourcesConfig.Position[2]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue