thirdparty: add flightmap integration

This commit is contained in:
Cameron Weaver (Clutch)
2017-09-27 15:00:54 -04:00
committed by Shagu
parent 92de8e5ea4
commit ecbccbaeda
11 changed files with 25 additions and 0 deletions
+1
View File
@@ -507,6 +507,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("thirdparty", "wim", "enable", "1")
pfUI:UpdateConfig("thirdparty", "healcomm", "enable", "1")
pfUI:UpdateConfig("thirdparty", "cleanup", "enable", "1")
pfUI:UpdateConfig("thirdparty", "flightmap", "enable", "1")
pfUI:UpdateConfig("position", nil, nil, nil)
pfUI:UpdateConfig("disabled", nil, nil, nil)
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["deDE"] = {
["Exp"] = nil,
["Fast"] = nil,
["Firstrun"] = nil,
["FlightMap"] = nil,
["Focus"] = nil,
["Forward all whispers to:"] = nil,
["fps"] = nil,
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["enUS"] = {
["Exp"] = nil,
["Fast"] = nil,
["Firstrun"] = nil,
["FlightMap"] = nil,
["Focus"] = nil,
["Forward all whispers to:"] = nil,
["fps"] = nil,
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["esES"] = {
["Exp"] = nil,
["Fast"] = nil,
["Firstrun"] = nil,
["FlightMap"] = nil,
["Focus"] = nil,
["Forward all whispers to:"] = nil,
["fps"] = nil,
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["frFR"] = {
["Exp"] = nil,
["Fast"] = "Rapide",
["Firstrun"] = "Premier lancement",
["FlightMap"] = nil,
["Focus"] = "Focalisation",
["Forward all whispers to:"] = "Transférer tout les whisp à:",
["fps"] = nil,
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["koKR"] = {
["Experience"] = "경험치",
["Fast"] = "빠르게",
["Firstrun"] = "첫번째 단계",
["FlightMap"] = nil,
["Focus"] = "주시대상",
["Forward all whispers to:"] = "모든 귓속말을 다음으로 전달:",
["fps"] = "프레임",
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["ruRU"] = {
["Exp"] = "Опыт",
["Fast"] = "Быстро",
["Firstrun"] = "Первый запуск",
["FlightMap"] = nil,
["Focus"] = "Фокус",
["Forward all whispers to:"] = "Направить все шепоты на:",
["fps"] = nil,
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["zhCN"] = {
["Exp"] = "经验",
["Fast"] = "快速",
["Firstrun"] = "首次安装",
["FlightMap"] = nil,
["Focus"] = "焦点目标",
["Forward all whispers to:"] = "转发密语至:",
["FPS & Ping"] = "帧数和延时",
+1
View File
@@ -173,6 +173,7 @@ pfUI_translation["zhTW"] = {
["Exp"] = "經驗",
["Fast"] = "快速",
["Firstrun"] = "首次安裝",
["FlightMap"] = nil,
["Focus"] = "焦點目標",
["Forward all whispers to:"] = "轉發密語至:",
["FPS & Ping"] = "幀數和延時",
+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)