WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/pandaria/Aloft/Aloft
    from Rev 2415 to Rev 2422
    Reverse comparison

Rev 2415 → Rev 2422

AloftCastBar.lua
556,8 → 556,9
-- ChatFrame7:AddMessage("AloftCastBar:Update(): casting " .. tostring(aloftData.name))
-- TODO: record the endTime, and check current time against it here
local minValue, value, maxValue, width = self:CalculateFrameWidth(aloftData, castFrame)
-- ChatFrame7:AddMessage("AloftCastBar:Update(): " .. tostring(aloftData.name) .. "/" .. tostring(minValue) .. "/" .. tostring(maxValue) .. "/" .. tostring(value) .. "/" .. tostring(width))
if (value >= minValue) and (value <= maxValue) then
-- ChatFrame7:AddMessage("AloftCastBar:Update(): width " .. tostring(aloftData.name) .. tostring(aloftData.name) .. "/" .. tostring(value) .. "/" .. tostring(width))
-- ChatFrame7:AddMessage("AloftCastBar:Update(): width " .. tostring(aloftData.name) .. "/" .. tostring(value) .. "/" .. tostring(width))
local castRegion = castFrame.castRegion
if width and width >= 0 and castRegion then
-- ChatFrame7:AddMessage("AloftCastBar:Update(): draw " .. tostring(aloftData.name) .. "/" .. tostring(value) .. "/" .. tostring(width))
571,7 → 572,7
 
if AloftCastBar:NeedsBorder(aloftData, noInterrupt) and self.db.profile.incremental then
-- frame delay to set the real width; hopefully avoids the "missing/malformed border" issue
self:ScheduleTimer(function(arg) AloftCastBar:DoShowCastFrame(arg) end, 0.0, width) -- one frame
self:ScheduleTimer(function(width) AloftCastBar:DoShowCastFrame(width) end, 0.0, width) -- one frame
else
self:DoShowCastFrame(width)
end