Originally Posted by Layback_
Hi kurapica.iga,
Thank you for your advice
What about the borders for debuffs?
As you know some debuffs have a different border colors based on their types (like red or blue).
Would this be considered on BuffButton_OnLoad or SetTexture functions?
|
I would do this
Lua Code:
function SkinDebuff()
local button, icon;
for i = LayAura.debuffs + 1, DEBUFF_ACTUAL_DISPLAY do
button = _G["DebuffButton" .. i];
icon = _G["DebuffButton" .. i .. "Icon"];
local Border = _G[button .. "Border"]
if (Border) then
Border:SetTexture(nil)
Border:Hide()
local R, G, B = Border:GetVertexColor()
button:SetColorHere
end
CutOffEdges(icon);
SetTemplate(button);
end
LayAura.debuffs = DEBUFF_ACTUAL_DISPLAY;
end