WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Rogue Combo Points (https://www.wowinterface.com/forums/showthread.php?t=52257)

JDoubleU00 04-29-15 06:55 PM

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.

haste 05-08-15 11:06 AM

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

zork 05-27-15 04:50 AM

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

JDoubleU00 05-27-15 10:08 AM

Quote:

Originally Posted by zork (Post 308963)
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?


All times are GMT -6. The time now is 01:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI