(Invert BuffFrame growth direction - Left to Right)
Buff
-- 버프 역순정렬/위치이동
hooksecurefunc("BuffFrame_UpdateAllBuffAnchors", function()
for i = 1, BUFF_ACTUAL_DISPLAY do
_G["BuffButton"..i]:SetScale(1)
_G["BuffButton"..i]:ClearAllPoints()
if i > 1 and mod(i, BUFFS_PER_ROW) == 1 then
_G["BuffButton"..i]:SetPoint("TOP", _G["BuffButton"..(i-BUFFS_PER_ROW)], "BOTTOM", 0, -BUFF_ROW_SPACING)
elseif i == 1 then
_G["BuffButton"..i]:SetPoint("TOPLEFT", UIParent, 40, -125)
else
_G["BuffButton"..i]:SetPoint("TOPLEFT", _G["BuffButton"..i-1], 35, 0)
end
end
end)
Debuff
-- 디버프 역순정렬/위치이동
hooksecurefunc("DebuffButton_UpdateAnchors", function (buttonName, index)
local buff = _G[buttonName..index]
local numBuffRows = math.floor(BUFF_ACTUAL_DISPLAY/9) + 1
buff:SetScale(1)
buff:ClearAllPoints()
if index > 1 and mod(index, BUFFS_PER_ROW) == 1 then
buff:SetPoint("TOP", _G[buttonName..(index-BUFFS_PER_ROW)], "BOTTOM", 0, -BUFF_ROW_SPACING)
elseif index == 1 then
buff:SetPoint("TOPLEFT", _G["BuffButton1"], 0, (-55 + (numBuffRows * -45)))
else
buff:SetPoint("TOPLEFT", _G[buttonName..(index-1)], 35, 0)
end
end)
댓글 없음:
댓글 쓰기