Download
(4 Kb)
Download
Updated: 07-18-09 07:54 PM
Addon for:
cargBags.
Pictures
File Info
Updated:07-18-09 07:54 PM
Created:05-12-09 11:53 AM
Downloads:5,180
Favorites:50
MD5:
cargBags Anywhere (Handler)  Popular! (More than 5000 hits)
Version: 1.3
by: Cargor [More]
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 (:
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 Files (4)
File Name
Version
Size
Author
Date
1.1
4kB
Cargor
06-25-09 11:27 AM
1.0.4
4kB
Cargor
06-01-09 05:35 AM
1.0.3
4kB
Cargor
06-01-09 05:13 AM
1.0.2
8kB
Cargor
05-20-09 10:13 AM


Post A Reply Comment Options
Unread 10-19-10, 12:36 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
=/
__________________
« Website | GitHub »

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Unread 10-18-10, 07:40 PM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 264
Uploads: 5
We beg for update…
__________________
Proud author of IntricateChatMods, Wanderlust and SimplerMount.
ichik is offline Report comment to moderator  
Reply With Quote
Unread 10-12-10, 02:00 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
Sorry, not at the moment :/
Are you sure you can't get away with something like BagSync?

Believe me if I say that I'd really like to provide Anywhere-bags / support for other data sources, but it's a lot more complicated to handle in a bag framework than just a bag addon.
You see, as a framework author, I have to make sure it fits every layout, so I won't know where to draw the line. If I start saving bag data for other characters, someone would like to see equipments sets as well (because they filter them in their inventory). Or money. Or currencies. And then other people argue that they don't need it and want to get back to the 'light' cargBags.

Well, I could go on and on, but the bottom line is: I work on Anywhere-bags again if I find a good solution for all its problems - until then, people are free to contribute to cargBags and layout authors could try to implement Anywhere-bags by themselves (though I admit it's not easy)
__________________
« Website | GitHub »

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Unread 10-12-10, 01:25 PM  
zedbg
A Kobold Labourer

Forum posts: 0
File comments: 42
Uploads: 0
Pretty please update that great addon, i dont want to use other bag mod but i need to see my other char bags and bank.
zedbg is offline Report comment to moderator  
Reply With Quote
Unread 02-18-10, 12:37 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
Uhm well, there were a lot of problems in the latest development of cargBags, so I'm discontinuing the addon and start anew. You can find more details on the comments page of cargBags.
__________________
« Website | GitHub »

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Unread 02-18-10, 09:41 AM  
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view AddOns

Forum posts: 384
File comments: 152
Uploads: 3
Originally posted by Cargor
Short answer: Planned and working on it, but requires a bit more time
Still working on it?
__________________

sacrife is offline Report comment to moderator  
Reply With Quote
Unread 07-02-09, 01:52 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
Short answer: Planned and working on it, but requires a bit more time
__________________
« Website | GitHub »

Oh hai!
xConStruct is offline Report comment to moderator  
Reply With Quote
Unread 07-02-09, 01:13 PM  
kellewic
A Defias Bandit
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 128
Uploads: 3
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-09 at 01:16 PM.
kellewic is offline Report comment to moderator  
Reply With Quote
Unread 05-13-09, 05:49 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 376
Uploads: 20
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.
__________________
« Website | GitHub »

Oh hai!
Last edited by xConStruct : 05-14-09 at 08:15 AM.
xConStruct is offline Report comment to moderator  
Reply With Quote
Unread 05-13-09, 05:38 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 21
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  
Reply With Quote
Post A Reply



Category Jump: