View Single Post
03-31-17, 07:10 PM   #5
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Originally Posted by Game92 View Post
I would do this

Lua Code:
  1. function SkinDebuff()
  2.     local button, icon;
  3.     for i = LayAura.debuffs + 1, DEBUFF_ACTUAL_DISPLAY do
  4.         button = _G["DebuffButton" .. i];
  5.         icon = _G["DebuffButton" .. i .. "Icon"];
  6.        
  7.         local Border = _G[button .. "Border"]
  8.         if (Border) then
  9.             Border:SetTexture(nil)
  10.             Border:Hide()
  11.        
  12.             local R, G, B = Border:GetVertexColor()
  13.             button:SetColorHere
  14.         end
  15.  
  16.         CutOffEdges(icon);
  17.         SetTemplate(button);
  18.     end
  19.  
  20.     LayAura.debuffs = DEBUFF_ACTUAL_DISPLAY;
  21. end
Yeap, that's how I've done it at the moment, but was not added into attachment
  Reply With Quote