Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-04-18, 10:25 AM   #1
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2015
Posts: 84
oUF Aurawatch custom bars

Hey,

I'm trying to create simple aura bars that show the length of buffs. Currently I have this


I'm using oUF and oUF AuraWatch (http://www.wowinterface.com/download...AuraWatch.html) for this

I'm unsure how I could create aura bars now instead of these cooldown icons, because AuraWatch seems to be designed for icons.

This is my current setup for AuraWatch, any ideas how to create a statusbar from that?
Lua Code:
  1. local auras = {}
  2.        
  3.     auras.presentAlpha = 1
  4.     auras.missingAlpha = 0
  5.     auras.PostCreateIcon = AWIcon
  6.     -- Set any other AuraWatch settings
  7.     auras.icons = {}
  8.     if G.aurawatch.spellIDs[class] then
  9.         for i, sid in pairs(G.aurawatch.spellIDs[class]) do
  10.             local icon = CreateFrame("Frame", nil, self)
  11.             icon.spellID = sid
  12.             -- set the dimensions and positions
  13.             icon:SetWidth(48)
  14.             icon:SetHeight(48)
  15.             icon:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -52 + (i * 52), 42)
  16.             auras.icons[sid] = icon
  17.             -- Set any other AuraWatch icon settings
  18.         end
  19.     end
  20.     self.AuraWatch = auras
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF Aurawatch custom bars


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