Category: oUF: Plugins
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
1.3.14-5
Date:
05-05-2009 01:27 PM
Size:
3.08 Kb
Downloads:
2,043
Favorites:
37
MD5:
Pictures
oUF AuraWatch with OmniCC
oUF AuraWatch
This is an optional addon for oUF by haste. The latest version was written for oUF 1.3.14.

oUF AuraWatch adds the ability to watch specific auras on any unit of your choice. All you need to know is its spell ID!

When an aura is applied to a unit, oUF_AW will display an icon letting you know it has been applied. When the aura expires, oUF_AW will display a faded icon, letting you know to reapply that aura.

All icons are cleared when combat ends, so you can start each fight fresh.

oUF_AW does not display timers on its own. However, it does create a Cooldown frame which, when paired with OmniCC by Tuller, will create a countdown for you.

Additional options as well as an example on how to set up oUF_AW are located in oUF_AuraWatch.lua.
  Change Log - oUF AuraWatch
1.3.14-5:
Added an anyUnit option, which, if true, will display an aura no matter what unit it is from.
Fixed an error in the icon creating code.

1.3.14-4:
Fixed some typos so that the addon works like the documentation says!

1.3.14-3:
Allowed the layout to specify showOnlyPresent and showOnlyMissing on a per aura basis if wanted.
Added a new fromUnits field which specifies which units an aura can originate from.

1.3.11-2:
Fixed global oUF referencing and embedding errors.

1.3.11-1:
Initial upload.
  Archived Versions - oUF AuraWatch
File Name
Version
Size
Author
Date
1.3.14-4
3kB
Astromech
04-30-2009 06:11 PM
1.3.14-3
3kB
Astromech
04-30-2009 12:34 AM
1.3.11-2
3kB
Astromech
04-26-2009 04:00 AM
1.3.11-1
3kB
Astromech
04-25-2009 07:40 PM
  Comments - oUF AuraWatch
Post A Reply Comment Options
Old 08-05-2009, 02:32 AM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
My apologies for the late replies.

berkz, I would recommend posting your question in the oUF section of the forums here. I'm not familiar with Caellian's layout.

Kaidroth, you can set most of the options on a per-aura basis if you want. Just set onlyShowPresenton the aura icon instead of the aura table.

auras.icons[1].onlyShowPresent = true

instead of

auras. onlyShowPresent = true

for example.
__________________
- Astromech

Last edited by Astromech : 08-09-2009 at 05:57 PM.
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-25-2009, 01:13 AM  
Kaidroth
A Kobold Labourer

Forum posts: 0
File comments: 25
Uploads: 0
Everything is working fine except I can't make my dream come true !
I have currently my Rejuvenation/Lifebloom/etc. showing up and I want a missing buff feature (to refresh my MotW on the raid), by setting the auras.presentAlpha to 0 and the auras.missingAlpha to 1. But if I do so it's also the case for Rejuvenation & co.

Is there a way to do it with "if bla bla bla then" ?
Kaidroth is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-07-2009, 12:05 AM  
berkz
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
simplified instructions

Could some1 give me simplified instructions on how to implement this into my layout. I'm using caellians layout. I understand that I must put the code somewhere but I have no idea where.
berkz is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-09-2009, 05:54 AM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 145
File comments: 1068
Uploads: 28
Dawn I post my function. This function is called for myclass == "DRUID" only.
Another class = different function.

Code:
  local function d3o2_createAuraWatch(self,unit)
    local auras = CreateFrame("Frame", nil, self)
    auras:SetAllPoints(self.Health)
    local spellIDs = { 
      48440, --reju
      48443, --regrowth
      48450, --lifebloom
      53249, --wildgrowth
      27808, --kel iceblock
      32407, --strange aura
      28408, --kel sheep heroic
    }
    
    auras.presentAlpha = 1
    auras.missingAlpha = 0
    --auras.hideCooldown = true
    --auras.PostCreateIcon = d3o2_createAuraIcon
    auras.icons = {}
    
    for i, sid in pairs(spellIDs) do
      local icon = CreateFrame("Frame", nil, auras)
      icon.spellID = sid
		  local cd = CreateFrame("Cooldown", nil, icon)
		  cd:SetAllPoints(icon)
		  cd:SetReverse()
		  --cd:SetAlpha(0)
		  icon.cd = cd
      if i > 4 then
        icon.anyUnit = true
        icon:SetWidth(20)
        icon:SetHeight(20)
        icon:SetPoint("CENTER",0,0)
      else
        icon:SetWidth(10)
        icon:SetHeight(10)
        local tex = icon:CreateTexture(nil, "BACKGROUND")
        tex:SetAllPoints(icon)
        tex:SetTexture("Interface\\AddOns\\oUF_D3OrbsRaid\\indicator")
        if i == 1 then
          icon:SetPoint("BOTTOMLEFT",0,0)
          tex:SetVertexColor(200/255,100/255,200/255)
        elseif i == 2 then
          icon:SetPoint("TOPLEFT",0,0)
          tex:SetVertexColor(50/255,200/255,50/255)
        elseif i == 3 then          
          icon:SetPoint("TOPRIGHT",0,0)
          tex:SetVertexColor(100/255,200/255,50/255)
          local count = icon:CreateFontString(nil, "OVERLAY")
          count:SetFont(NAMEPLATE_FONT,10,"THINOUTLINE")
          count:SetPoint("CENTER", -6, 0)
          --count:SetAlpha(0)
          icon.count = count
        elseif i == 4 then
          icon:SetPoint("BOTTOMRIGHT",0,0)
          tex:SetVertexColor(200/255,100/255,0/255)
        end
        icon.icon = tex
      end  
      auras.icons[sid] = icon
    end
    self.AuraWatch = auras
  end
...

Code:
    if myclass == "DRUID" then
      d3o2_createAuraWatch(self,unit)
    end
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild

Last edited by zork : 06-09-2009 at 05:55 AM.
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-26-2009, 09:22 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
Quote:
might you consider adding an option to make AuraWatch look at "showDebuffType". i.e. color the AuraWatch borders by type if set to true ?
This would be pretty easy to do. I'll add it to my TODO list.

Quote:
1. Is it possible to get more rows than just one?
2. Is it possible to set up 2 different rows (different anchor, directions, position, .... different spellIDs) for the same unit?
Yes to both!
oUF_AW does not care about the position of the icons, so when you create them, you can position them wherever you want.
__________________
- Astromech

Last edited by Astromech : 05-26-2009 at 09:22 PM.
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 08:29 PM  
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces

Forum posts: 175
File comments: 401
Uploads: 14
Ah forgot to make it local, thanks.

Concerning the error:
"attempt to index local 'icons' (a number value)"

in line:
Code:
	icons.showDebuffType = true -- show debuff border type color
Which is the first line of my original aura reskin function.

Btw, since your on it, might you consider adding an option to make AuraWatch look at "showDebuffType". i.e. color the AuraWatch borders by type if set to true ?

Edit: More questions!

1. Is it possible to get more rows than just one?
2. Is it possible to set up 2 different rows (different anchor, directions, position, .... different spellIDs) for the same unit?

Last edited by Dawn : 05-24-2009 at 09:09 PM.
Dawn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 06:59 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
That first error is very strange! oUF_AW doesn't even look at the "showDebuffType" field. Could you post the complete error?

As for setting it up for multiple classes, you're doing it right, except spellIDs must be declared local before the if-then block.

Code:
local spellIDs
if playerClass=="DRUID" then
     spellIDs = { 2345, }
elseif playerClass=="PRIEST" then
     spellIDs = { 1234, }
end
This is because lua considers any local variables enclosed within an if-then block to be local to that block.
__________________
- Astromech

Last edited by Astromech : 05-24-2009 at 06:59 PM.
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-24-2009, 06:21 PM  
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces

Forum posts: 175
File comments: 401
Uploads: 14
What would be the best way to set up AuraWatch for multiple classes. Let's
say druid and priest?

I tried:
Code:
		if playerClass=="DRUID" then
		local spellIDs = { 2345, }
		elseif playerClass=="PRIEST" then
		local spellIDs = { 1234, }
		end
... which doesn't work because it starts spitting out an error.
Dawn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-23-2009, 08:54 PM  
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces

Forum posts: 175
File comments: 401
Uploads: 14
It seems like AuraWatch doesn't like:

Code:
	icons.showDebuffType = true
It spits out an error, that it failed to assign a number to "icon" or something like that.

I'm using this on my aura reskin function to color debuff borders by type. However, I worked around this by creating an identical function, just without that line and a slightly different function name.
Dawn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-14-2009, 02:04 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
Outside the Scope

I like the idea, but it is outside the scope of oUF_AuraWatch. oUF_AW is meant primarily to serve as a "DoT timer" for specific auras, not a general buff sorting display. Sorry
__________________
- Astromech

Last edited by Astromech : 05-14-2009 at 02:04 PM.
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-12-2009, 01:40 PM  
Dawn
A Chromatic Dragonspawn
 
Dawn's Avatar
Interface Author - Click to view interfaces

Forum posts: 175
File comments: 401
Uploads: 14
Is there any chance this could be developed into something that can also filter buffs/debuffs on duration?

I like to differentiate between severa group of buffs.

1. one group of short buffs/debuffs with a duration <120sec for player
2. one group of short buffs/debuffs with a duration <120sec for target
3. one group of long buffs/debuffs with a duration >120sec for target

The idea behind this is simple. It allows to keep track of important self/hostile buffs AND debuffs, in a consistent place.

Or would this blow up the basic idea of this addon ? I hope not, since it's an nice and efficient way to filter a lot of things!

Last edited by Dawn : 05-12-2009 at 01:42 PM.
Dawn is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-08-2009, 12:50 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
Thanks, that looks great! Glad it's working out for you
__________________
- Astromech
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-08-2009, 09:11 AM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 145
File comments: 1068
Uploads: 28
Tested it yesterday in a 25man with AddonManager to check the CPU and memory load. Everything was fine, no problems.

http://s.wowinterface.com/preview/pvw26394.jpg

Only problem I had were the Kel'Thuzad iceblock debuff icons. Since the cooldown spiral starts at full and by healthbar is kinda dark when full the icon was hard to spot. I am using my own icon.cd now with Reversed cooldown spiral so the icon is blank at start...maybe I am going to add a glow to it aswell.

Props. <3
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild

Last edited by zork : 05-08-2009 at 09:17 AM.
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-06-2009, 02:24 PM  
zork
A Flamescale Wyrmkin
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 145
File comments: 1068
Uploads: 28
Re: Customizing

Thanks alot! Got it working, its perfect! The strange aura outside Shattrath is a good stationary debuff to do some tests .

http://zorktdmog.zo.funpic.de/rothui...609_202209.jpg
http://zorktdmog.zo.funpic.de/rothui...609_204009.jpg
http://zorktdmog.zo.funpic.de/rothui...609_204945.jpg

Here is my function:
Code:
  local function d3o2_createAuraWatch(self,unit)
    local auras = CreateFrame("Frame", nil, self)
    auras:SetAllPoints(self.Health)
    local spellIDs = { 
      48440, --reju
      48443, --regrowth
      48450, --lifebloom
      53249, --wildgrowth
      27808, --kel iceblock
      32407, --strange aura
    }
    
    auras.presentAlpha = 1
    auras.missingAlpha = 0
    --auras.hideCooldown = true
    --auras.PostCreateIcon = d3o2_createAuraIcon
    auras.icons = {}
    
    for i, sid in pairs(spellIDs) do
      local icon = CreateFrame("Frame", nil, auras)
      icon.spellID = sid
      if i > 4 then
        icon.anyUnit = true
        icon:SetWidth(20)
        icon:SetHeight(20)
        icon:SetPoint("CENTER",0,0)
      else
        icon:SetWidth(10)
        icon:SetHeight(10)
        local tex = icon:CreateTexture(nil, "BACKGROUND")
        tex:SetAllPoints(icon)
        tex:SetTexture("Interface\\AddOns\\oUF_D3OrbsRaid\\indicator")
        if i == 1 then
          icon:SetPoint("BOTTOMLEFT",0,0)
          tex:SetVertexColor(200/255,100/255,200/255)
        elseif i == 2 then
          icon:SetPoint("TOPLEFT",0,0)
          tex:SetVertexColor(50/255,200/255,50/255)
        elseif i == 3 then          
          icon:SetPoint("TOPRIGHT",0,0)
          tex:SetVertexColor(100/255,200/255,50/255)
          local count = icon:CreateFontString(nil, "OVERLAY")
          count:SetFont(NAMEPLATE_FONT,10,"THINOUTLINE")
          count:SetPoint("CENTER", 4, 0)
          --count:SetAlpha(0)
          icon.count = count
        elseif i == 4 then
          icon:SetPoint("BOTTOMRIGHT",0,0)
          tex:SetVertexColor(200/255,100/255,0/255)
        end
        icon.icon = tex
      end  
      auras.icons[sid] = icon
    end
    self.AuraWatch = auras
  end
__________________
| Simple is beautiful.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild

Last edited by zork : 05-06-2009 at 02:51 PM.
zork is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-05-2009, 09:36 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 40
Uploads: 5
Customizing

Yes, you could use fontstrings to achieve that effect, but you can also customize the AuraWatch icons.

oUF_AW will create the following things automatically for every icon, unless they are already present:
  • icon: A texture to show. Normally the buff's texture.
  • count: A fontstring to show the aura stack count.
  • cd: A cooldown frame.
  • overlay: An overlay texture which shows when the aura has expired.

So for your indicators, just create a texture with the desired color when you first create the frames to position them.

There was a bug in the last version, but in the latest version it will work correctly.
__________________
- Astromech
Astromech is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.