NOTE: This is only for the old cargBags version 1.3 and below!
About
cargBags_Anywhere provides a handler for the bag framework cargBags. It stores all your bank/inventory data in a database, thus enabling you to view it from everywhere.
Now you can view all your different characters' inventory and bank from at any time! (if your layout supports it)
It also comes with a plugin that you can spawn which provides a dropdown-list for changing the display to another character on click.
Provide support in your layout
The following code checks if the Anywhere-handler is registered and then uses it by default.
Code:
if(cargBags.Handler["Anywhere"]) then
cargBags:SetActiveHandler("Anywhere")
end
And use this to let Anywhere spawn a button for switching characters. No checking if Anywhere exists is required, because SpawnPlugin would simply return nil when a plugin wasn't found:
Code:
local anywhere = self:SpawnPlugin("Anywhere")
As the (optional) second argument, you can provide an already created button-frame on which the OnClick() event toggles the dropdown.
Please note that accessing Blizz-inventory functions from within your layout will mostly break handlers different than Standard. Please circumvent that by using self:GetHandler().
BlizzInventoryFunction(...)
This is still a beta quality addon and can cause bugs! Please provide feedback (: