So trying to skin classicon with !beautycase it seems to cause errors when I call the !Beautycase "CreateBeautyBorder" function. Anyone know if I can do this or should I just not bother skinning them with !Beautycase?
current code
Lua Code:
local isBeautiful = IsAddOnLoaded("!Beautycase") --!Beautycase check
local ClassIcons = {}
for index = 1, 5 do
local Icon = self:CreateTexture(nil, 'BACKGROUND')
Icon:SetTexture(cfg.statusbar_texture)
Icon:SetSize(cfg.player.width/5,cfg.player.height/4)
Icon:SetPoint("TOPRIGHT", self.Power, "BOTTOMLEFT", index * Icon:GetWidth(),0)
ClassIcons[index] = Icon
if isBeautiful then --!Beautycase load check
ClassIcons:CreateBeautyBorder(12)
ClassIcons:SetBeautyBorderPadding(1)
end
end
-- Register with oUF
self.ClassIcons = ClassIcons
Also how does one put space in between each icon?