Thread Tools Display Modes
04-29-15, 06:55 PM   #1
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Rogue Combo Points

Is there a simple solution for creating combo points in the shape of a 'favorite texture'? I have looked through several different oUF layouts, but I am still confused. I am hoping for something that displays one to five bars or orbs.
__________________
Author of JWExpBar and JWRepBar.
  Reply With Quote
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
05-27-15, 04:50 AM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Just for notice. I found that the GetComboPoints() function returned false values. Switching to UnitPower with type 4 fixed that issue for me. https://code.google.com/p/rothui/sou...omboPoints.lua
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
05-27-15, 10:08 AM   #4
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 463
Originally Posted by zork View Post
Just for notice. I found that the GetComboPoints() function returned false values. Switching to UnitPower with type 4 fixed that issue for me. https://code.google.com/p/rothui/sou...omboPoints.lua
Thanks, good to know. BTW, I thought Google was killing it's code services?
__________________
Author of JWExpBar and JWRepBar.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Rogue Combo Points

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