View Single Post
05-08-15, 11:06 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
It's quite straight forward to change the texture:
Lua Code:
  1. local CPoints = {}
  2.    for index = 1, MAX_COMBO_POINTS do
  3.       local CPoint = self:CreateTexture(nil, 'BACKGROUND')
  4.  
  5.       CPoint:SetTexture[[Interface\AddOns\Path\To\Texture]]
  6.  
  7.       -- Position and size of the combo point.
  8.       CPoint:SetSize(16, 16)
  9.       CPoint:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', index * CPoint:GetWidth(), 0)
  10.    
  11.       CPoints[index] = CPoint
  12.    end
  13.    
  14.    -- Register with oUF
  15.    self.CPoints = CPoints
__________________
「貴方は1人じゃないよ」
  Reply With Quote