mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +00:00
actionbar: replace functions in global space
This commit is contained in:
@@ -5,13 +5,13 @@ pfUI:RegisterModule("actionbar", function ()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- override wow ui functions
|
-- override wow ui functions
|
||||||
function ActionButton_ShowGrid(button)
|
function _G.ActionButton_ShowGrid(button)
|
||||||
if not button then button = this end
|
if not button then button = this end
|
||||||
button.showgrid = button.showgrid + 1
|
button.showgrid = button.showgrid + 1
|
||||||
button:Show()
|
button:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
function ActionButton_HideGrid(button)
|
function _G.ActionButton_HideGrid(button)
|
||||||
if not button then button = this end
|
if not button then button = this end
|
||||||
button.showgrid = button.showgrid - 1
|
button.showgrid = button.showgrid - 1
|
||||||
|
|
||||||
@@ -20,14 +20,14 @@ pfUI:RegisterModule("actionbar", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function MultiActionBar_ShowAllGrids()
|
function _G.MultiActionBar_ShowAllGrids()
|
||||||
for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight",
|
for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight",
|
||||||
"MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do
|
"MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do
|
||||||
MultiActionBar_UpdateGrid(bar, 1)
|
MultiActionBar_UpdateGrid(bar, 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function MultiActionBar_HideAllGrids()
|
function _G.MultiActionBar_HideAllGrids()
|
||||||
for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight",
|
for _, bar in pairs({ "MultiBarBottomLeft", "MultiBarBottomRight",
|
||||||
"MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do
|
"MultiBarRight", "MultiBarLeft", "BonusAction", "Action" }) do
|
||||||
MultiActionBar_UpdateGrid(bar)
|
MultiActionBar_UpdateGrid(bar)
|
||||||
@@ -64,7 +64,7 @@ pfUI:RegisterModule("actionbar", function ()
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ActionButton_GetPagedID(button)
|
function _G.ActionButton_GetPagedID(button)
|
||||||
if ( button.isBonus and CURRENT_ACTIONBAR_PAGE == 1 ) then
|
if ( button.isBonus and CURRENT_ACTIONBAR_PAGE == 1 ) then
|
||||||
local offset = GetBonusBarOffset()
|
local offset = GetBonusBarOffset()
|
||||||
if ( offset == 0 and BonusActionBarFrame and BonusActionBarFrame.lastBonusBar ) then
|
if ( offset == 0 and BonusActionBarFrame and BonusActionBarFrame.lastBonusBar ) then
|
||||||
|
|||||||
Reference in New Issue
Block a user