From 8c1c84119a47fa62e7d10fabe73a431c144c4abb Mon Sep 17 00:00:00 2001 From: yunviv <307206352+yunviv@users.noreply.github.com> Date: Wed, 22 Jul 2026 18:21:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=84=A6=E7=82=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=BD=97=E7=9B=98=E6=8C=87=E9=92=88=E4=B8=8D?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MY_Focus/src/MY_Focus.UI.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MY_Focus/src/MY_Focus.UI.lua b/MY_Focus/src/MY_Focus.UI.lua index 1cf0da9f3..225eed44f 100644 --- a/MY_Focus/src/MY_Focus.UI.lua +++ b/MY_Focus/src/MY_Focus.UI.lua @@ -56,6 +56,16 @@ function D.AdjustScaleRatio(frame, hList) hInfoList:FormatAllItemPos() -- 字体大小 X.UI(hItem):Find('.Text'):FontScale(frame.fScaleY) + -- 重新居中罗盘指针 + local hCompass = hItem:Lookup('Handle_L/Handle_Compass') + if hCompass then + local hPlayer = hItem:Lookup('Handle_L/Handle_Compass/Image_Player') + if hPlayer then + local cw, ch = hCompass:GetSize() + local pw, ph = hPlayer:GetSize() + hItem:Lookup('Handle_L/Handle_Compass/Image_Player'):SetRelPos((cw - pw) / 2, (ch - ph) / 2) + end + end end local nW, nH = hTotal:Lookup('Image_Title'):GetSize() hTotal:Lookup('Text_Title'):SetRelX(nH * 1.1)