Цитата Сообщение от Zikiprundoxx Посмотреть сообщение
https://addon.bool.no/
local AURA_OFFSET_Y = 3
local LARGE_AURA_SIZE = 21;
local SMALL_AURA_SIZE = 21;

hooksecurefunc("TargetFrame_UpdateAuraPositions",f unction(self, auraName, numAuras, numOppositeAuras, largeAuraList, updateFunc, maxRowWidth,offsetX)
-- a lot of this complexity is in place to allow the auras to wrap around the target of target frame if it's shown

-- Position auras
local size;
local offsetY = AURA_OFFSET_Y;
-- current width of a row, increases as auras are added and resets when a new aura's width exceeds the max row width
local rowWidth = 0;
local firstBuffOnRow = 1;
maxRowWidth = 122;

for i= 1, numAuras do
-- update size and offset info based on large aura status
if ( largeAuraList[i] ) then
size = LARGE_AURA_SIZE;
offsetY = AURA_OFFSET_Y + AURA_OFFSET_Y;
else
size = SMALL_AURA_SIZE;
end
-- anchor the current aura
if ( i == 1 ) then
rowWidth = size;
self.auraRows = self.auraRows + 1;
else
rowWidth = rowWidth + size + offsetX
end
if ( rowWidth > maxRowWidth ) then
-- this aura would cause the current row to exceed the max row width, so make this aura
-- the start of a new row instead
updateFunc(self, auraName, i, numOppositeAuras, firstBuffOnRow, size, offsetX, offsetY);

rowWidth = size;
self.auraRows = self.auraRows + 1;
firstBuffOnRow = i;
offsetY = 1;
else
updateFunc(self, auraName, i, numOppositeAuras, i - 1, size, offsetX, offsetY);
end
end
end)
спасибо! а нельзя сделать как-то, чтобы выделялись именно дебафы и именно мои? ))