[称号]=====称号高度设置
parent
5e846c29f6
commit
200e48ed73
|
@ -289,9 +289,6 @@ function this.RefreshShow(isForceBottom)
|
|||
for key, value in pairs(meshs:ToTable()) do
|
||||
-- value.material.shader=Shader.Find("Custom/S_03_UV_alpha_add_1")
|
||||
--value.material= resMgr:LoadAsset("chenghao_mat2")
|
||||
if value.material.shader=="" then
|
||||
-- body
|
||||
end
|
||||
value.material.shader=this.shader2
|
||||
end
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ function this:ShowUpItem(config,actId)
|
|||
end
|
||||
end
|
||||
hero:OnOpen(false,{config.Id,1},1.1,true)
|
||||
hero.name:GetComponent("Text").text="<color=#EDB64C>"..string.format("%.2f", 5 ).."%</color>"
|
||||
hero.name:GetComponent("Text").text="<color=#EDB64C>"..string.format("%.2f", 1 ).."%</color>"
|
||||
hero.gameObject:SetActive(true)
|
||||
|
||||
for k,v in ipairs(this.ratePreList) do
|
||||
|
@ -134,7 +134,7 @@ function this:ShowUpItem(config,actId)
|
|||
-- return a.GetRate>b.GetRate
|
||||
-- end)
|
||||
local rateList={}
|
||||
local hero={tag="5星神将UP",name=config.ReadingName,value=0.05,Color=1}
|
||||
local hero={tag="5星神将UP",name=config.ReadingName,value=0.01,Color=1}
|
||||
for key, value in ConfigPairs(pool) do
|
||||
local id=value.ItemId[1]
|
||||
local itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig,id)
|
||||
|
|
|
@ -61,7 +61,7 @@ function MainPlayerView.New(isSelf, root, rect, pos,_NpvData,sortingOrder)
|
|||
instance.NpcGO = PlayerLiveView:New(instance.roleRootTran,2, PlayerLiveViewData,sortingOrder)
|
||||
end
|
||||
-- instance.NpcGO = PlayerLiveView:New(instance.roleRootTran,1, nil)
|
||||
instance.NpcGO:SetNameHeight(3)
|
||||
--instance.NpcGO:SetNameHeight(3)
|
||||
instance.NpcGO:OnOpen()
|
||||
instance.NameText.text = PlayerManager.nickName
|
||||
instance.rect = rect
|
||||
|
|
|
@ -283,6 +283,7 @@ function this.SetHeadsInfo(data,root,index,name,level)
|
|||
designation = data.userTitle,
|
||||
}
|
||||
npc = PlayerLiveView:New(this.livePrefab.transform,2, curPlayerLiveViewData,this.sortingOrder)
|
||||
npc:SetNameHeight(-2.5)
|
||||
npc:OnOpen(GetPlayerRoleSingleConFig().Scale6,Vector3.New(0,-118.65,0),WALK_DIR.IDLE_LEFT)
|
||||
|
||||
Util.AddOnceClick(this.firstheadClick,function()
|
||||
|
|
|
@ -58,7 +58,6 @@ function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posT
|
|||
instance.oldPlayerDiry = nil
|
||||
instance.oldRideDirAnimation = nil
|
||||
instance.oldRideDiry = nil
|
||||
nameHeight=0
|
||||
setmetatable(instance, { __index = PlayerLiveView })
|
||||
return instance
|
||||
end
|
||||
|
@ -167,7 +166,7 @@ function PlayerLiveView:OnShowLive()
|
|||
local curLocalScale = Vector3.New(curArtResourcesConfig.Scale,curArtResourcesConfig.Scale,curArtResourcesConfig.Scale)
|
||||
local y=curArtResourcesConfig.Position[2]+curPlayerRole.Height
|
||||
if isRide then
|
||||
y=y+3
|
||||
y=y+3+self.nameHeight
|
||||
end
|
||||
local curLocalPosition = Vector3.New(curArtResourcesConfig.Position[1],y,0)
|
||||
LogError("scale=="..curArtResourcesConfig.Scale.." transform scale=="..self.leader.transform.localScale.x)
|
||||
|
|
Loading…
Reference in New Issue