thirdparty: add flightmap integration

This commit is contained in:
Cameron Weaver (Clutch)
2017-09-27 21:07:42 +02:00
committed by Shagu
parent 92de8e5ea4
commit ecbccbaeda
11 changed files with 25 additions and 0 deletions
+1
View File
@@ -1345,6 +1345,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["WIM"], C.thirdparty.wim, "enable", "checkbox")
CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox")
CreateConfig(this, T["CleanUp"], C.thirdparty.cleanup, "enable", "checkbox")
CreateConfig(this, T["FlightMap"], C.thirdparty.flightmap, "enable", "checkbox")
this.setup = true
end
end)
+15
View File
@@ -802,4 +802,19 @@ pfUI:RegisterModule("thirdparty", function ()
end)
end
end
do -- FlightMap Integration
if C.thirdparty.flightmap.enable == "0" then return end
if not FlightMapTimesFrame and not FlightMapTimesFrame and not FlightMapTimesText then return end
FlightMapTimesBorder:Hide()
FlightMapTimesFrame:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
FlightMapTimesFrame:SetHeight(18)
CreateBackdrop(FlightMapTimesFrame)
FlightMapTimesText:ClearAllPoints()
FlightMapTimesText:SetPoint("CENTER", FlightMapTimesFrame, "CENTER", 0, 0)
FlightMapTimesText:SetFont(pfUI.font_default, 12, "OUTLINE")
end
end)