bags: replace functions in global space

This commit is contained in:
shagu
2017-02-25 16:15:30 +01:00
parent 059eba3139
commit 1aac33841e
+5 -5
View File
@@ -5,7 +5,7 @@ pfUI:RegisterModule("bags", function ()
end end
-- overwrite some bag functions -- overwrite some bag functions
function OpenAllBags() function _G.OpenAllBags()
if pfUI.bag.right:IsShown() then if pfUI.bag.right:IsShown() then
pfUI.bag.right:Hide() pfUI.bag.right:Hide()
else else
@@ -13,11 +13,11 @@ pfUI:RegisterModule("bags", function ()
end end
end end
function CloseAllBags() function _G.CloseAllBags()
pfUI.bag.right:Hide() pfUI.bag.right:Hide()
end end
function ToggleBackpack() function _G.ToggleBackpack()
if pfUI.bag.right:IsShown() then if pfUI.bag.right:IsShown() then
pfUI.bag.right:Hide() pfUI.bag.right:Hide()
else else
@@ -25,7 +25,7 @@ pfUI:RegisterModule("bags", function ()
end end
end end
function OpenBackpack() function _G.OpenBackpack()
if ( pfUI.bag.right:IsShown() ) then if ( pfUI.bag.right:IsShown() ) then
ContainerFrame1.backpackWasOpen = 1 ContainerFrame1.backpackWasOpen = 1
return return
@@ -38,7 +38,7 @@ pfUI:RegisterModule("bags", function ()
end end
end end
function ToggleBag() function _G.ToggleBag()
return return
end end