From 96d0a857c93df6fcbf723208f8e41da10a848a90 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Wed, 15 Nov 2023 16:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E4=BF=A1=E6=81=AF=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Common/functions.lua | 8 ++++---- .../~Lua/Modules/Popup/RoleGetInfoPopup.lua | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Common/functions.lua b/Assets/ManagedResources/~Lua/Common/functions.lua index 95248d82d8..039d1bca34 100644 --- a/Assets/ManagedResources/~Lua/Common/functions.lua +++ b/Assets/ManagedResources/~Lua/Common/functions.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/RoleGetInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/RoleGetInfoPopup.lua index 939c198082..b54bdc0882 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/RoleGetInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/RoleGetInfoPopup.lua @@ -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 ()