/branches
local Print, PrintD = InFlight.Print, InFlight.PrintD |
local vars, db -- addon databases |
local taxiSrc, taxiSrcName, taxiDst, taxiDstName, endTime -- location data |
local porttaken, takeoff, inworld, ontaxi -- flags |
local porttaken, takeoff, inworld, outworld, ontaxi -- flags |
local ratio, endText = 0, "??" -- cache variables |
local sb, spark, timeText, locText, bord -- frame elements |
local totalTime, startTime, elapsed, throt = 0, 0, 0, 0 -- throttle vars |
return |
end |
if ontaxi and not inworld then |
return |
end |
if not UnitOnTaxi("player") then -- event bug fix |
ontaxi = nil |
end |
function self:PLAYER_LEAVING_WORLD() |
PrintD('PLAYER_LEAVING_WORLD') |
inworld = nil |
outworld = GetTime() |
end |
function self:PLAYER_ENTERING_WORLD() |
PrintD('PLAYER_ENTERING_WORLD') |
inworld = true |
if outworld then |
startTime = startTime - (outworld - GetTime()) |
end |
outworld = nil |
end |
function self:PLAYER_CONTROL_GAINED() |