From a9b1cc87c215dd50b470764e58cb429dd7c03e89 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 1 Jan 2017 18:29:38 +0100 Subject: [PATCH] actionbar: clean up bonus actionbar hooks --- modules/actionbar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 0427e134..0ec0e9f9 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -13,9 +13,9 @@ pfUI:RegisterModule("actionbar", function () end function ShowBonusActionBar() - for i=1, NUM_ACTIONBAR_BUTTONS do getglobal("ActionButton" .. i):Hide() end + if pfActionBar then pfActionBar:Hide() end if pfBonusBar then pfBonusBar:Show() end - Hook_ShowBonusActionBar() + Hook_HideBonusActionBar() end if not Hook_HideBonusActionBar then @@ -23,7 +23,7 @@ pfUI:RegisterModule("actionbar", function () end function HideBonusActionBar() - for i=1, NUM_ACTIONBAR_BUTTONS do getglobal("ActionButton" .. i):Show() end + if pfActionBar then pfActionBar:Show() end if pfBonusBar then pfBonusBar:Hide() end Hook_HideBonusActionBar() end