cooldown: add option to draw on foreign addons

This commit is contained in:
shagu
2018-04-09 22:51:43 +02:00
parent 2d3814aaed
commit bc5a659470
11 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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)