Buff Location on Raid Frame - WoWInterface
Thread Tools Display Modes
02-08-17, 08:38 PM   #1
A Deviate Faerie Dragon
Join Date: Jan 2016
Posts: 12
Buff Location on Raid Frame

I'm trying to make an addon that will redirect my rejuvenations to the top right of my raid frames instead of the bottom right as resto druids have so many hots it can be hard to distinguish them with germination.

I would really appreciate any help, this is what I have so far:

local indicators = {}
local buffs = {“Rejuvenation”}

local function getIndicator(frame)
local indicator = indicators[frame:GetName()]
if not indicator then
indicator = CreateFrame("Button", nil, frame, "CompactAuraTemplate")
indicator:SetPoint("TOPRIGHT", frame, "TOPRIGHT", -3, -2)
indicator:SetSize(22, 22)
indicators[frame:GetName()] = indicator
return indicator

local function updateBuffs(frame)
if not frame:IsVisible() then return end

local indicator = getIndicator(frame)
local buffName = nil
for i = 1, 40 do
local _, _, _, _, _, d, _, ut, _, sc, s, c = UnitBuff(frame.displayedUnit, i);
buffName = UnitBuff(frame.displayedUnit, i);
if not buffName then break end
if buffs[buffName] and ut == “player” then
indicator:SetSize(frame.buffFrames[1]:GetSize()) -- scale
CompactUnitFrame_UtilSetBuff(indicator, frame.displayedUnit, i, nil);
hooksecurefunc("CompactUnitFrame_UpdateBuffs", updateBuffs)

Last edited by Baggyman : 02-09-17 at 05:10 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Buff Location on Raid Frame

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off