Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-03-15, 01:33 AM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Classicon help

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:
  1. local isBeautiful = IsAddOnLoaded("!Beautycase") --!Beautycase check
  2. local ClassIcons = {}
  3. for index = 1, 5 do
  4.   local Icon = self:CreateTexture(nil, 'BACKGROUND')
  5.   Icon:SetTexture(cfg.statusbar_texture)
  6.   Icon:SetSize(cfg.player.width/5,cfg.player.height/4)
  7.   Icon:SetPoint("TOPRIGHT", self.Power, "BOTTOMLEFT", index * Icon:GetWidth(),0)
  8.  
  9.   ClassIcons[index] = Icon
  10.   if isBeautiful then --!Beautycase load check
  11.     ClassIcons:CreateBeautyBorder(12)
  12.     ClassIcons:SetBeautyBorderPadding(1)
  13.   end
  14. end
  15.        
  16. -- Register with oUF
  17. self.ClassIcons = ClassIcons

Also how does one put space in between each icon?
__________________
Tweets YouTube Website
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Classicon help

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off