Download
(46Kb)
Download
Updated: 09-07-10 10:44 AM
Pictures
File Info
Updated:09-07-10 10:44 AM
Created:unknown
Downloads:70,778
Favorites:320
MD5:

cargBags  Popular! (More than 5000 hits)

Version: 2.1.2
by: Cargor [More]

Problems? Visit the Wiki or Help & Discussion Thread!

cargBags is a modular inventory framework. It was created with one simple thing in mind: Taking the boring work away for you, so that you can start right-away with the important things: Layout and categories! You don't have to care anymore about fetching item-data, updating at the right time or creating a sophisticated filtering system - cargBags does this all for you!

From a simple all-in-one inventory over multiple category-based bags to your own needs:

Just start with the user-friendly and commented example cargBags_Simplicity, build upon it and implement your own features. Create and release your own individual bag addon by embedding cargBags!

Default Features

  • modular: remove features you don't need or add new ones
  • simple, fully extensible filtering-system (optional)
  • object-oriented approach
  • embed cargBags and make your own bag addon!
  • extensive API: Hook into every part of cargBags
  • optimized: recycling of buttons, caching of item data and more
  • plugin-system for often-used snippets like a space- or money-display (optional)

Additional resources and help
FAQ

My cargBags doesn't show anything!
Do you have a layout? This is a framework and does nothing by itself!

Will you provide support for alt bags / bank?
No, because it would be too hackish and cause problems. You can use external addons like BagSync. But if you are a layout author, nothing stops you from providing support yourself.

What about auto-stacking / -sorting?
In my opinion, this does not need to be in a bag addon, because there are lots of external addons for this, like Genie or kRestack.

Guildbank? Stack compression?
I'm trying, but don't expect anything soon.

Do you support LibDataBroker?
You can use LibCargoShip for this.

cargBags is licensed under the GPL 2. Go ahead and fork it!

Changes to the core prior to version 1.2 are located in the changelog.txt.
Releases are normally not backwards-compatible, although changes are kept to a minimum!
In most cases the version tagging follows the scheme Rewrite.Feature.Bugfix.

2.1.2
* bank now updates correctly again (sorry for that!)
* mostly bagBar changes and equipSets bugfixes

- .HighlightFunction changed to .highlightFunction (small 'H', consistency FTW)
- bagBar now supports highlightFunctions
- bagBar can be global for all containers (.isGlobal = true)
- new function: Implementation:GetBagButton()
- fixed bagButton onClick not toggling its bag
- fixed typo in equipSets-itemkey
- equipSets now update all open bags when changed
- introducing cargBags:FireEvent(force, event, ...)

2.1.1
* bugfix update, you need this if you have 2.1!
* fixed searchbar, extended filters and bags-sieve

- item.bindOn now supports soulbound items ("soul")
- new itemKey: item.bagType
- removed item.clink
- .toc bumped to Cataclysm

2.1
* The wiki was updated!
* Improved embedding support
* Sieves! Replace the filters with another system
* Scaffolds! Provide your own templates for item buttons
* Extended filters: pass arguments to them!
* Localization tables for auction house item classes

- File structure overhaul
- new Sieve: by bagID - lightweight enthusiasts, get rid of this filter
clutter :P
- Moved the ItemButton-UpdateX functions to their own scaffold, "Default"
- Callbacks are now correctly named events (RegisterCallback -> RegisterEvent,
HasCallback -> IsEventRegistered)
- the SearchBar now needs a .HighlightFunction to work

2.0-beta
* COMPLETE REWRITE
* Don't ever think about fixing your old layout, build a new one =)
* Beta-version, please note the "Planned features"- / ToDo-List
* and please write a comment for bug-reports, feedback, thank-you's and flaming

- object-oriented approach
- bags initialize on first open instead of in loading screen
- new plugin: TagDisplay
- a lot more modular than before!

1.3
* licensed as GPL 3
* fixed background texture of empty bag buttons
* hovering over a bag button can now fade different bag objects
* fixed tooltip-parsing not working correctly
* and now the usual developer-stuff:

- BagBar new property: BagBar.BackgroundTexture - texture path if no icon was found
- new function: object:Fire(callback, ...) - fires a callback with the defined arguments
- new function cargBags.C2I(id) - translates a ContainerID into an InventoryID
- new function cargBags.I2C(id) - translates an InventoryID into a ContainerID
- function changed: cargBags.ParseBags(bagString or bagID or table) - now returns a table every time
- new property: cargBags.BagStrings[] - holds tables of the bagID's for the different bagStrings
- :PreCheckFilters() now also fires on :GetItemInfo()

1.2
* first tooltip-scanning code, if you have wishes for more parsed infos than bindOn,
* please let me know =)

- updated for 3.2
- fixed item.id not working properly
- new item data: item.bindOn - returns "equip", "pickup", "account", "quest", "use" or nil
- 3.2 only: new item data: item.stats - returns a table of all stats of the item (see GetItemStats() for info)
- 3.2 only: new item data: item.sellValue - returns the sellValue in copper of an item
- new plugin: DataBroker - displays a databroker-object, the addon cargoShip is needed for that
Optional Files (1)
File Name
Version
Size
Author
Date
Type
9.0 r93
104kB
01-28-21 04:12 AM
Addon


Post A Reply Comment Options
Unread 10-08-08, 09:36 AM  
masterbeef
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
i've been having a stange issue with the recent update. for some reason closing the bank window does't actually close it. right clicking on an item will still put it in the bank after i've closed the window. i have to actually move far enough away from the banker to actually close it. i noticed this when trying to change a stack of motes to primals. im also having the same issue as mizrolist with bag swapping. also just wanna say i love your mod thanks for taking the time to write and share it.
Report comment to moderator  
Reply With Quote
Unread 10-08-08, 06:22 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Oh, I'll check that.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 10-07-08, 12:31 PM  
mizrolist
A Deviate Faerie Dragon

Forum posts: 14
File comments: 49
Uploads: 0
I found something strange yesterday: I wanted to change one of my little bags to a greater one, but I can't do it to drag'n drop the bigger to the little... I picked up the big bag, and when I wanted to release it over the little to change them, I only turned off to show that bag.
Report comment to moderator  
Reply With Quote
Unread 10-07-08, 11:54 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Yeah, I have to admit that this addon is not good for inventory-sorting or other "big" features (but was also never planned to do so). Some other person remarked that some time ago and since then I was on coding on another more item-based bag addon (define filters for bags), but it's difficult to maintain two different bag addons without neglecting one of them.
Well, maybe I'll accomplish to merge both of them into one modular ... but to that point it's still a long way to go.

Concerning the ButtonFacade-skins: I think it could be useful to add optional support to them as well in the default layout.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 10-06-08, 05:46 PM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
I was thinking along the lines of the apathy button facade skin. However, I have decided to stop using your addon. As great as it is, I came from baggins and I do miss the option to sort my inventory too much. The amount of mules I use and the size of their inventories just make it a real pain to sort through it manually.

Thanks for your offer to look into it tho and keep up the good work. Your mod is great, sadly im too spoiled to use it.
Report comment to moderator  
Reply With Quote
Unread 10-01-08, 07:19 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
cargBags doesn't apply a texture by itself to the buttons, it creates them based on a template by Blizz (so you get the default button borders, etc ...). If you want your own button style, you can add your code to the PostCreateButton-function in layout.lua. You'll see that there's already a code snippet which colors the button borders based on their bagtype.

If you need more help, I would suggest you give me an example of your textures/skin so I can try myself on the code.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 10-01-08, 03:58 AM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
Is it somehow possible to skin the buttons? I can't find a passage in the code where the button texture is set, so Im kinda at a loss since I don#t know that much about coding and lua.
Report comment to moderator  
Reply With Quote
Unread 09-30-08, 11:25 AM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
I'm wondering, is it possible to have quality coloring without delving to deeply into the code? Basically I just want the borders of my items to color according to their quality to I can distinguish items easier.

Scratch that, reading helps. Thanks anyway.
Last edited by Lysiander : 09-30-08 at 11:34 AM.
Report comment to moderator  
Reply With Quote
Unread 09-29-08, 01:14 PM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
Yeah, just noticed it behaves correctly with vendors. Not a big deal with the mailbox frame, thanks for the clarification.
Report comment to moderator  
Reply With Quote
Unread 09-29-08, 12:52 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
The default layout hooks directly the Blizzard functions, so the cargBags are shown/closed when the Blizzard bags would do the same. Closing at a vendor works for me, but the mailbox frame doesn't close for me either.

But after disabling cargBags, I've tested it with the original Blizzard bags - and they behave identically. So, the mailbox closing issue rather relies on Blizzard's side.
For me, it's only a minor thing and I don't want to write a workaround on this (registering events and so on) - but you are free to do so in your own layout. Sorry, but it's the way it's meant to be
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 09-29-08, 11:33 AM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
Thanks. Can you also make the window close when exiting vendors/mailboxes? The window does pop up when clicking on the mailbox for example, but it doesn't close when i leave it.
Report comment to moderator  
Reply With Quote
Unread 09-29-08, 08:18 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Well, I don't think it's an compatibilty issue with MoneyTrail - I have to admit that I didn't constructed the layout for greater amounts of money. So, it's just overlapping, because you've got more money than I ever had
I knew that this problem would occur soon or later, but well ... I'm lazy

Update will follow in a few minutes.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 09-28-08, 03:42 PM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
Got a weird issue.

http://bildr.no/view/262162


As you can see, the gold display is overlapping ''Bags''. I'm using MoneyTrail, so that may be the reason. Any plans on adding compatibility with MoneyTrail?
Last edited by Skylinee : 09-28-08 at 03:42 PM.
Report comment to moderator  
Reply With Quote
Unread 09-21-08, 01:43 PM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Excellent
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 09-20-08, 08:14 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Yeah, I'm still around and cargBags 0.4 is (nearly) complete. For the end-user there won't be a lot of changes, but the core should be a lot more optimized - I'm just testing it, before the release.
Version 0.4 comes also with its Handler-system which could allow plugins to display other items in it, but at the moment it's still a long way to the Anywhere-Bags-feature

Concerning WotLK-compatibilty, I've noticed a problem with the moneyframe of the bankframe, but it's fixed in the new update.

So, expect a release within the next days
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.