git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3f2b013 - Add pixel border to TellMeWhen icons
[wowui.git]
/
OmaAB
/
TellMeWhen.lua
diff --git
a/OmaAB/TellMeWhen.lua
b/OmaAB/TellMeWhen.lua
index
174507d
..
a43d22d
100644
(file)
--- a/
OmaAB/TellMeWhen.lua
+++ b/
OmaAB/TellMeWhen.lua
@@
-158,11
+158,14
@@
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
+ frame.base = frame:CreateTexture(nil, "BACKGROUND");
+ frame.base:SetAllPoints();
+ frame.base:SetColorTexture(0, 0, 0, 0.6);
frame.icon = frame:CreateTexture(nil, "ARTWORK");
frame.icon = frame:CreateTexture(nil, "ARTWORK");
- frame.icon:SetAllPoints();
+ frame.icon:SetPoint("TOPLEFT", frame.base, "TOPLEFT", 1, -1);
+ frame.icon:SetPoint("BOTTOMRIGHT", frame.base, "BOTTOMRIGHT", -1, 1);
frame.icon:SetTexCoord(0.07, 0.93, 0.07, 0.93);
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 = frame:CreateFontString(nil, "OVERLAY", "
NumberFontNormalLarge");
frame.stack:SetPoint("TOPLEFT");
frame.cd = CreateFrame("Cooldown", name.."CD", frame, "CooldownFrameTemplate");
frame.cd:SetReverse(true);
frame.stack:SetPoint("TOPLEFT");
frame.cd = CreateFrame("Cooldown", name.."CD", frame, "CooldownFrameTemplate");
frame.cd:SetReverse(true);
@@
-202,7
+205,6
@@
local function initialize()
end
end
end
end
--- TODO have healthstone icon for player separate from this
Indicators:RegisterEvent("UNIT_AURA");
Indicators:RegisterEvent("PLAYER_TARGET_CHANGED");
Indicators:RegisterEvent("PLAYER_TOTEM_UPDATE");
Indicators:RegisterEvent("UNIT_AURA");
Indicators:RegisterEvent("PLAYER_TARGET_CHANGED");
Indicators:RegisterEvent("PLAYER_TOTEM_UPDATE");