mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
cooldown: add option to draw on foreign addons
This commit is contained in:
@@ -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")
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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",
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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"] = "Включить цвет здоровья",
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user