- Code: Select all
local buffdrop = {
edgeFile = "Interface\\AddOns\\ShaguUI\\img\\border", edgeSize = 16,
insets = {left = 4, right = 4, top = 4, bottom = 4},
}
ShaguUI:RegisterEvent("UNIT_AURA")
ShaguUI:SetScript("OnEvent", function()
if event == "UNIT_AURA" then
ShaguUI.UpdateBuffFrame()
end
end)
function ShaguUI.UpdateBuffFrame()
for i = 0, 31 do
buttonName = "BuffButton"..i;
if getglobal(buttonName) ~= nil then
buff = getglobal(buttonName);
buff:SetBackdrop(buffdrop)
end
end
end