mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 03:19:59 +00:00
thirdparty: add flightmap integration
This commit is contained in:
committed by
Shagu
parent
92de8e5ea4
commit
ecbccbaeda
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user