actionbar: clean up bonus actionbar hooks

This commit is contained in:
shagu
2017-01-01 18:42:36 +01:00
parent f4b5c5c421
commit a9b1cc87c2
+3 -3
View File
@@ -13,9 +13,9 @@ pfUI:RegisterModule("actionbar", function ()
end end
function ShowBonusActionBar() 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 if pfBonusBar then pfBonusBar:Show() end
Hook_ShowBonusActionBar() Hook_HideBonusActionBar()
end end
if not Hook_HideBonusActionBar then if not Hook_HideBonusActionBar then
@@ -23,7 +23,7 @@ pfUI:RegisterModule("actionbar", function ()
end end
function HideBonusActionBar() 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 if pfBonusBar then pfBonusBar:Hide() end
Hook_HideBonusActionBar() Hook_HideBonusActionBar()
end end