git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a4503db - Split frame creation away
[wowui.git]
/
OmaRF
/
Indicators.lua
diff --git
a/OmaRF/Indicators.lua
b/OmaRF/Indicators.lua
index
8dd2ba9
..
8a5882c
100644
(file)
--- a/
OmaRF/Indicators.lua
+++ b/
OmaRF/Indicators.lua
@@
-7,6
+7,9
@@
local UnitIsPlayer = UnitIsPlayer;
local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected;
local CTimerAfter = C_Timer.After;
local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected;
local CTimerAfter = C_Timer.After;
+local Frames = OmaFrames;
+local positions = Frames.Positions;
+
local watchedAuras = {
[53563] = "TOPRIGHT",
[156910] = "TOPRIGHT",
local watchedAuras = {
[53563] = "TOPRIGHT",
[156910] = "TOPRIGHT",
@@
-30,9
+33,11
@@
local majorAuras = {
local updaters = {};
local updating = {};
local updaters = {};
local updating = {};
-local positions = {"TOPRIGHT", "BOTTOMLEFT"};
local auraFilters = {"HELPFUL", "HARMFUL"};
local auraFilters = {"HELPFUL", "HARMFUL"};
+local M = {};
+OmaIndicators = M;
+
local function remaining(text, expires, current)
if expires == 0 then
text:SetText("");
local function remaining(text, expires, current)
if expires == 0 then
text:SetText("");
@@
-74,7
+79,7
@@
local function updateIndicators(frame, unit)
end
end
end
end
-function
Oma
CheckIndicators(frame, unit)
+function
M.
CheckIndicators(frame, unit)
for _, pos in pairs(positions) do
frame.inds[pos].expires = nil;
frame.inds[pos]:Hide();
for _, pos in pairs(positions) do
frame.inds[pos].expires = nil;
frame.inds[pos]:Hide();