A Warpwood Thunder Caller
Join Date: Apr 2010
Posts: 97
|
Cooldownspirale for HoT on Grid
Hi @all!
On LiveServer I use oUF_AuraWatch to display the various HoTs, debuffs and buffs from healer on the embed grid and the remaining time will be displayed with a cooldown spiral. In the beta I now have the problem that this cooldown spiral is no longer displayed. Currently I know that it is not due to the code I use for the display. The icon is displayed, so I know it works oUF_AuraWatch until the cooldown spiral. I have now been trying since yesterday to find out where the error is found and either I overlooked something or there is no error.
Link to oUF_AuraWatch
Display code:
Lua Code:
D.countOffsets = { TOPLEFT = {6, 1}, TOPRIGHT = {-6, 1}, BOTTOMLEFT = {6, 1}, BOTTOMRIGHT = {-6, 1}, LEFT = {6, 1}, RIGHT = {-6, 1}, TOP = {0, 0}, BOTTOM = {0, 0}, } D.CreateAuraWatchIcon = function(self, icon) icon:SetTemplate() icon.icon:Point("TOPLEFT", 1, -1) icon.icon:Point("BOTTOMRIGHT", -1, 1) icon.icon:SetTexCoord(.08, .92, .08, .92) icon.icon:SetDrawLayer("ARTWORK") if (icon.cd) then icon.cd:SetReverse() end icon.overlay:SetTexture() end D.createAuraWatch = function(self, unit) local auras = CreateFrame("Frame", nil, self) auras:SetPoint("TOPLEFT", self.Health, 2, -2) auras:SetPoint("BOTTOMRIGHT", self.Health, -2, 2) auras.presentAlpha = 1 auras.missingAlpha = 0 auras.hideCooldown = false auras.icons = {} auras.PostCreateIcon = D.CreateAuraWatchIcon local buffs = {} if D.buffids["ALL"] then for key, value in pairs(D.buffids["ALL"]) do tinsert(buffs, value) end end if (D.buffids[D.Class]) then for key, value in pairs(D.buffids[D.Class]) do tinsert(buffs, value) end end if (buffs) then for key, spell in pairs(buffs) do local icon = CreateFrame("Frame", nil, auras) icon.spellID = spell[1] icon.anyUnit = spell[5] icon:Width(6) icon:Height(6) icon:SetPoint(spell[2], unpack(spell[3])) local tex = icon:CreateTexture(nil, "OVERLAY") tex:SetAllPoints(icon) tex:SetTexture(C["media"].blank) if (spell[4]) then tex:SetVertexColor(unpack(spell[4])) else tex:SetVertexColor(.8, .8, .8) end local count = icon:CreateFontString(nil, "OVERLAY") count:SetFont(C["media"].font, 8, "THINOUTLINE") count:SetPoint("CENTER", unpack(D.countOffsets[spell[2]])) icon.count = count auras.icons[spell[1]] = icon end end self.AuraWatch = auras end if C["raid"].raidunitdebuffwatch == true then do D.buffids = { PRIEST = { {6788, "TOPRIGHT", {0, 0}, {1, 0, 0}, true}, -- Weakened Soul {33076, "BOTTOMRIGHT", {0, 0}, {.2, .7, .2}}, -- Prayer of Mending {139, "BOTTOMLEFT", {0, 0}, {.4, .7, .2}}, -- Renew {17, "TOPLEFT", {0, 0}, {.81, .85, .1}, true}, -- Power Word: Shield }, DRUID = { {774, "TOPLEFT", {0, 0}, {.8, .4, .8}}, -- Rejuvenation {162359, "TOPLEFT", {0, 0}, {.1, .3, .8}}, -- Genesis {155777, "TOPLEFT", {0, -8}, {.3, .3, .8}}, -- Germination {8936, "TOPRIGHT", {0, 0}, {.2, .8, .2}}, -- Regrowth {33763, "BOTTOMLEFT", {0, 0}, {.4, .8, .2}}, -- Lifebloom {48438, "BOTTOMRIGHT", {0, 0}, {.8, .4, 0}}, -- Wild Growth }, PALADIN = { {53563, "TOPRIGHT", {0, 0}, {.7, .3, .7}}, -- Beacon of Light {1022, "BOTTOMRIGHT", {0, 0}, {.2, .2, 1}, true}, -- Hand of Protection {1044, "BOTTOMRIGHT", {0, 0}, {.89, .45, 0}, true}, -- Hand of Freedom {1038, "BOTTOMRIGHT", {0, 0}, {.93, .75, 0}, true}, -- Hand of Salvation {6940, "BOTTOMRIGHT", {0, 0}, {.89, .1, .1}, true}, -- Hand of Sacrifice {114163, "BOTTOMLEFT", {0, 0}, {.89, .1, .1}, true}, -- Eternal Flame {20925, "TOPLEFT", {0, 0}, {.81, .85, .1}, true}, -- Sacred Shield }, SHAMAN = { {61295, "TOPLEFT", {0, 0}, {.7, .3, .7}}, -- Riptide {974, "BOTTOMRIGHT", {0, 0}, {.7, .4, 0}, true}, -- Earth Shield }, MONK = { {119611, "TOPLEFT", {0, 0}, {.8, .4, .8}}, --Renewing Mist {116849, "TOPRIGHT", {0, 0}, {.2, .8, .2}}, -- Life Cocoon {124682, "BOTTOMLEFT", {0, 0}, {.4, .8, .2}}, -- Enveloping Mist {124081, "BOTTOMRIGHT", {0, 0}, {.7, .4, 0}}, -- Zen Sphere }, ALL = { {14253, "RIGHT", {0, 0}, {0, 1, 0}}, -- Abolish Poison }, } end [Debufftable removed] end
If I forgot something or if you still need anything, just say modest and I submit the missing after.
Thanks in advance for all input
Last edited by liquidbase : 08-23-14 at 12:52 PM.
Reason: Clicking to fast on Send is bad
|