Lua Code:
-- Player buffs
local b = _G.BuffFrame
b:SetMovable(true)
b:SetUserPlaced(true)
b:ClearAllPoints()
b:SetPoint("TopRight", UIParent, "TopRight", - 204, - 66)
b:SetMovable(false)
local moving
hooksecurefunc(BuffFrame, "SetPoint", function(self)
if moving then
return
end
moving = true
self:SetMovable(true)
self:SetUserPlaced(true)
self:ClearAllPoints()
self:SetPoint("TopRight", UIParent, "TopRight", - 204, - 66)
self:SetMovable(false)
moving = nil
end)
-- Consolidated buffs
--[[local c = _G["ConsolidatedBuffs"]
c:ClearAllPoints()
c:SetPoint("TopRight", UIParent, "TopRight", - 204, - 66)
c:SetMovable(true)
c:SetUserPlaced(true)
c:SetMovable(false)
if BuffFrame.numConsolidated == 0 then
c:Hide()
end]]
-- Player debuffs
if DebuffButton_UpdateAnchors then
hooksecurefunc("DebuffButton_UpdateAnchors", function()
local d = _G.DebuffButton1
if d then
d:SetMovable(true)
d:SetUserPlaced(true)
d:ClearAllPoints()
d:SetPoint("TopRight", BuffFrame, "TopRight", 0, - 180)
d:SetMovable(false)
end
end)
end
Fill the anchors however you would like.