X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/c82178bdfc108f95b41c3d0ed88ffe26b834482f..7250c45be5f7f5842cec5e041b4a2ce281b904ac:/OmaTMW/TellMeWhen.lua diff --git a/OmaTMW/TellMeWhen.lua b/OmaTMW/TellMeWhen.lua index dfea0d5..a42b454 100644 --- a/OmaTMW/TellMeWhen.lua +++ b/OmaTMW/TellMeWhen.lua @@ -131,6 +131,36 @@ local chars = { height = 80, }, }, + ["Gilden"] = { + { + unit = "target", + auras = {"Shadow Word: Pain", "Purge the Wicked"}, + auraFilter = "PLAYER HARMFUL", + x = 660, + y = 440, + width = 60, + height = 60, + }, + { + unit = "player", + auras = {"Power Word: Fortitude"}, + auraFilter = "HELPFUL", + invert = true, + x = 720, + y = 440, + width = 60, + height = 60, + }, + { + unit = "player", + auras = {"Overcharge Mana"}, + auraFilter = "PLAYER HELPFUL", + x = 720, + y = 440, + width = 60, + height = 60, + }, + }, ["Gedren"] = { { totems = {1}, -- Efflorescence @@ -159,6 +189,55 @@ local chars = { width = 40, height = 40, }, + { + unit = "player", + auras = {"Unleash Life"}, + auraFilter = "PLAYER HELPFUL", + x = 740, + y = 440, + width = 40, + height = 40, + }, + }, + ["Gran"] = { + { + unit = "player", + auras = {"Tidal Waves"}, + auraFilter = "PLAYER HELPFUL", + x = 660, + y = 440, + width = 40, + height = 40, + }, + { + unit = "player", + auras = {"Healing Rain"}, + auraFilter = "PLAYER HELPFUL", + x = 700, + y = 440, + width = 40, + height = 40, + }, + { + unit = "player", + auras = {"Unleash Life"}, + auraFilter = "PLAYER HELPFUL", + x = 740, + y = 440, + width = 40, + height = 40, + }, + }, + ["Gedrin"] = { + { + unit = "pet", + auras = {"Frenzy"}, + auraFilter = "HELPFUL", + x = 660, + y = 440, + width = 40, + height = 40, + }, }, }, }; @@ -178,19 +257,33 @@ local chars = { local settings = { { unit = "player", - auras = {"Innervate"}, + auras = {"Innervate", "Gift of the Titans"}, auraFilter = "HELPFUL", x = 570, y = 440, width = 80, height = 80, }, + { + unit = "player", + auras = {"Ineffable Truth"}, + auraFilter = "HELPFUL", + x = 570, + y = 440, + width = 40, + height = 40, + }, { unit = "player", auras = { "Delusions", "Entropic Blast", "Necrotic Embrace", "Flametouched", "Shadowtouched", "Blazing Eruption", "Shattering Scream", "Consuming Hunger", "Unstable Soul", - "Time Bomb", "Broken Shard", "Demolished", "Fetid Rot", + "Time Bomb", "Broken Shard", "Demolished", "Fetid Rot", "Roiling Deceit", + "Putrid Blood", "Endemic Virus", "Lingering Infection", "Gigavolt Charge", + "Crackling Lightning", "Storm's Wail", "Death's Door", "Deathly Withering", + "Chilling Touch", "Volatile Charge", "Liquid Gold", "Drained Soul", "Evoke Anguish", + "Ancient Curse", "Corrosion", "Debilitating Spit", "Tasty Morsel", "Encroaching Shadows", + "Corrupted Existence", "Madness Bomb" }, auraFilter = "HARMFUL", x = 660, @@ -198,6 +291,17 @@ local settings = { width = 80, height = 80, }, + { + unit = "player", + auras = { + "Adaptive Membrane" + }, + auraFilter = "HARMFUL", + x = 660, + y = 780, + width = 160, + height = 160, + }, }; local frames = {}; @@ -221,7 +325,7 @@ local function updateAuraFrame(frame) name, icon, count, _, duration, expires = UnitAura(unit, i, auraFilter); if not name then break end -- possible improvement to add spellID as an option - if frame.auras[name] then + if frame.auras[name] and not frame.invert then if count > 1 then frame.stack:SetText(count); frame.stack:Show(); @@ -237,9 +341,17 @@ local function updateAuraFrame(frame) frame.icon:SetTexture(icon); frame:Show(); return; + elseif frame.auras[name] and frame.invert then + frame.icon:SetTexture(icon); + frame:Hide(); + return; end i = i + 1; end + if frame.invert then + frame:Show(); -- not functional without first hiding once to get SetTexture + return; + end end frame:Hide(); end @@ -286,6 +398,7 @@ local function createTMW(name, config, parent) end frame.auraFilter = config.auraFilter; frame.totems = config.totems; + frame.invert = config.invert; frame:Hide(); frame.base = frame:CreateTexture(nil, "BACKGROUND"); frame.base:SetAllPoints();