diff --git a/Assets/ManagedResources/Prefabs/UI/Power/GiveMePowerPanel.prefab b/Assets/ManagedResources/Prefabs/UI/Power/GiveMePowerPanel.prefab index 4fc7df46e9..bafd739862 100644 --- a/Assets/ManagedResources/Prefabs/UI/Power/GiveMePowerPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Power/GiveMePowerPanel.prefab @@ -5087,8 +5087,8 @@ 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: 350.3} - m_SizeDelta: {x: 984, y: 288.9} + m_AnchoredPosition: {x: 0, y: 343.87} + m_SizeDelta: {x: 984, y: 301.75} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &993909796037655035 CanvasRenderer: @@ -8908,7 +8908,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: -59} + m_AnchoredPosition: {x: 0, y: -48} m_SizeDelta: {x: 920, y: 4} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6810788847370914301 @@ -9252,7 +9252,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: -363, y: 5} + m_AnchoredPosition: {x: -391.6, y: 5} m_SizeDelta: {x: 238.21, y: 57.78} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1155306698190916582 @@ -18150,8 +18150,8 @@ 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: -143, y: 4.6} - m_SizeDelta: {x: 238.21, y: 57.78} + m_AnchoredPosition: {x: -192.81, y: -0.00003624} + m_SizeDelta: {x: 211.69, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5948393373316236050 CanvasRenderer: diff --git a/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua b/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua index 3949fc0bf1..484bf020ec 100644 --- a/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Power/GiveMePowerPanel.lua @@ -475,9 +475,10 @@ function this.ShowRmdPanel(index) local childName = Util.GetGameObject(childBox, "name"):GetComponent("Text") local childContent = Util.GetGameObject(childBox, "content"):GetComponent("Text") title.text = GetLanguageStrById(data.DescFirst) - local strList = string.split(data.DescSecond, "#") - childName.text = Language[12429].."\n  "..GetLanguageStrById(strList[1])--"      "..strList[1] -- 空格用于调整文字的起始位置 - childContent.text = "\n  "..GetLanguageStrById(strList[2]) -- 全角空格可以避免自动换行 + LogError(GetLanguageStrById(data.DescSecond)) + local strList = string.split(GetLanguageStrById(data.DescSecond), "#") + childName.text = Language[12429].."\n  "..strList[1]--"      "..strList[1] -- 空格用于调整文字的起始位置 + childContent.text = "\n  "..strList[2] -- 全角空格可以避免自动换行 LogError("tttttt:"..data.Id) for index, heroId in ipairs(data.ItemId) do local heroData = ConfigManager.GetConfigData(ConfigName.HeroConfig, heroId)