git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
978ee00 - Different health text and more text space in config
[wowui.git]
/
OmaRF
/
Indicators.lua
diff --git
a/OmaRF/Indicators.lua
b/OmaRF/Indicators.lua
index
f583eac
..
36d03cc
100644
(file)
--- a/
OmaRF/Indicators.lua
+++ b/
OmaRF/Indicators.lua
@@
-11,6
+11,7
@@
local paddings = {
};
local watchedAuras;
local majorAuras;
};
local watchedAuras;
local majorAuras;
+local majorMax;
local auraFilters = {"HELPFUL", "HARMFUL"};
local DEFAULT_ICON = "Interface\\AddOns\\OmaRF\\images\\rhomb";
local _;
local auraFilters = {"HELPFUL", "HARMFUL"};
local DEFAULT_ICON = "Interface\\AddOns\\OmaRF\\images\\rhomb";
local _;
@@
-114,16
+115,15
@@
local function updateIndicators(frame)
return;
end
return;
end
- local name, icon, count,
debuff,
expires, caster, id;
+ local name, icon, count, expires, caster, id;
local current = GetTime();
local majorI = 1;
local current = GetTime();
local majorI = 1;
- local majorMax = OmaRF.db.profile.majorAuras["max"];
for _, filter in ipairs(auraFilters) do
local i = 1;
while true do
for _, filter in ipairs(auraFilters) do
local i = 1;
while true do
- name, _, icon, count,
debuff
, _, expires, caster, _, _, id = UnitAura(unit, i, filter);
+ name, _, icon, count,
_
, _, expires, caster, _, _, id = UnitAura(unit, i, filter);
if not id then break end
if not id then break end
- local pos = watchedAuras[
name] or watchedAuras[id] or watchedAuras[debuff
];
+ local pos = watchedAuras[
id] or watchedAuras[name
];
if pos then
local ind = f[frameName][pos];
local config = OmaRF.db.profile.indicators[pos];
if pos then
local ind = f[frameName][pos];
local config = OmaRF.db.profile.indicators[pos];
@@
-145,7
+145,7
@@
local function updateIndicators(frame)
end
end
end
end
- if
majorI <= majorMax and (majorAuras[id] or majorAuras[name])
then
+ if
(majorAuras[id] or majorAuras[name]) and majorI <= majorMax
then
local ind = majorFrames[frameName][majorI];
ind.icon:SetTexture(icon);
ind.icon:Show();
local ind = majorFrames[frameName][majorI];
ind.icon:SetTexture(icon);
ind.icon:Show();
@@
-185,6
+185,7
@@
function OmaRF:RefreshConfig()
for _, aura in ipairs(self.db.profile.majorAuras["auras"]) do
majorAuras[aura] = true;
end
for _, aura in ipairs(self.db.profile.majorAuras["auras"]) do
majorAuras[aura] = true;
end
+ majorMax = OmaRF.db.profile.majorAuras["max"];
if next(watchedAuras) ~= nil or next(majorAuras) ~= nil then
self.running = true;
if next(watchedAuras) ~= nil or next(majorAuras) ~= nil then
self.running = true;