/branches/Classic/InFlight
return etimes[#taxiNodes] |
end |
local function addDuration(time) |
if time > 0 then |
gtt:AddLine(L["Duration"]..FormatTime(time), 1, 1, 1) |
local function addDuration(flightTime, estimated) |
if flightTime > 0 then |
gtt:AddLine(L["Duration"]..(estimated and "~" or "")..FormatTime(flightTime), 1, 1, 1) |
else |
gtt:AddLine(L["Duration"].."-:--", 0.8, 0.8, 0.8) |
end |
return |
end |
addDuration(vars[taxiSrc] and vars[taxiSrc][ShortenName(TaxiNodeName(id))] or GetEstimatedTime(id) or 0) |
local duration = vars[taxiSrc] and vars[taxiSrc][ShortenName(TaxiNodeName(id))] |
if duration then |
addDuration(duration) |
else |
addDuration(GetEstimatedTime(id) or 0, true) |
end |
end |
---------------------------- |