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 11-26-09, 01:53 PM  
ac3r
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 27
Uploads: 1
no more updates?
Report comment to moderator  
Reply With Quote
Unread 11-13-09, 02:09 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 14
File comments: 32
Uploads: 0
Originally posted by Cargor
I've written something up for you, but I didn't test it ingame (since I don't use _Nivaya) - http://pastey.net/128357-k1g6:128356-cmde

The part you need to insert is colored green and is in lines 289 - 310. You can see some comments to change the settings. In contrast to my first answer, I put both parts in the UpdateButton-function, this makes it more structurized to find it again if needed
YEEEEESS... thank you Cargor, that was spot-on
__________________
King for a Day, Fool for a Lifetime
Report comment to moderator  
Reply With Quote
Unread 11-12-09, 07:58 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
I've written something up for you, but I didn't test it ingame (since I don't use _Nivaya) - http://pastey.net/128357-k1g6:128356-cmde

The part you need to insert is colored green and is in lines 289 - 310. You can see some comments to change the settings. In contrast to my first answer, I put both parts in the UpdateButton-function, this makes it more structurized to find it again if needed
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 11-12-09, 02:04 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 14
File comments: 32
Uploads: 0
Originally posted by Cargor
-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.
Can't figure out where to change this..
my lua scripting is unfortunately too low as I can't find 'PostCreate..' nor 'Update..' in any form that looks right to me
__________________
King for a Day, Fool for a Lifetime
Report comment to moderator  
Reply With Quote
Unread 11-10-09, 11:31 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Hi,

das kommt ganz auf dein Layout an, was du benutzt. Meine Layouts (_Aurora und _Pernobilis) kann man verschieben, wenn man die Alt-Taste gedrückt hält und den Hintergrund mit der Maus zieht.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 11-08-09, 09:54 AM  
Apollinaire
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
locked

Hallo,

ich nutze dein taschenaddon wirklich gerne, nur sind bei mir meine taschen festgesetzt, jeweils links und rechts mittig, meine lua kenntnisse sind scheinbar zu rudimentär um in der lua datei die option zum entsperren zu finden, kannst du mir dabei helfen, möchte sie frei beweglich haben, sofern möglich.

danke

Apollinaire
Report comment to moderator  
Reply With Quote
Unread 11-06-09, 07:01 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 14
File comments: 32
Uploads: 0
Originally posted by Cargor
It is up to RequiredLevelIcon to implement this feature and I can't do anything on my side for that.
ofcause not

Originally posted by Cargor
However, you can "replicate" the addon with cargBags' own internal API and write it as part of your layout. It's not too difficult to do and I could provide you the code for that one if you name the layout (_Nivaya, _Aurora or else) you are currently using.
Cool, please enlighten me... using _Nivaya

Originally posted by Cargor
-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.
very little, but willing to try

Originally posted by Cargor
-- For the users who can't await version 2.0, a small status update.
can't wait
__________________
King for a Day, Fool for a Lifetime
Last edited by cag_dk : 11-06-09 at 07:05 AM.
Report comment to moderator  
Reply With Quote
Unread 11-04-09, 05:33 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
It is up to RequiredLevelIcon to implement this feature and I can't do anything on my side for that.

However, you can "replicate" the addon with cargBags' own internal API and write it as part of your layout. It's not too difficult to do and I could provide you the code for that one if you name the layout (_Nivaya, _Aurora or else) you are currently using.

-- If you are already a bit into Lua scripting:
Basically you have to create the fontstring for the text in your layout's :PostCreateButton-callback and then update this text in the :UpdateButton-callback with the value of item.minLevel.

-- For the users who can't await version 2.0, a small status update.
__________________
« Website | GitHub »

Oh hai!
Last edited by xConStruct : 11-04-09 at 06:06 AM.
Report comment to moderator  
Reply With Quote
Unread 11-04-09, 02:59 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 14
File comments: 32
Uploads: 0
overlay

any chance that cargBags can function with http://www.wowinterface.com/download...Icon.html#info so that it will show req lvl on items in bank and inventory as it does in vault.

I know RequiredLevelIcon works as intended 'cos the numbers are there when I disable cargBags
__________________
King for a Day, Fool for a Lifetime
Report comment to moderator  
Reply With Quote
Unread 10-29-09, 11:38 PM  
Slaxi81
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Simple and useful, thank you for this!
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 10-13-09, 09:01 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
I'm going to look into it.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 10-11-09, 08:38 AM  
cag_dk
A Deviate Faerie Dragon
 
cag_dk's Avatar

Forum posts: 14
File comments: 32
Uploads: 0
numbers on bags (free/total slots)

I've tried Arkinventory but it's too complicated for my liking, so I'd ask if you could add the feature that AI has...

on the bags AI displays free/total number of slots, this is very useful when you see that you have like 10 free slots but nowhere does it state that these are only in you ie. LW-bag and you just need to loot a weapon.

This can be very frustrating some times.

TIA

/Cag
__________________
King for a Day, Fool for a Lifetime
Report comment to moderator  
Reply With Quote
Unread 10-09-09, 11:13 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Ha, I knew this question would come some time
Well, but I don't really know what to answer ...

cargBags is all about extensibilty via plugins (designed from the beginning on), with oUF in mind, so from this view point on it doesn't make sense to release another version which is incompatible to the larger one and lacks a lot of features.

Releasing a different version would basically mean that I need to maintain another addon I'm never going to use. I could maybe write one stable version up and then you can use it with no support from me. But it wouldn't benefit from new ideas on optimization of its "larger brother" nor would I update it if it is broken, because it costs me a lot of time despite only having a small userbase.

If you said that it uses too much CPU time for you, I could understand you - but "radical memory minimalism" doesn't make any sense. I try to keep memory usage down to a minimum and while having all these custom filters and options, cargBags is still around the same memory usage as BaudBag for example (and I try to keep it under 100kb without any extra features). But these 30 kb it was before ... it costs a lot of work and just gives you a prettier number in your mem-addon and decreases loading time by maybe about 0,05 seconds ...

Sorry for this wall of text and maybe being a bit rude
I see where you come from and I once belonged to this "extreme minimalist" scene, but my view point has changed a bit since then.
If I get some time and feel like it, I maybe write something up for ya - without additional "longterm support".
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 10-09-09, 09:20 AM  
Moonwalker
A Kobold Labourer
 
Moonwalker's Avatar

Forum posts: 0
File comments: 16
Uploads: 0
carg can you do a version of cargbags that is like it was back a few months ago? 15kb and as simple as possible with 0 options? please?
Report comment to moderator  
Reply With Quote
Unread 10-06-09, 06:14 AM  
CGamer
A Defias Bandit

Forum posts: 2
File comments: 3
Uploads: 0
Thanks Moneytral works great, now I just need to figure out how to add more filters.
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.