Go to Page... |
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,073 |
Favorites: | 63 |
MD5: |
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:
Comment Options |
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
11-26-15, 06:16 AM | |
|
Buff timer
Look, I'm back again!
Ok so I took a break between Highmaul and now, and now that I'm back and into Mythic progression, the lack of a timer on the aurawatch buffs is bugging me. I remember it use to have one way back when, but it broke (no errors, just doesn't show) I was wondering if you've run across this issue and fixed it, or could work with me again. Essentially, I would like a darkened spiral type timer effect over the aurawatch icons (for party and raid) http://imgur.com/LfWLGYV In this screenshot, you see the party frame with buffs being tracked (these are the buffs i need a cooldown timer of some sort on) Also for reference, the cooldown on the action bar that is on prayer of mending, is the type of timer I'd like, just without the number in the center. Something simple to see that doesn't obstruct the icon. Thanks much. A second issue. When using Aurawatch on my Raid frames, for some reason, it will show my paladins just fine, but not my Priests buffs. Oddly enough, if I remove the Paladin section, the Priest ones work perfectly. Take a look and see if you can help me out with this one.. :/ Code:
--create aura watch func local createAuraWatch = function(self) local auras = {} local spellIDs if cfg.playerclass == "WARRIOR" then --WARRIOR spellIDs = {} elseif cfg.playerclass == "PRIEST" then spellIDs = { 139, -- Renew 17, -- Power Word: Shield 41635, -- Prayer of Mending } elseif cfg.playerclass == "PALADIN" then spellIDs = { 148039, -- Sacred Shield 53563, -- Beacon of Light 157007, -- Beacon of Insight 86273, -- Illuminated Healing 6940, -- Hand of Sacrifice 114039, -- Hand of Purity 156910, -- Beacon of Faith } local dir = { [1] = {size = 15, pos = "CENTER", x = 0, y = 3 }, [2] = {size = 15, pos = "CENTER", x = 15, y = 3 }, [5] = {size = 15, pos = "CENTER", x = -15, y = 3 }, [4] = {size = 15, pos = "CENTER", x = 30, y = 3 }, [3] = {size = 15, pos = "CENTER", x = -30, y = 3 }, [6] = {size = 15, pos = "CENTER", x = -30, y = 3 }, [7] = {size = 15, pos = "CENTER", x = 15, y = 3 }, [8] = {size = 15, pos = "CENTER", x = 0, y = 3 }, } auras.onlyShowPresent = true auras.presentAlpha = .75 auras.PostCreateIcon = function(self, icon, sid) if icon.cd then icon.cd:SetPoint("TOPLEFT", 1, -1) icon.cd:SetPoint("BOTTOMRIGHT", -1, 1) end --count hack for lifebloom if sid == 33763 and icon.count then icon.count:SetFont("Interface\\AddOns\\oUF_Diablo\\media\\visitor1.ttf",8,"THINOUTLINE, MONOCHROME") icon.count:ClearAllPoints() icon.count:SetPoint("CENTER", 3, 3) icon.count:SetParent(icon.cd) end end -- Set any other AuraWatch settings auras.icons = {} 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.size = dir[i].size icon:SetSize(dir[i].size,dir[i].size) --position icon icon:SetPoint(dir[i].pos, self, dir[i].pos, dir[i].x, dir[i].y) --make indicator if dir[i].indicator then local tex = icon:CreateTexture(nil, "OVERLAY") tex:SetAllPoints(icon) tex:SetTexture("Interface\\AddOns\\oUF_Diablo\\media\\indicator") tex:SetVertexColor(dir[i].color.r,dir[i].color.g,dir[i].color.b) icon.icon = tex end auras.icons[sid] = icon -- Set any other AuraWatch icon settings end --call aurawatch self.AuraWatch = auras end end
Last edited by Joker119 : 11-26-15 at 07:38 PM.
|
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
01-10-15, 12:14 PM | |
|
Re: Re: Re: Re: Re: Multiple class OR adaptive icon locations.
Haha, don't worry, it happens to all of us! No problem. Glad it's working!
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
01-09-15, 05:57 PM | |
|
Re: Re: Re: Multiple class OR adaptive icon locations.
Hello! I hope you had a good new year.
I think you're getting that error because there's an extra "end" somewhere. If you remove the end after the last else, you'll have the problems you described (AuraWatch will only show for that last class). I went through the code again and threw together a small addon to make sure the syntax was OK. If you're getting an error again, I would check to make sure there are no extra "end"s after the code below. Basically, every function, if-elseif-else, and for loop needs an "end" to close it. Lua will complain about extras. Lua Code:
I seem to remember seeing some oUF layout that had filtered auras back in Cataclysm... Sorry I can't remember specifics. Never been a big fan of X-Perl or Healbot either, but to each their own! Hope this helps.
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
12-22-14, 03:22 AM | ||
|
Re: Re: Multiple class OR adaptive icon locations.
Code:
Message: Interface\AddOns\oUF_Diablo\core\lib.lua:281: '<eof>' expected near 'end' Time: 12/22/14 01:37:31 Count: 1 Stack: Locals: lua Code:
As for the second part, unfortunatly the oUF auras module doesn't really work very well on the party frames, and not at all on the raid frames, also i don't believe there is a way to filter which spellID's are shown. Maybe digging through it's code I can port it's icon placement function into aurawatch, if i'm sucessful i'll post how to do it so you can add it in. I figured it wouldn't be very easy, lol. On a side note: I can apparently expect no help from the author of oUF_Diablo, as he swears oUF is the worst possible choice for a UI to use while healing, and thus I need to disable the party and raid frames and use something else like X-Perl or *shudders* HealBot. -.-
Last edited by Joker119 : 12-22-14 at 03:58 AM.
|
|
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
12-21-14, 06:51 PM | |
|
Re: Multiple class OR adaptive icon locations.
It seems your class if-then-end blocks got interwoven with the actual code. I separated them out and added a check for mage, as an example:
Lua Code:
Change mage to any other class (note class names should be in all caps, and death knight would have no space: "DEATHKNIGHT"). Your second question is technically possible, but outside of what I designed AuraWatch for. You would need to watch and check which auras are applied yourself, and rearrange the AuraWatch icons (like how we positioned them before). At that point, I would suggest to use a different addon, more suited to this. I think the default oUF auras module can do this, but you would need a filter so only spellIDs you're interested in show up. I can't help much there - don't use it myself. Anyway, hope this helps. Happy holidays
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
12-19-14, 12:37 AM | |
|
Multiple class OR adaptive icon locations.
Is there a way to either make aurawatch determine the class of the player, and display a set of spellIDs depending on what that class is, or a way to make the party/raid icons go to the lowest avalible icon location, rather than a set location based on the list number they are.
IE: If an icon is listed, and there are 4 before it, that makes it's position the 5th icon position on the aurawatch frame, even if the first 4 icons are not currently visible. Can this be changed? As to the first one, a better explanation - Code:
--create aura watch func func.createAuraWatch = function(self) --start the PRIEST setup if cfg.playerclass == "MONK" then local auras = {} local spellIDs = { 139, -- Renew 17, -- Power Word: Shield 33076, -- Prayer of Mending 47515, -- Divine Ageis 33206, -- Pain Suppression 109964, -- Spirit Shell 152118, -- Clairity of Will } else local auras = {} local spellIDs = { 139, -- Renew 17, -- Power Word: Shield 33076, -- Prayer of Mending 47515, -- Divine Ageis 33206, -- Pain Suppression 109964, -- Spirit Shell 152118, -- Clairity of Will 124682, -- Enveloping Mist 115175, -- Soothing mist 116849, -- Life Cocoon 115151, -- Renewing Mist } auras.onlyShowPresent = true auras.presentAlpha = 1 auras.PostCreateIcon = func.createAuraIcon -- Set any other AuraWatch settings auras.icons = {} local columns = 2 local xGrowth = 19 local yGrowth = -20 local parentAnchorPoint = "TOPRIGHT" local iconAnchorPoint = "TOPRIGHT" for i, sid in pairs(spellIDs) do local icon = CreateFrame("Frame", nil, self) icon:SetFrameStrata("TOOLTIP") 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 --call aurawatch self.AuraWatch = auras end end If that could be fixed, it would be nice. Also, how would I add more classes to that? if I simply add a second if/then/else function, wether outside of the first, or in the else section of the first, it breats the entire oUF addon. |
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
12-13-14, 11:34 PM | |
|
Re: Re: Re: Raid - Icon Frame Level
Sure go ahead. Glad it's working!
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
12-13-14, 07:06 PM | ||
|
Re: Re: Raid - Icon Frame Level
*facepalm* Working perfectly now. Thanks!!! <3 With your permission I'll forward some of these changes to the developer of ouf_Diablo so he can integrate them if he sees fit. |
|
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
12-13-14, 05:16 PM | |
|
Re: Raid - Icon Frame Level
Oops sorry! I gave you the wrong function. It should be
Lua Code:
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
12-11-14, 12:36 PM | |
|
Raid - Icon Frame Level
Ok, after trying the
Code:
icon:SetFrameLevel("TOOLTIP") Here is the snippet of code from the raid.lua file in the ouf_Diablo folder. It controls everything for the aurawatch relating to raid frames. Code:
--create aura watch func local createAuraWatch = function(self) if cfg.playerclass == "PRIEST" then local auras = {} local spellIDs = { 139, -- Renew } else local auras = {} local spellIDs = { 148039, -- Sacred Shield 53563, -- Beacon of Light 157007, -- Beacon of Insight 86273, -- Illuminated Healing 6940, -- Hand of Sacrifice 114039, -- Hand of Purity 156910, -- Beacon of Faith } local dir = { [1] = {size = 15, pos = "CENTER", x = 0, y = 3 }, [2] = {size = 15, pos = "CENTER", x = 15, y = 3 }, [5] = {size = 15, pos = "CENTER", x = -15, y = 3 }, [4] = {size = 15, pos = "CENTER", x = 30, y = 3 }, [3] = {size = 15, pos = "CENTER", x = -30, y = 3 }, [6] = {size = 15, pos = "CENTER", x = -30, y = 3 }, [7] = {size = 15, pos = "CENTER", x = 15, y = 3 }, } auras.onlyShowPresent = true auras.presentAlpha = 1 auras.PostCreateIcon = function(self, icon, sid) if icon.cd then icon.cd:SetPoint("TOPLEFT", 1, -1) icon.cd:SetPoint("BOTTOMRIGHT", -1, 1) end --count hack for lifebloom if sid == 33763 and icon.count then icon.count:SetFont("Interface\\AddOns\\oUF_Diablo\\media\\visitor1.ttf",8,"THINOUTLINE, MONOCHROME") icon.count:ClearAllPoints() icon.count:SetPoint("CENTER", 3, 3) icon.count:SetParent(icon.cd) end end -- Set any other AuraWatch settings auras.icons = {} for i, sid in pairs(spellIDs) do local icon = CreateFrame("Frame", nil, self) icon.spellID = sid -- set the dimensions and positions icon.size = dir[i].size icon:SetSize(dir[i].size,dir[i].size) --position icon icon:SetPoint(dir[i].pos, self, dir[i].pos, dir[i].x, dir[i].y) --make indicator if dir[i].indicator then local tex = icon:CreateTexture(nil, "OVERLAY") tex:SetAllPoints(icon) tex:SetTexture("Interface\\AddOns\\oUF_Diablo\\media\\indicator") tex:SetVertexColor(dir[i].color.r,dir[i].color.g,dir[i].color.b) icon.icon = tex end auras.icons[sid] = icon -- Set any other AuraWatch icon settings end --call aurawatch self.AuraWatch = auras end end Code:
Message: Interface\AddOns\oUF_Diablo\units\raid.lua:164: Usage: <unnamed>:SetFrameLevel(level) Time: 12/11/14 10:33:18 Count: 8 Stack: [C]: ? [C]: ? Interface\FrameXML\RestrictedFrames.lua:604: in function <Interface\FrameXML\RestrictedFrames.lua:603> Interface\FrameXML\RestrictedFrames.lua:742: in function `CallMethod' [string " local header = self:GetParent()..."]:52: in function <[string " local header = self:GetParent()..."]:1> (tail call): ? [C]: ? Interface\FrameXML\RestrictedExecution.lua:441: in function <Interface\FrameXML\RestrictedExecution.lua:412> Interface\FrameXML\SecureGroupHeaders.lua:116: in function <Interface\FrameXML\SecureGroupHeaders.lua:110> Interface\FrameXML\SecureGroupHeaders.lua:166: in function <Interface\FrameXML\SecureGroupHeaders.lua:123> Interface\FrameXML\SecureGroupHeaders.lua:488: in function <Interface\FrameXML\SecureGroupHeaders.lua:387> [C]: in function `Show' Interface\FrameXML\SecureStateDriver.lua:100: in function <Interface\FrameXML\SecureStateDriver.lua:95> Interface\FrameXML\SecureStateDriver.lua:164: in function <Interface\FrameXML\SecureStateDriver.lua:146> [C]: in function `SetAttribute' Interface\FrameXML\SecureStateDriver.lua:11: in function `RegisterAttributeDriver' Interface\AddOns\oUF\ouf.lua:530: in function `SpawnHeader' Interface\AddOns\oUF_Diablo\units\raid.lua:426: in main chunk Locals: |
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
12-10-14, 04:16 PM | ||
|
If I have any other problems I'll let you know, but that seems to be it for now!! |
|
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |
12-09-14, 06:30 PM | |
|
Glad it's working!
To move the icons up, change Lua Code:
to Lua Code:
just replace x with some number until it's in the right place. To change to the tooltip layer, after Lua Code:
add Lua Code:
That should do it!
__________________
- Astromech |
|
Astromech |
View Public Profile |
Send a private message to Astromech |
Find More Posts by Astromech |
Add Astromech to Your Buddy List |
12-08-14, 08:48 AM | ||
|
Ok now I have 2 more quick questions. In the above segment, how, other than the "TOPRIGHT" , can I position the icon start point? They are alittle lower than I'd like. I want to move the icons up to about halfway to the top of the players portrait. Note: I changed the iconAnchorPoint to TOPRIGHT as TOPLEFT for some reason has it too close to the next players frame, and the edge of the icons overlapped the other players frame. Also, I changed the column limit from 4 to 2. Second question relates to the Raid Frames, tho i'm sure it's a universal setting somewhere, I need to make the icons be on the "TOOLTIP" frame layer, the reason is to make one of the icons I position on the raid frames be ontop of the healthbar, as it is the main one I'd like to be able to easily track. The other 4 icons i'm tracking on raid frames aren't as important.
Last edited by Joker119 : 12-08-14 at 08:59 AM.
|
|
|
Joker119 |
View Public Profile |
Send a private message to Joker119 |
Find More Posts by Joker119 |
Add Joker119 to Your Buddy List |