/branches
-- maybe this stuff gets garbage collected if InFlight isn't loadable |
if GetAddOnEnableState(UnitName("player"), "InFlight") == 2 then |
-- GLOBALS -> LOCAL |
local ipairs, pairs, strfind, strmatch = ipairs, pairs, strfind, strmatch |
local ipairs, strfind = ipairs, strfind |
-- LOCALIZATION |
local L = LibStub("AceLocale-3.0"):GetLocale("InFlight", true) |
end |
local source, destination |
for i, sz in ipairs(tsz) do |
for _, sz in ipairs(tsz) do |
if strfind(text, sz.find, 1, true) then |
source = sz.s |
destination = sz.d |
## Notes-zhCN: InFlight çè¼å ¥å¨ |
## Notes-zhTW: InFlight çè£è¼æ© |
## Author: TotalPackage |
## Version: 1.13.002 |
## Version: 1.13.003 |
## X-Category: Interface Enhancements |
end |
end |
Print(L["DefaultsUpdated"]) |
if debug then |
for faction, t in pairs(self.defaults.global) do |
local count = 0 |
for src, dt in pairs(t) do |
for dst, dtime in pairs(dt) do |
if dst ~= "name" then |
count = count + 1 |
end |
end |
end |
PrintD(faction, "|cff208020-|r", count, "|cff208020flghts|r") |
end |
end |
end |
-- Check every 2 weeks if there are new flight times that could be uploaded |
tb:HookScript("OnEnter", postTaxiNodeOnButtonEnter) |
tb.inflighted = true |
end |
if TaxiNodeGetType(i) == "CURRENT" then |
taxiSrc = ShortenName(TaxiNodeName(i)) |
end |
ownData = true |
end |
local InFlightVars = self.defaults.global |
for i, flightPaths in ipairs(updates) do |
for _, flightPaths in ipairs(updates) do |
-- Set updateExistingTimes to true to update and add new times (for updates based |
-- on the current default db) |
## Notes-zhCN: æ¨çèªçè·¯å¾çç¶ææ 计æ¶å¨ |
## Notes-zhTW: æ¨çèªçè·¯å¾ççæ æ¬è¨æå¨ |
## Author: TotalPackage |
## Version: 1.13.002 |
## Version: 1.13.003 |
## SavedVariables: InFlightDB |
## Dependencies: InFlight_Load |