panel: use existing bag functions

This commit is contained in:
shagu
2017-07-18 14:55:11 +02:00
parent c7da2aa8d0
commit 7bbd53c651
+2 -6
View File
@@ -255,7 +255,7 @@ pfUI:RegisterModule("panel", function ()
end
end
local freeslots = maxslots - usedslots
pfUI.panel:OutputPanel("bagspace", freeslots .. " (" .. usedslots .. "/" .. maxslots .. ")")
pfUI.panel:OutputPanel("bagspace", freeslots .. " (" .. usedslots .. "/" .. maxslots .. ")", nil, OpenAllBags)
end
-- Update "gold"
@@ -286,11 +286,7 @@ pfUI:RegisterModule("panel", function ()
GameTooltip:Show()
end
local click = function ()
OpenAllBags()
end
pfUI.panel:OutputPanel("gold", gold .. "|cffffd700g|r " .. silver .. "|cffc7c7cfs|r " .. copper .. "|cffeda55fc|r", tooltip, click)
pfUI.panel:OutputPanel("gold", gold .. "|cffffd700g|r " .. silver .. "|cffc7c7cfs|r " .. copper .. "|cffeda55fc|r", tooltip, OpenAllBags)
end
-- Update "friends"