hooksecurefunc("DebuffButton_UpdateAnchors", function(buttonName, index) local numBuffs = BUFF_ACTUAL_DISPLAY + BuffFrame.numEnchants if ShouldShowConsolidatedBuffFrame() then numBuffs = numBuffs + 1 -- consolidated buffs end local rows = ceil(numBuffs/8) local buff = _G[buttonName..index] -- Position debuffs if ( (index > 1) and (mod(index, 8) == 1) ) then -- New row buff:SetPoint("TOP", _G[buttonName..(index-8)], "BOTTOM", 5, -BUFF_ROW_SPACING) elseif ( index == 1 ) then if ( rows < 2 ) then DebuffButton1.offsetY = 1*((2*BUFF_ROW_SPACING)+BUFF_BUTTON_HEIGHT) else DebuffButton1.offsetY = rows*(BUFF_ROW_SPACING+BUFF_BUTTON_HEIGHT) end -- buff:SetPoint("TOPLEFT", ConsolidatedBuffs, "BOTTOMLEFT", 0, -DebuffButton1.offsetY) buff:SetPoint("TOPRIGHT", ConsolidatedBuffs, "BOTTOMRIGHT", 0, -DebuffButton1.offsetY) else -- buff:SetPoint("RIGHT", _G[buttonName..(index-1)], "LEFT", -5, 0) buff:SetPoint("LEFT", _G[buttonName..(index-1)], "RIGHT", 5, 0) end end)
That's what I have currently, but they just stack ontop of each other. I left the og code in comment so you can see what I changed. worked fine when i did this to player buffs, maybe I'm missing something. Help me please ?