-- hides default target/focus buffs/debuffs
TargetFrame.maxBuffs = 0
TargetFrame.maxDebuffs = 0
MAX_TARGET_BUFFS = 0
MAX_TARGET_DEBUFFS = 0
if TargetFrame_UpdateAuras then
TargetFrame_UpdateAuras(TargetFrame)
end
if FocusFrame:IsShown() then
FocusFrame.maxBuffs = 0
FocusFrame.maxDebuffs = 0
MAX_FOCUS_BUFFS = 0
MAX_FOCUS_DEBUFFS = 0
if FocusFrame_UpdateAuras then
FocusFrame_UpdateAuras(FocusFrame)
end
end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function()
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint("TOPLEFT", TargetFrame, "TOPLEFT", 43, 30)
TargetFrameSpellBar.SetPoint = function() end
end)
Copy and paste work. Not sure how effective this is but at least its working for me.
|