From d7851eb2bac6bcada37201cdda21a8cf23d39726 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <419983115@qq.com> Date: Wed, 23 Apr 2025 18:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=80=BC=E7=A4=BC=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/UI/ValuePack/ValuePackPanel.prefab | 6 +++--- .../~Lua/Modules/ValuePack/ValuePackPanel.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/ValuePack/ValuePackPanel.prefab b/Assets/ManagedResources/Prefabs/UI/ValuePack/ValuePackPanel.prefab index 256864fbd..0456d8dc5 100644 --- a/Assets/ManagedResources/Prefabs/UI/ValuePack/ValuePackPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/ValuePack/ValuePackPanel.prefab @@ -2153,7 +2153,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: -58.5, y: 75} + m_AnchoredPosition: {x: -51.9, y: 75} m_SizeDelta: {x: 83, y: 86} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1218788819354680729 @@ -2182,7 +2182,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 2d3738e8e20045347865bcb9eb095ac6, type: 3} + m_Sprite: {fileID: 21300000, guid: ae22b417b987b6b4f9765d0e48cbafa5, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -2636,7 +2636,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: -57.5, y: 97.9} + m_AnchoredPosition: {x: -72.1, y: 97.9} m_SizeDelta: {x: 106.37, y: 70} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &490195327142356244 diff --git a/Assets/ManagedResources/~Lua/Modules/ValuePack/ValuePackPanel.lua b/Assets/ManagedResources/~Lua/Modules/ValuePack/ValuePackPanel.lua index c734dc0b8..818e1c934 100644 --- a/Assets/ManagedResources/~Lua/Modules/ValuePack/ValuePackPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/ValuePack/ValuePackPanel.lua @@ -122,7 +122,7 @@ function ValuePackPanel.SetItemInfo(go, data, index) redpoint:SetActive(true) else discountBg:SetActive(true) - discount.text = 100-string.format("%.0f",(data.Cost[2][4]/data.Rebate)*100).."%" + discount.text = tostring(math.floor((data.Cost[2][4]/data.Rebate)*10)) redpoint:SetActive(false) end if not this.ItemList[go] then