From e0ddf850b36466a1f438c04caae509208fc492fc Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 6 Jun 2019 19:58:31 +0200 Subject: [PATCH] actionbar: use button highlight as keystate feedback --- modules/actionbar.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 7c2262c8..de1c8bcd 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -429,19 +429,19 @@ pfUI:RegisterModule("actionbar", 20400, function () local mouse = arg1 and not keystate local keystate = keystate + -- trigger action animation 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 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() - end - elseif keystate == "down" then - -- show highlight + end + + -- handle button highlight + if keystate == "down" then self.highlight:Show() + elseif not MouseIsOver(self) then + self.highlight:Hide() end end