mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 05:20:49 +00:00
bags: replace functions in global space
This commit is contained in:
+5
-5
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user