Download
(4 Kb)
Download
Updated: 10-16-10 06:46 PM
Addon for:
oUF.
Pictures
File Info
Updated:10-16-10 06:46 PM
Created:04-25-09 05:40 PM
Downloads:9,570
Favorites:64
MD5:
oUF AuraWatch  Popular! (More than 5000 hits)
Version: 1.5.2-7
by: Astromech [More]
This is an optional addon for oUF by haste. The latest version was verified to work with oUF 1.5.2. If you are updating from oUF_AuraWatch 1.3.28-6, please see the change log for API changes.

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

Some uses include:
  • Grid style HoT indicators.
  • Crowd control warnings.
  • DoT timers.
All integrated within your unit frames.

By default, 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. These affects can be customized in your layout. All icons are cleared when combat ends, so you can start each fight fresh. oUF_AuraWatch used the GUID of players and targets, making sure correct information is shown.

oUF_AW does not display numerical timers on its own. However, it does create a cooldown frame which, when paired with OmniCC by Tuller (or a similar addon), 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.
1.5.2-7
-Replaced the numerous frame options with a customIcons option, which gives control of frame creation to the user. This is not backwards compatible! If you previously used hideCount, hideCooldown, or custom textures, slight alterations to your layout will be needed.
-Added Override- and Post- ResetIcon and ExpireIcon fields, which allow the user to better control how frames look when these events occur.
-Updated to oUF version 1.5.2 element standard.

1.3.28-6
Added hideCount and hideCooldown options.
Added a strictMatching option, which will watch auras based on spell ids instead of spell names if true.
Improved documentation in oUF_AuraWatch.lua.
Use new embedding technique.
Slight code improvements.

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 Files (6)
File Name
Version
Size
Author
Date
1.3.28-6
4kB
Astromech
05-09-10 09:02 PM
1.3.14-5
3kB
Astromech
05-05-09 11:27 AM
1.3.14-4
3kB
Astromech
04-30-09 04:11 PM
1.3.14-3
3kB
Astromech
04-29-09 10:34 PM
1.3.11-2
3kB
Astromech
04-26-09 02:00 AM
1.3.11-1
3kB
Astromech
04-25-09 05:40 PM


Post A Reply Comment Options
Old 01-06-10, 09:10 AM  
Waterdark
A Defias Bandit

Forum posts: 3
File comments: 7
Uploads: 0
Hi there,

I am currently trying out some ouf raid frames using ouf_aurawatch. In particular, I'd like to customize Neav's layout, as I'm playing mainly a resto druid.

I'd like to know if there's a way to access a buff's remaining duration for ouf_Aurawatch. In particular, I'd like to write a few lines of code to show my HoTs remaining duration as different coloured squares (like in GridStatusHots).

I'm not very experienced with LUA editing, but the logic behind the colour change should be fairly simple, i'm only quite confused as to what can reference what in the code :P

any general tips? I'll post more specific troubles as soon as I can figure out the matter
Waterdark is offline Report comment to moderator  
Reply With Quote
Old 12-08-09, 12:05 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
Re: i think i broke it :'(

One thing I noticed is that you didn't set a point, width, and height for the AuraWatch frame, which makes it invisible. Since the icons are parented to the AuraWatch frame, it could make them hide too! What you actually set for the AuraWatch frame doesn't really matter, since you don't anchor anything to it. You could just do :SetAllPoints(self)

Try that out and let me know if it works.

oUF_Aurawatch should work with any layout, although the setup might be slightly different.

As for the spellIDs, yes that's right
__________________
- Astromech
Astromech is offline Report comment to moderator  
Reply With Quote
Old 12-07-09, 11:57 AM  
majellah
A Kobold Labourer
 
majellah's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
Uploads: 2
i think i broke it :'(

I am trying to use oUF-Neav's raid layout for my priest, but I cannot for the life of me get AuraWatch to work. After switching the spellIDs to my priest's, nothing shows up.

http://www.pastey.net/129894-bpad

Do you think hiding the rest of Neav's layout and using Freeb's frames for my player/target frames would cause AW to poop out on me?

P.S. The highlighted part is the correct number I should be putting into the code, right?

Thank you~

-Kattyl
majellah is offline Report comment to moderator  
Reply With Quote
Old 08-05-09, 12:32 AM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
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-09 at 03:57 PM.
Astromech is offline Report comment to moderator  
Reply With Quote
Old 07-24-09, 11:13 PM  
Kaidroth
A Kobold Labourer

Forum posts: 0
File comments: 21
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  
Reply With Quote
Old 07-06-09, 10:05 PM  
berkz
A Defias Bandit

Forum posts: 2
File comments: 3
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  
Reply With Quote
Old 06-09-09, 03:54 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1310
File comments: 3288
Uploads: 84
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 06-09-09 at 03:55 AM.
zork is online now Report comment to moderator  
Reply With Quote
Old 05-26-09, 07:22 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
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.

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-09 at 07:22 PM.
Astromech is offline Report comment to moderator  
Reply With Quote
Old 05-24-09, 06:29 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
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-09 at 07:09 PM.
Dawn is offline Report comment to moderator  
Reply With Quote
Old 05-24-09, 04:59 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
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-09 at 04:59 PM.
Astromech is offline Report comment to moderator  
Reply With Quote
Old 05-24-09, 04:21 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
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  
Reply With Quote
Old 05-23-09, 06:54 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
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  
Reply With Quote
Old 05-14-09, 12:04 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
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-09 at 12:04 PM.
Astromech is offline Report comment to moderator  
Reply With Quote
Old 05-12-09, 11:40 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 903
File comments: 947
Uploads: 23
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-09 at 11:42 AM.
Dawn is offline Report comment to moderator  
Reply With Quote
Old 05-08-09, 10:50 AM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 56
Uploads: 6
Thanks, that looks great! Glad it's working out for you
__________________
- Astromech
Astromech is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: