Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions MY_Focus/src/MY_Focus.UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down