git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7ed5dd
)
16fffe0 - Add stack counter to TellMeWhen component
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Tue, 6 Feb 2018 02:13:58 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Tue, 6 Feb 2018 02:13:58 +0000
OmaAB/TellMeWhen.lua
patch
|
blob
|
history
diff --git
a/OmaAB/TellMeWhen.lua
b/OmaAB/TellMeWhen.lua
index
329589e
..
05d2c0d
100644
(file)
--- a/
OmaAB/TellMeWhen.lua
+++ b/
OmaAB/TellMeWhen.lua
@@
-77,9
+77,9
@@
local settings = {
{
unit = "player",
auras = {
{
unit = "player",
auras = {
- "
Necrotic Embrace", "Flametouched", "Shadowtouched", "Blazing Eruption
",
- "
Shattering Scream", "Consuming Hunger", "Unstable Soul", "Time Bomb
",
- "Broken Shard",
+ "
Entropic Blast", "Necrotic Embrace", "Flametouched", "Shadowtouched
",
+ "
Blazing Eruption", "Shattering Scream", "Consuming Hunger", "Unstable Soul
",
+ "
Time Bomb", "
Broken Shard",
},
auraFilter = "HARMFUL",
x = 660,
},
auraFilter = "HARMFUL",
x = 660,
@@
-107,6
+107,12
@@
local function updateAuraFrame(frame)
for _, aura in pairs(frame.auras) do
name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter);
if name then
for _, aura in pairs(frame.auras) do
name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter);
if name then
+ if count > 0 then
+ frame.stack:SetText(count);
+ frame.stack:Show();
+ else
+ frame.stack:Hide();
+ end
if expires > 0 then
frame.cd:SetCooldown(expires - duration, duration);
frame.cd:Show();
if expires > 0 then
frame.cd:SetCooldown(expires - duration, duration);
frame.cd:Show();
@@
-152,10
+158,12
@@
local function createTMW(name, config, parent)
frame.auraFilter = config.auraFilter;
frame.totems = config.totems;
frame:Hide();
frame.auraFilter = config.auraFilter;
frame.totems = config.totems;
frame:Hide();
- -- TODO a background, like Masque
, stack count
+ -- TODO a background, like Masque
frame.icon = frame:CreateTexture(nil, "ARTWORK");
frame.icon:SetAllPoints();
frame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93);
frame.icon = frame:CreateTexture(nil, "ARTWORK");
frame.icon:SetAllPoints();
frame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93);
+ frame.stack = frame:CreateFontString(nil, "OVERLAY", "GameFontHighlightHuge"); -- TODO change to number font
+ frame.stack:SetPoint("TOPLEFT");
frame.cd = CreateFrame("Cooldown", name.."CD", frame, "CooldownFrameTemplate");
frame.cd:SetReverse(true);
frame.cd:SetAllPoints();
frame.cd = CreateFrame("Cooldown", name.."CD", frame, "CooldownFrameTemplate");
frame.cd:SetReverse(true);
frame.cd:SetAllPoints();