From 56aad6a95905800ea4ba24feffc0a05fc3fe5b5c Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 14 Dec 2021 17:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=91=BD=E6=A0=BC=E3=80=91=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/Prefabs/UI/Bag/BagPanel.prefab | 4 ++-- Assets/ManagedResources/~Lua/Modules/Bag/BagPanel.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/Bag/BagPanel.prefab b/Assets/ManagedResources/Prefabs/UI/Bag/BagPanel.prefab index 116b5947fc..254f569d8a 100644 --- a/Assets/ManagedResources/Prefabs/UI/Bag/BagPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Bag/BagPanel.prefab @@ -480,7 +480,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: -569, y: 82} + m_AnchoredPosition: {x: -500.13126, y: 82} m_SizeDelta: {x: 0, y: 164} m_Pivot: {x: 0, y: 0.5} --- !u!114 &396553229042369324 @@ -9507,7 +9507,7 @@ RectTransform: m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: 0, y: 202} m_SizeDelta: {x: 0, y: 164} - m_Pivot: {x: 0.5, y: 0.5} + m_Pivot: {x: 0, y: 0.5} --- !u!114 &8980420565915447280 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/ManagedResources/~Lua/Modules/Bag/BagPanel.lua b/Assets/ManagedResources/~Lua/Modules/Bag/BagPanel.lua index e74252f8f4..fbab172c19 100644 --- a/Assets/ManagedResources/~Lua/Modules/Bag/BagPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Bag/BagPanel.lua @@ -23,7 +23,7 @@ function BagPanel:InitComponent() this.spLoader = SpriteLoader.New() this.BtnBack = Util.GetGameObject(self.transform, "rightUp/btnBack") - this.box = Util.GetGameObject(self.transform, "Grid/box") + this.tabBox = Util.GetGameObject(self.transform, "Grid/box") for i = 1, 9 do tabs1[i] = Util.GetGameObject(self.transform, "Grid/box/Btn" .. i) tabs1RedPoint[i] = Util.GetGameObject(self.transform, "Grid/box/Btn" .. i .. "/redPoint") @@ -661,7 +661,7 @@ function this.SetBottomBarIsActive() num = num + 1 end end - this.box:GetComponent("RectTransform").pivot = num > 5 and Vector2.New(0.5, 0) or Vector2.New(0.5, 0.5) + this.tabBox:GetComponent("RectTransform").pivot = num > 5 and Vector2.New(0, 0.5) or Vector2.New(0.5, 0.5) end local orginLayer