From 1d00a9297f07773a8ffd8bb6bf398b72209245eb Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 11 Apr 2019 20:16:28 +0200 Subject: [PATCH] actionbar: option to show animation on hidden bars --- api/config.lua | 1 + modules/actionbar.lua | 6 ++++-- modules/gui.lua | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/config.lua b/api/config.lua index 79cc7548..10301524 100644 --- a/api/config.lua +++ b/api/config.lua @@ -714,6 +714,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("bars", nil, "keydown", "0") pfUI:UpdateConfig("bars", nil, "altself", "0") pfUI:UpdateConfig("bars", nil, "animation", "zoomfade") + pfUI:UpdateConfig("bars", nil, "animalways", "0") pfUI:UpdateConfig("bars", nil, "hunterbar", "0") pfUI:UpdateConfig("bars", nil, "pagemaster", "0") pfUI:UpdateConfig("bars", nil, "showcastable", "1") diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 11c7d408..533596f0 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -424,8 +424,10 @@ pfUI:RegisterModule("actionbar", 20400, function () if ( pfUI_config.bars.keydown == "1" and keystate == "down" ) or (pfUI_config.bars.keydown == "0" and keystate == "up" ) or self.bar == 11 or mouse then -- trigger effect - self.animation.active = 0 - self.animation:Show() + if self:GetAlpha() > .1 or C.bars.animalways == "1" then + self.animation.active = 0 + self.animation:Show() + end -- clear highlight if not MouseIsOver(self) then self.highlight:Hide() diff --git a/modules/gui.lua b/modules/gui.lua index 624e176f..662dd1db 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1653,6 +1653,7 @@ pfUI:RegisterModule("gui", 20400, function () CreateConfig(U["bars"], T["Trigger Actions On Key Down"], C.bars, "keydown", "checkbox") CreateConfig(U["bars"], T["Alt Self Cast For All Hotkeys"], C.bars, "altself", "checkbox") CreateConfig(U["bars"], T["Button Animation"], C.bars, "animation", "dropdown", pfUI.gui.dropdowns.actionbuttonanimations) + CreateConfig(U["bars"], T["Show Animation On Hidden Bars"], C.bars, "animalways", "checkbox") CreateConfig(U["bars"], T["Highlight Equipped Items"], C.bars, "showequipped", "checkbox") CreateConfig(U["bars"], T["Equipped Item Color"], C.bars, "eqcolor", "color") CreateConfig(U["bars"], T["Highlight Out Of Range Spells"], C.bars, "glowrange", "checkbox")