英雄信息展示界面修改

wangzhenxing 2023-11-15 16:42:13 +08:00
parent 0a5530667b
commit 96d0a857c9
2 changed files with 9 additions and 7 deletions

View File

@ -1505,13 +1505,13 @@ end
--根据角色定位Id 获取角色定位图
function GetHeroPosStr(_i)
if _i==1 then
return "r_hero_roudunbiao"
return "UI_hz_zhonghe02_25_1"
elseif _i==2 then
return "r_hero_shuchubiao"
return "UI_hz_zhonghe02_25"
elseif _i==3 then
return "r_hero_konghzibiao"
return "UI_hz_zhonghe02_25_3"
elseif _i==4 then
return "r_hero_fuzhubiao"
return "UI_hz_zhonghe02_25_2"
end
end

View File

@ -262,10 +262,12 @@ function RoleGetInfoPopup:OnShow()
end)
end
function this.ShowHeroLive(_heroSConfigData)
this.testLiveGO = poolManager:LoadLive(GetResourcePath(_heroSConfigData.Live), this.liveRoot.transform,
Vector3.one * _heroSConfigData.Scale*0.7, Vector3.New(_heroSConfigData.PositionView[1], _heroSConfigData.PositionView[2], 0))
this.testLiveGO = poolManager:LoadLive(GetResourcePath(_heroSConfigData.Painting), this.liveRoot.transform,
Vector3.one * _heroSConfigData.Scale*0.7, Vector3.New(_heroSConfigData.Position[1], _heroSConfigData.Position[2], 0))
local SkeletonGraphic = this.testLiveGO:GetComponent("SkeletonGraphic")
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward,_heroSConfigData.PositionView)
local position=_heroSConfigData.Position
position[2]=position[2]-250
SetHEeroLiveToward(this.testLiveGO,_heroSConfigData.Toward,position)
local idle = function() SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true) end
SkeletonGraphic.AnimationState.Complete = SkeletonGraphic.AnimationState.Complete + idle
poolManager:SetLiveClearCall(GetResourcePath(_heroSConfigData.Live), this.testLiveGO, function ()