From: Aleksi Blinnikka Date: Fri, 15 Nov 2019 22:36:06 +0000 (+0200) Subject: Add priest TMW X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/e5fe597d00767b4e804f55ef83299f2e3edb3b89?hp=063c9364f0dc3835596c1cf8024f7404679bad8a Add priest TMW --- diff --git a/OmaTMW/TellMeWhen.lua b/OmaTMW/TellMeWhen.lua index f625683..c4f9ed1 100644 --- a/OmaTMW/TellMeWhen.lua +++ b/OmaTMW/TellMeWhen.lua @@ -131,6 +131,27 @@ local chars = { height = 80, }, }, + ["Gilden"] = { + { + unit = "target", + auras = {"Shadow Word: Pain"}, + auraFilter = "PLAYER HARMFUL", + x = 660, + y = 440, + width = 60, + height = 60, + }, + { + unit = "player", + auras = {"Power Word: Fortitude"}, + auraFilter = "PLAYER HELPFUL", + invert = true, + x = 720, + y = 440, + width = 60, + height = 60, + }, + }, ["Gedren"] = { { totems = {1}, -- Efflorescence @@ -233,7 +254,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(); @@ -249,9 +270,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 @@ -298,6 +327,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();