From f07e5f87f66bdc00d0ab4f3dfaee846cc5842b09 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 23 Feb 2017 22:12:32 +0100 Subject: [PATCH] actionbar: replace functions in global space --- modules/actionbar.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index b65e4070..fe6742c9 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -5,13 +5,13 @@ pfUI:RegisterModule("actionbar", function () end -- override wow ui functions - function ActionButton_ShowGrid(button) + function _G.ActionButton_ShowGrid(button) if not button then button = this end button.showgrid = button.showgrid + 1 button:Show() end - function ActionButton_HideGrid(button) + function _G.ActionButton_HideGrid(button) if not button then button = this end button.showgrid = button.showgrid - 1 @@ -20,14 +20,14 @@ pfUI:RegisterModule("actionbar", function () end end - function MultiActionBar_ShowAllGrids() + function _G.MultiActionBar_ShowAllGrids() for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight", "MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do MultiActionBar_UpdateGrid(bar, 1) end end - function MultiActionBar_HideAllGrids() + function _G.MultiActionBar_HideAllGrids() for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight", "MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do MultiActionBar_UpdateGrid(bar) @@ -64,7 +64,7 @@ pfUI:RegisterModule("actionbar", function () end) end - function ActionButton_GetPagedID(button) + function _G.ActionButton_GetPagedID(button) if ( button.isBonus and CURRENT_ACTIONBAR_PAGE == 1 ) then local offset = GetBonusBarOffset() if ( offset == 0 and BonusActionBarFrame and BonusActionBarFrame.lastBonusBar ) then