-- 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)) |