cooldown: add option to hide foreign animations

This commit is contained in:
shagu
2020-10-04 18:56:28 +02:00
parent 32dd17fa68
commit 2d78824d06
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -148,6 +148,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("appearance", "cd", "blizzard", "1")
pfUI:UpdateConfig("appearance", "cd", "foreign", "0")
pfUI:UpdateConfig("appearance", "cd", "milliseconds", "1")
pfUI:UpdateConfig("appearance", "cd", "hideanim", "0")
pfUI:UpdateConfig("appearance", "castbar", "castbarcolor", ".7,.7,.9,.8")
pfUI:UpdateConfig("appearance", "castbar", "channelcolor", ".9,.9,.7,.8")
pfUI:UpdateConfig("appearance", "castbar", "texture", "Interface\\AddOns\\pfUI\\img\\bar")
+2 -2
View File
@@ -81,8 +81,8 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
-- hide animation
if this.pfCooldownStyleAnimation == 0 then
this:SetAlpha(0)
else
this:SetAlpha(this:GetParent():GetAlpha())
elseif not this.pfCooldownStyleAnimation and C.appearance.cd.hideanim == "1" then
this:SetAlpha(0)
end
-- print time as text on cooldown frames
+1
View File
@@ -1505,6 +1505,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Display Debuff Durations"], C.appearance.cd, "debuffs", "checkbox")
CreateConfig(nil, T["Enable Durations On Blizzard Frames"], C.appearance.cd, "blizzard", "checkbox")
CreateConfig(nil, T["Enable Durations On Foreign Frames"], C.appearance.cd, "foreign", "checkbox")
CreateConfig(nil, T["Hide Foreign Cooldown Animations"], C.appearance.cd, "hideanim", "checkbox")
end)
CreateGUIEntry(T["Settings"], T["Screenshot"], function()