Category: Plug-Ins & Patches
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)

This file is a Addon for cargBags by Cargor. You must have that installed before this Addon will work.

Author:
Version:
1.3
Date:
07-18-2009 09:54 PM
Size:
4.14 Kb
Downloads:
2,591
Favorites:
59
MD5:
Pictures
Click to enlarge
Captain Placeholder! Yarr!
cargBags Anywhere (Handler)
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 (:
  Change Log - cargBags Anywhere (Handler)
cargBags_Anywhere Changelog
1.3
- following the core changes of cargBags 1.3

1.1
- rewritten LoadItemInfo to support cargBags 1.1

1.0.4
- and now it actually works :/

1.0.3
- new pipe function: handler.GetContainerItemLink(bagID, slotID)
- new pipe function: handler.GetContainerItemInfo(bagID, slotID)

1.0.2
- fixed bank not saving

1.0.1
- fixed error occuring on splitting stacks in the bank frame
- new function: handler:GetPlayer(realm, player, database)
- new callback function: handler:PostSetPlayer(realm, player, database)
  Archived Versions - cargBags Anywhere (Handler)
File Name
Version
Size
Author
Date
1.1
4kB
Cargor
06-25-2009 01:27 PM
1.0.4
4kB
Cargor
06-01-2009 07:35 AM
1.0.3
4kB
Cargor
06-01-2009 07:13 AM
1.0.2
8kB
Cargor
05-20-2009 12:13 PM
  Comments - cargBags Anywhere (Handler)
Post A Reply Comment Options
Old 07-02-2009, 03:52 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Short answer: Planned and working on it, but requires a bit more time
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-02-2009, 03:13 PM  
kellewic
A Defias Bandit
 
kellewic's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 2
File comments: 110
Uploads: 2
Additional feature

One thing I would love to see added and I know many mods already do this, but if someone is using Carg_Anywhere, I'd love to see some lines on item tooltips that says which characters have the item, how many they have, and where the item is (bank, gb, bags, etc).

I think mods like Altoholic and ArkInventory do this if you wanted to see examples. You can kind of see it in this ArkInvetory screenshot (last tooltip line)

http://s.wowinterface.com/preview/pvw12846.jpg

I am assuming this mod already has the requisite data, just needs to modify the tooltip. A question I do have is how would it be possible for mods that use CargBags to also access this functionality (I use CargBags_Nivaya)?
__________________
Kellewic - 80 Warlock - Ghostlands

Last edited by kellewic : 07-02-2009 at 03:16 PM.
kellewic is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-13-2009, 07:49 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Oh well, yeah it's my fault - forgot to push out the latest cargBags core
It was only one line that needed to be changed :/

Doing it in a few minutes.

EDIT: Just for the info, it is included in cargBags 1.0.3.
__________________
« Homepage | Git »

My blog is finally getting english!

Last edited by Cargor : 05-14-2009 at 10:15 AM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-13-2009, 07:38 AM  
Soeters
A Theradrim Guardian
 
Soeters's Avatar
Interface Author - Click to view interfaces

Forum posts: 63
File comments: 77
Uploads: 19
Error

Now whenever I log in I got this error

Code:
[13:33:25] Interface\AddOns\cargBags_Anywhere\core.lua:99: attempt to index upvalue 'curr' (a nil value)
[C]: ?
Interface\AddOns\cargBags_Anywhere\core.lua:99: in function `GetContainerNumSlots'
Interface\AddOns\cargBags\core.lua:290: in function <Interface\AddOns\cargBags\core.lua:286>
Interface\AddOns\cargBags\core.lua:402: in function `UpdateBags'
Interface\AddOns\cargBags\core.lua:106: in function `SetActiveHandler'
Interface\AddOns\cargBags_Gnomed\layout.lua:649: in main chunk
(My line 649 is cargBags:SetActiveHandler("Anywhere"))

But I don't what this error does since I'm seeing no visible error
__________________
Soeters is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.