From bc5a6594701966a9d04290227155e20ff07b26b0 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 9 Apr 2018 22:51:43 +0200 Subject: [PATCH] cooldown: add option to draw on foreign addons --- 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/cooldown.lua | 2 +- modules/gui.lua | 1 + 11 files changed, 11 insertions(+), 1 deletion(-) diff --git a/api/config.lua b/api/config.lua index 87099537..59c1545a 100644 --- a/api/config.lua +++ b/api/config.lua @@ -75,6 +75,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("appearance", "cd", "font_size", "12") pfUI:UpdateConfig("appearance", "cd", "debuffs", "1") pfUI:UpdateConfig("appearance", "cd", "blizzard", "1") + pfUI:UpdateConfig("appearance", "cd", "foreign", "0") pfUI:UpdateConfig("appearance", "castbar", "castbarcolor", ".7,.7,.9,.8") pfUI:UpdateConfig("appearance", "castbar", "channelcolor", ".9,.9,.7,.8") pfUI:UpdateConfig("appearance", "infight", "screen", "0") diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua index 2b34c72f..81aa3775 100644 --- a/env/translations_deDE.lua +++ b/env/translations_deDE.lua @@ -164,6 +164,7 @@ pfUI_translation["deDE"] = { ["Enable Debuff Indicators"] = nil, ["Enable Debuffs"] = nil, ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = nil, ["Enable Extended Guild Information"] = nil, ["Enable Health Color"] = nil, diff --git a/env/translations_enUS.lua b/env/translations_enUS.lua index 3c17f1d2..8ee0c0c0 100644 --- a/env/translations_enUS.lua +++ b/env/translations_enUS.lua @@ -164,6 +164,7 @@ pfUI_translation["enUS"] = { ["Enable Debuff Indicators"] = nil, ["Enable Debuffs"] = nil, ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = nil, ["Enable Extended Guild Information"] = nil, ["Enable Health Color"] = nil, diff --git a/env/translations_esES.lua b/env/translations_esES.lua index dd549b4d..b9a9e0a3 100644 --- a/env/translations_esES.lua +++ b/env/translations_esES.lua @@ -164,6 +164,7 @@ pfUI_translation["esES"] = { ["Enable Debuff Indicators"] = "Activar Indicador de Debuff", ["Enable Debuffs"] = "Activar Debuffs", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "Activar Tic de Energía", ["Enable Extended Guild Information"] = "Activar Información de Hermandad Extendida", ["Enable Health Color"] = "Activar Color de Salud", diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua index 2143735c..69b9a9ff 100644 --- a/env/translations_frFR.lua +++ b/env/translations_frFR.lua @@ -164,6 +164,7 @@ pfUI_translation["frFR"] = { ["Enable Debuff Indicators"] = "Activer l'indicateur des affaiblissements", ["Enable Debuffs"] = "Activer les affaiblissements", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "Activer la barre de rechargement d'énergie", ["Enable Extended Guild Information"] = "Activer les informations de guilde étendues", ["Enable Health Color"] = nil, diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua index 26d1ba38..9d40496c 100644 --- a/env/translations_koKR.lua +++ b/env/translations_koKR.lua @@ -164,6 +164,7 @@ pfUI_translation["koKR"] = { ["Enable Debuff Indicators"] = "디버프 표시기 활성화", ["Enable Debuffs"] = "디버프 활성화", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "Energy Ticks 활성화", ["Enable Extended Guild Information"] = "길드 정보 확장 사용", ["Enable Health Color"] = nil, diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua index 3f7c4baf..36b160d2 100644 --- a/env/translations_ruRU.lua +++ b/env/translations_ruRU.lua @@ -164,6 +164,7 @@ pfUI_translation["ruRU"] = { ["Enable Debuff Indicators"] = "Включить индикаторы дебаффов", ["Enable Debuffs"] = "Включить дебаффы", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "Включить восполнение энергии", ["Enable Extended Guild Information"] = "Включить расширенную информацию о гильдии", ["Enable Health Color"] = "Включить цвет здоровья", diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua index 90c0875f..06131121 100644 --- a/env/translations_zhCN.lua +++ b/env/translations_zhCN.lua @@ -164,6 +164,7 @@ pfUI_translation["zhCN"] = { ["Enable Debuff Indicators"] = "在头像框架上显示Debuff", ["Enable Debuffs"] = "显示Debuff", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "显示能量刻度", ["Enable Extended Guild Information"] = "公会信息扩展显示", ["Enable Health Color"] = nil, diff --git a/env/translations_zhTW.lua b/env/translations_zhTW.lua index bb27ba70..81740416 100644 --- a/env/translations_zhTW.lua +++ b/env/translations_zhTW.lua @@ -164,6 +164,7 @@ pfUI_translation["zhTW"] = { ["Enable Debuff Indicators"] = "在頭像框架上顯示Debuff", ["Enable Debuffs"] = "顯示Debuff", ["Enable Durations On Blizzard Frames"] = nil, + ["Enable Durations On Foreign Frames"] = nil, ["Enable Energy Ticks"] = "顯示能量刻度", ["Enable Extended Guild Information"] = "公會資訊擴展顯示", ["Enable Health Color"] = nil, diff --git a/modules/cooldown.lua b/modules/cooldown.lua index 5d62a6b8..62778d7c 100644 --- a/modules/cooldown.lua +++ b/modules/cooldown.lua @@ -47,7 +47,7 @@ pfUI:RegisterModule("cooldown", function () -- hook hooksecurefunc("CooldownFrame_SetTimer", function(this, start, duration, enable) -- abort on unknown frames - if not this.pfCooldownType then + if C.appearance.cd.foreign == "0" and not this.pfCooldownType then return end diff --git a/modules/gui.lua b/modules/gui.lua index 618be6e1..85f03872 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -740,6 +740,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, this, T["Cooldown Text Font Size"], C.appearance.cd, "font_size") CreateConfig(nil, this, T["Display Debuff Durations"], C.appearance.cd, "debuffs", "checkbox") CreateConfig(nil, this, T["Enable Durations On Blizzard Frames"], C.appearance.cd, "blizzard", "checkbox") + CreateConfig(nil, this, T["Enable Durations On Foreign Frames"], C.appearance.cd, "foreign", "checkbox") this.setup = true end end)