From ecbccbaeda4a35778d0469ee1ca025e0fb54d401 Mon Sep 17 00:00:00 2001 From: "Cameron Weaver (Clutch)" Date: Wed, 27 Sep 2017 15:00:54 -0400 Subject: [PATCH] thirdparty: add flightmap integration --- api/config.lua | 1 + env/translations_deDE.lua | 1 + env/translations_enUS.lua | 1 + env/translations_esES.lua | 1 + env/translations_frFR.lua | 1 + env/translations_koKR.lua | 1 + env/translations_ruRU.lua | 1 + env/translations_zhCN.lua | 1 + env/translations_zhTW.lua | 1 + modules/gui.lua | 1 + modules/thirdparty.lua | 15 +++++++++++++++ 11 files changed, 25 insertions(+) diff --git a/api/config.lua b/api/config.lua index 21a1cf6d..cfad74ca 100644 --- a/api/config.lua +++ b/api/config.lua @@ -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) diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 85364da5..af442a47 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -173,6 +173,7 @@ pfUI_translation["deDE"] = { ["Exp"] = nil, ["Fast"] = nil, ["Firstrun"] = nil, + ["FlightMap"] = nil, ["Focus"] = nil, ["Forward all whispers to:"] = nil, ["fps"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index 4047d8e0..b8cda70d 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -173,6 +173,7 @@ pfUI_translation["enUS"] = { ["Exp"] = nil, ["Fast"] = nil, ["Firstrun"] = nil, + ["FlightMap"] = nil, ["Focus"] = nil, ["Forward all whispers to:"] = nil, ["fps"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index 8aa8c41d..6d8ee525 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -173,6 +173,7 @@ pfUI_translation["esES"] = { ["Exp"] = nil, ["Fast"] = nil, ["Firstrun"] = nil, + ["FlightMap"] = nil, ["Focus"] = nil, ["Forward all whispers to:"] = nil, ["fps"] = nil, diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 07dce9ed..646ff441 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -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, diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index 90e50d87..0f3568ff 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -173,6 +173,7 @@ pfUI_translation["koKR"] = { ["Experience"] = "경험치", ["Fast"] = "빠르게", ["Firstrun"] = "첫번째 단계", + ["FlightMap"] = nil, ["Focus"] = "주시대상", ["Forward all whispers to:"] = "모든 귓속말을 다음으로 전달:", ["fps"] = "프레임", diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index 8c7961b7..7a219f57 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -173,6 +173,7 @@ pfUI_translation["ruRU"] = { ["Exp"] = "Опыт", ["Fast"] = "Быстро", ["Firstrun"] = "Первый запуск", + ["FlightMap"] = nil, ["Focus"] = "Фокус", ["Forward all whispers to:"] = "Направить все шепоты на:", ["fps"] = nil, diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index b20d84e2..5a70366a 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -173,6 +173,7 @@ pfUI_translation["zhCN"] = { ["Exp"] = "经验", ["Fast"] = "快速", ["Firstrun"] = "首次安装", + ["FlightMap"] = nil, ["Focus"] = "焦点目标", ["Forward all whispers to:"] = "转发密语至:", ["FPS & Ping"] = "帧数和延时", diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index c88f3cd0..df28cd6f 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -173,6 +173,7 @@ pfUI_translation["zhTW"] = { ["Exp"] = "經驗", ["Fast"] = "快速", ["Firstrun"] = "首次安裝", + ["FlightMap"] = nil, ["Focus"] = "焦點目標", ["Forward all whispers to:"] = "轉發密語至:", ["FPS & Ping"] = "幀數和延時", diff --git a/modules/gui.lua b/modules/gui.lua index 8b8eea9c..0bbbfd82 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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) diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua index e5636017..3834b33d 100644 --- a/modules/thirdparty.lua +++ b/modules/thirdparty.lua @@ -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)