git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
befb553 - Switch exp bar positions
[wowui.git]
/
OmaUF
/
CastBar.lua
diff --git
a/OmaUF/CastBar.lua
b/OmaUF/CastBar.lua
index
a8382fd
..
2d75e18
100644
(file)
--- a/
OmaUF/CastBar.lua
+++ b/
OmaUF/CastBar.lua
@@
-66,12
+66,12
@@
end
local function startCast(bar, unit, channeling)
local name, icon, startTime, endTime, noInterrupt, id;
if channeling then
local function startCast(bar, unit, channeling)
local name, icon, startTime, endTime, noInterrupt, id;
if channeling then
- name, _,
_,
icon, startTime, endTime, _, noInterrupt = UnitChannelInfo(unit);
+ name, _, icon, startTime, endTime, _, noInterrupt = UnitChannelInfo(unit);
if not startTime or not endTime then return nil end
bar.channeling = true;
bar.cast.color = channelingColor;
else
if not startTime or not endTime then return nil end
bar.channeling = true;
bar.cast.color = channelingColor;
else
- _,
_,
name, icon, startTime, endTime, _, _, noInterrupt, id = UnitCastingInfo(unit);
+ _, name, icon, startTime, endTime, _, _, noInterrupt, id = UnitCastingInfo(unit);
if not startTime or not endTime then return nil end
bar.channeling = nil;
bar.cast.color = castingColor;
if not startTime or not endTime then return nil end
bar.channeling = nil;
bar.cast.color = castingColor;
@@
-99,14
+99,13
@@
M.StartCast = startCast;
local function applyDelay(bar, unit, channeling)
local startTime, endTime;
if channeling then
local function applyDelay(bar, unit, channeling)
local startTime, endTime;
if channeling then
- _, _, _,
_,
startTime, endTime = UnitChannelInfo(unit);
+ _, _, _, startTime, endTime = UnitChannelInfo(unit);
else
else
- _, _, _,
_,
startTime, endTime = UnitCastingInfo(unit);
+ _, _, _, startTime, endTime = UnitCastingInfo(unit);
end
if not startTime or not endTime then return hideBar(bar) end
bar.startTime = startTime / 1000;
bar.endTime = endTime / 1000;
end
if not startTime or not endTime then return hideBar(bar) end
bar.startTime = startTime / 1000;
bar.endTime = endTime / 1000;
- -- TODO show delay text
end
M.ApplyDelay = applyDelay;
end
M.ApplyDelay = applyDelay;