diff --git a/Assets/ManagedResources/Prefabs/UI/Battle/BattlePanel.prefab b/Assets/ManagedResources/Prefabs/UI/Battle/BattlePanel.prefab index ca1b8df8dc..1256b7f79a 100644 --- a/Assets/ManagedResources/Prefabs/UI/Battle/BattlePanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Battle/BattlePanel.prefab @@ -81297,7 +81297,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -110.2, y: 166.39995} + m_AnchoredPosition: {x: -86, y: 237.99998} m_SizeDelta: {x: 36, y: 36} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2874419574162345743 @@ -81407,7 +81407,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -111.65, y: 101} + m_AnchoredPosition: {x: -86, y: 172} m_SizeDelta: {x: 60, y: 210} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2874419574504976919 @@ -163915,7 +163915,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -120, y: 0} + m_AnchoredPosition: {x: -78, y: -12} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &5432475356743965503 @@ -179017,7 +179017,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -120, y: 0} + m_AnchoredPosition: {x: -89, y: 121} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &5902261636594369462 @@ -180878,7 +180878,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 469} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &6725380291275006345 diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua index 9776a8d180..d3383c1e46 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua @@ -197,10 +197,14 @@ function PlayerView:onCreate(go, role, position, root) if position<=3 then self.buffRoot:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,389,0) self.lvHpObj:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,469,0) - --self.nameObj: + self.nameParent:GetComponent("RectTransform").anchoredPosition=Vector3.New(-86,172,0) + self.proPar:GetComponent("RectTransform").anchoredPosition=Vector3.New(-86,238,0) else self.buffRoot:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,-80,0) self.lvHpObj:GetComponent("RectTransform").anchoredPosition=Vector3.New(0,0,0) + self.nameParent:GetComponent("RectTransform").anchoredPosition=Vector3.New(-86,-60,0) + self.proPar:GetComponent("RectTransform").anchoredPosition=Vector3.New(-86,6,0) + end self.currAniName="" -- 伤害文字显示