actionbar: clean up bonus actionbar hooks

This commit is contained in:
shagu
2017-01-01 18:29:38 +01:00
parent f4b5c5c421
commit a9b1cc87c2
+3 -3
View File
@@ -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