Download
(4Kb)
Download
Updated: 10-19-14 06:34 PM
Addon for:
oUF.
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-19-14 06:34 PM
Created:04-25-09 05:40 PM
Downloads:13,062
Favorites:63
MD5:

oUF AuraWatch  Popular! (More than 5000 hits)

Version: 1.6.8-8
by: Astromech [More]

This is an optional addon for oUF by haste. The latest version was verified to work with oUF 1.6.8.

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.6.8-8
-Removed some legacy code from spell ranks. Be sure you use the correct spell ID!

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.
Post A Reply Comment Options
Unread 08-17-18, 09:06 PM  
scrable
A Murloc Raider
 
scrable's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 49
Uploads: 2
Originally Posted by Galaxy119
Originally Posted by scrable
UnitAura was changed in bfa patch. Remove the _, immediately after name in the line with the unitaura call

Code:
name, _, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
to

Code:
name, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
I put this change in myself during the beta, and it never fixed the issue. AuraWatch just *isnt* working and i can't trace down why, as there are no errors.
Strange, it works for me. Can you pm your addon maybe I can try to help
Report comment to moderator  
Reply With Quote
Unread 08-15-18, 11:47 AM  
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 503
Uploads: 10
Originally Posted by scrable
UnitAura was changed in bfa patch. Remove the _, immediately after name in the line with the unitaura call

Code:
name, _, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
to

Code:
name, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
I put this change in myself during the beta, and it never fixed the issue. AuraWatch just *isnt* working and i can't trace down why, as there are no errors.
__________________
My Addons | "If someone says something is impossible, they lack either imagination, or determination."
Report comment to moderator  
Reply With Quote
Unread 08-07-18, 03:34 PM  
scrable
A Murloc Raider
 
scrable's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 49
Uploads: 2
UnitAura was changed in bfa patch. Remove the _, immediately after name in the line with the unitaura call

Code:
name, _, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
to

Code:
name, texture, count, _, duration, expire, caster, _, _, spellid = UnitAura(unit, index, filter)
Report comment to moderator  
Reply With Quote
Unread 05-30-18, 01:35 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 73
Uploads: 6
Re: BFA

Originally Posted by Galaxy119
Do you plan to update AuraWatch for BFA? It's not currently working, though I'm unable to figure out precisely why, as there's no errors thrown by it, it simply doesn't show anything.
Oh thanks for the report! I'm not subbed unfortunately. I'll see if I can track down the problem but not sure when I'll be able to.
__________________
- Astromech
Report comment to moderator  
Reply With Quote
Unread 05-29-18, 01:47 AM  
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 503
Uploads: 10
BFA

Do you plan to update AuraWatch for BFA? It's not currently working, though I'm unable to figure out precisely why, as there's no errors thrown by it, it simply doesn't show anything.
__________________
My Addons | "If someone says something is impossible, they lack either imagination, or determination."
Report comment to moderator  
Reply With Quote
Unread 01-28-18, 05:27 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 73
Uploads: 6
Hey, sorry I never had a chance to get back to you, but glad you got it working!
__________________
- Astromech
Report comment to moderator  
Reply With Quote
Unread 01-27-18, 04:24 PM  
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 84
File comments: 14
Uploads: 3
Found the solution. Just make the icon a button.

Lua Code:
  1. local icon = CreateFrame("Button", nil, self)
  2. icon.spellID = sid
  3. icon:SetWidth(44)
  4. icon:SetHeight(44)
  5. icon:SetPoint("BOTTOMLEFT", UIParent, "TOPLEFT", 1 + (i * 52) - 52, 7)
  6. icon:EnableMouse(true)
  7. icon:RegisterForClicks("MiddleButtonUp")
  8. icon:SetScript("OnClick", function()
  9.     -- do stuff
  10. end)
Last edited by gempir : 01-27-18 at 04:25 PM.
Report comment to moderator  
Reply With Quote
Unread 01-17-18, 05:38 AM  
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 84
File comments: 14
Uploads: 3
I didn't register anything.

Even if so, the tooltip (on hover) should work anyway right?
Report comment to moderator  
Reply With Quote
Unread 01-07-18, 02:00 PM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 73
Uploads: 6
EnableMouse should work. Did you register any mouse event scripts, like OnClick? There's a list here http://wowprogramming.com/docs/scripts.

Sorry, I can't help test right now - I'm not subbed.
__________________
- Astromech
Report comment to moderator  
Reply With Quote
Unread 01-06-18, 04:39 PM  
gempir
A Black Drake
 
gempir's Avatar
AddOn Author - Click to view AddOns

Forum posts: 84
File comments: 14
Uploads: 3
Hey,

how would i enable mouse events on my auras?

my function looks like this currently

Lua Code:
  1. local createAuraWatch = function(self, unit)
  2.     local auras = {}
  3.        
  4.     auras.presentAlpha = 1
  5.     auras.missingAlpha = 0
  6.     auras.PostCreateIcon = AWIcon
  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.             icon:SetWidth(44)
  13.             icon:SetHeight(44)
  14.             icon:SetPoint("CENTER", UIParent, "CENTER", (i * 52) - 170, -290)
  15.             icon:EnableMouse(true)
  16.             auras.icons[sid] = icon
  17.         end
  18.     end
  19.     self.AuraWatch = auras
  20. end

icon:EnableMouse(true) doesn't work sadly.
Report comment to moderator  
Reply With Quote
Unread 12-10-15, 11:30 AM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 73
Uploads: 6
Hmm yeah everything looks OK. I'm not sure why it's not working, and I can't test anything since I'm not subbed at the moment.

One thing I would check, is that the function "createAuraIcon" (which is set as AuraWatch.PostCreateIcon) repositions the CD frame again. I'm not sure if that could cause problems.

You also don't have AuraWatch.customIcons set to true, so you don't even need to create your own CD frame. Right now AuraWatch just creates another, replacing it. Here's the code from line 259 in oUF_AuraWatch.lua

Lua Code:
  1. if not watch.customIcons then
  2.             local cd = CreateFrame("Cooldown", nil, icon)
  3.             cd:SetAllPoints(icon)
  4.             icon.cd = cd
  5.  
  6.             local tex = icon:CreateTexture(nil, "BACKGROUND")
  7.             tex:SetAllPoints(icon)
  8.             tex:SetTexture(image)
  9.             icon.icon = tex
  10.            
  11.             local overlay = icon:CreateTexture(nil, "OVERLAY")
  12.             overlay:SetTexture"Interface\\Buttons\\UI-Debuff-Overlays"
  13.             overlay:SetAllPoints(icon)
  14.             overlay:SetTexCoord(.296875, .5703125, 0, .515625)
  15.             overlay:SetVertexColor(1, 0, 0)
  16.             icon.overlay = overlay
  17.  
  18.             local count = icon:CreateFontString(nil, "OVERLAY")
  19.             count:SetFontObject(NumberFontNormal)
  20.             count:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", -1, 0)
  21.             icon.count = count
  22.         end

Sorry I can't help more. Hopefully this will lead you to a fix.
__________________
- Astromech
Report comment to moderator  
Reply With Quote
Unread 12-05-15, 12:48 AM  
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 503
Uploads: 10
Originally Posted by Astromech
Galaxy119, hi! Sorry for the late reply!

It's strange that's not working, its similar to the code I use.
To be clear, you tried it like that?
Yes, infact i tried it pretty much EXACTLY like that.
I took over development on the UI addon in question, made my own github and everything for it, you can see the file that calls in the aurawatch function here, specifically, this will take you to the first line in the icon positioning function:
https://github.com/galaxy119/Diablo-...e/lib.lua#L321

As you can see, it's pretty much identical to yours, except i've changed the icon strata to Background and cd strata to tooltip, thinking it might have been an issue with the icon being higher up than the cooldown or something.

When i disable aura watch, and let the UI addon handle the buffs, they have cooldown spirals like they should, but when using aurawatch they do not.
I'm fine with letting the addon take over creation of the party UI buffs, since i've fixed them as one of my updates, but the raid UI frame still remains with no buff function aside from aurawatch, and i've very much like to keep using aura watch, I love the low-alpha icons to remind me to recast certain things lol
Report comment to moderator  
Reply With Quote
Unread 12-05-15, 12:03 AM  
Astromech
A Kobold Labourer
 
Astromech's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 73
Uploads: 6
Galaxy119, hi! Sorry for the late reply!

It's strange that's not working, its similar to the code I use.

Code:
for i, sid in pairs(spellIDs) do
        local icon = CreateFrame("Frame", nil, self)
        icon:SetFrameStrata("HIGH")
        icon.spellID = sid
        -- set the dimensions and positions
        icon:SetSize(self.cfg.aurawatch.size,self.cfg.aurawatch.size)
        auras.icons[sid] = icon
        local xOffset = (i % columns) * xGrowth
        local yOffset = math.floor(i / columns) * yGrowth +60
        icon:SetPoint(iconAnchorPoint, self, parentAnchorPoint, xOffset, yOffset)
        -- Set any other AuraWatch icon settings

local cd = CreateFrame("Cooldown", nil, icon)
cd:SetFrameStrata("TOOLTIP")
cd:SetAllPoints(icon)
icon.cd = cd
    end
To be clear, you tried it like that?

Pyrates, I don't have a GitHub or anything like that for AuraWatch, sorry. You probably already know, but under Other Files above you can download older versions and compare them. From 7 to 8, I changed AW to use spellIDs instead of spell names internally. That's about all, IIRC.
__________________
- Astromech
Report comment to moderator  
Reply With Quote
Unread 12-04-15, 06:01 AM  
Pyrates
A Cliff Giant
 
Pyrates's Avatar
AddOn Author - Click to view AddOns

Forum posts: 77
File comments: 280
Uploads: 4
Hey, do you have some diff (maybe even a github page or something like that) for your latest update? I'm keeping up a custom version of 1.5.2-7 and would like to have a look around the things you changed.
__________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Report comment to moderator  
Reply With Quote
Unread 11-30-15, 09:55 AM  
Joker119
A Flamescale Wyrmkin
 
Joker119's Avatar
AddOn Author - Click to view AddOns

Forum posts: 113
File comments: 503
Uploads: 10
Re: Re: Buff timer

Originally Posted by Astromech
The cooldown timer should be pretty simple. After you create the icon, you just need to create a cooldown frame and AW will take care of the rest.
This isn't quite simple, nor working.
Here's my icon create frame section:
Code:
    for i, sid in pairs(spellIDs) do
        local icon = CreateFrame("Frame", nil, self)
        icon:SetFrameStrata("HIGH")
        icon.spellID = sid
        -- set the dimensions and positions
        icon:SetSize(self.cfg.aurawatch.size,self.cfg.aurawatch.size)
        auras.icons[sid] = icon
        local xOffset = (i % columns) * xGrowth
        local yOffset = math.floor(i / columns) * yGrowth +60
        icon:SetPoint(iconAnchorPoint, self, parentAnchorPoint, xOffset, yOffset)
        -- Set any other AuraWatch icon settings
    end
Here's the code I'm trying to inject:
Code:
local cd = CreateFrame("Cooldown", nil, icon)
cd:SetFrameStrata("TOOLTIP")
cd:SetAllPoints(icon)
icon.cd = cd
I've tried it both immediatly under the icon = CreateFrame line aswell as under the "--set any other aurawatch icon settings" line, neither have worked.
I'm probably missing something but I can't figure out what exactly.

Originally Posted by Astromech
For you second problem, I think you're missing an "end" to close the Paladin spell definitions. Right now, the icons are only created for Paladins. You'll need to insert "end" after this part:
You'll have an extra "end" somewhere now, maybe at the end of the file?
Ahaha, omg. I tried my hardest to compare the party and raid aurawatch functions for differences.. and it was a fucking end in the wrong place.. *sigh* thanks for that.
Last edited by Joker119 : 11-30-15 at 02:25 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: