Download
(46Kb)
Download
Updated: 09-07-10 10:44 AM
Pictures
File Info
Updated:09-07-10 10:44 AM
Created:unknown
Downloads:70,779
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 07-02-10, 10:00 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 the issue with the bankframe-closing, can't say anything further yet.

What exactly do you mean by sorting the bags vertically? Nevertheless, I think it should be very possible to code it into a layout, since cargBags is very flexible. I won't do it in any of my layouts (they are meant to keep simple), but if you want to start your own layout, you can get help in the cargBags thread.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 07-02-10, 02:30 AM  
SmokeyIllidan
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Small question

Is it possible so when viewing the bank window, if you open the character pane, achievement tab, any of those windows that would normally close the bank, to actually close it? I know it's a small detail but it bugs me that I can't do it. And any way of sorting the bags vertically? 32 slot engineering bags don't look right when you have like 18 columns =/

I think I'm just too picky.
Report comment to moderator  
Reply With Quote
Unread 06-24-10, 02:15 PM  
Uschi
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
ah, ok sehe gerade das man ja nur "cargBags Simplicity" nutzen kann da die anderen layouts noch nicht für version 2 sind

aber danke ^^
Last edited by Uschi : 06-24-10 at 02:23 PM.
Report comment to moderator  
Reply With Quote
Unread 06-24-10, 07:19 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Welches Layout benutzt du? cargBags funktioniert nicht ohne ein Layout!

Ansonsten brauche ich die konkrete Fehlermeldung, sonst kann ich dir leider absolut nicht weiterhelfen.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 06-24-10, 12:55 AM  
Uschi
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Hi Cargor,
habe gerade dein tolles aussehndes cargBags gesehn und wollte es mal Testen um evlt von Bagon3 zuwechseln aber leider startet das Addon erst garnicht.

Ich habe auch schon extra alle anderen Addons deaktiviert damit nicht eins es Blockt das aber auch nicht der fall war, bekomme auch eine error meldung.

evlt eine idee?
Report comment to moderator  
Reply With Quote
Unread 06-12-10, 08:24 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Ich nehme mal an, du meinst das Layout cargBags_Simplicity, denn das Framework hier hat nichts mit dem Layout zu tun! Bitte immer in den Kommentaren vom entsprechenden AddOn posten, da es darauf ankommt. Es gibt auch einen allgemeinen Thread.

To change the background alpha/transparency, open cargBags_Simplicity/MyContainer.lua with a text editor and look for "self:SetBackdrop" in the function MyContainer:OnCreate(). It looks similar to this:

Code:
	self:SetBackdrop{
		bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
		edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
		tile = true, tileSize = 16, edgeSize = 16,
		insets = {left = 4, right = 4, top = 4, bottom = 4},
	}
	self:SetBackdropColor(0, 0, 0, 0.8)
	self:SetBackdropBorderColor(0, 0, 0, 0.5)
First, replace your code with the orange text above - this makes it even darker than before, it will be fixed in the next update. Then you can adjust the alpha-value via the blue number in percent: 0 to 1.
You can also take a look at SetBackdropColor for a full description.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 06-12-10, 08:07 AM  
Bandes
A Kobold Labourer

Forum posts: 1
File comments: 73
Uploads: 0
geiles addon
aber wie kann ich den Hintergrund dunkler machen ?!
how can I make the background darker???

Sry for my bed englisch
Report comment to moderator  
Reply With Quote
Unread 06-10-10, 05:16 AM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
Oh cool, didn't notice it was already included in the test folder.

*goes to work on it*
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 03:55 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
No, sorry! I already have too many different addons and now have to keep them updated, so people won't complain. I need to draw a line somewhere, because I know I would just end up neglecting it.

But this shouldn't be stopping you from trying it on your own ! Or maybe someone else picks it up? You can just extend the list-code (it's in cargBags/tests/list.lua), but I would suggest reading through _Simplicity first for tutorial/comments.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 02:59 PM  
Haleth
This Space For Rent
 
Haleth's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1173
File comments: 1146
Uploads: 17
Originally posted by Cargor
@Haleth: Scrolling is already built-in, I was just too lazy to add scrollbars next to it
..Do want! Any plans on finishing it?
Last edited by Haleth : 06-09-10 at 02:59 PM.
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 09:32 AM  
Soeters
A Warpwood Thunder Caller
 
Soeters's Avatar
AddOn Author - Click to view AddOns

Forum posts: 97
File comments: 207
Uploads: 20
2.0 looks cool, time to code hard to fix my issues and update for 2.0
__________________
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 09:28 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Looked over the framework, and it looks well written, I might even dump an embedded version of this myself.

Currently using a custom addon for bags, letting blizzard handle it. I do not like that very much though.
Report comment to moderator  
Reply With Quote
Unread 06-09-10, 06:51 AM  
Goldpaw
A Wyrmkin Dreamwalker
AddOn Author - Click to view AddOns

Forum posts: 56
File comments: 17
Uploads: 21
Wohoo!
I'm listed as an example!



*Gets his arse moving to update gBags to the changes to space/tagdisplay so that people won't notice that gBags is broken*
Report comment to moderator  
Reply With Quote
Unread 06-08-10, 06:13 PM  
drdead
A Murloc Raider

Forum posts: 6
File comments: 20
Uploads: 0
YES! It's released! Freaking awesome, tnx for your work, dude. I've tried gBags already and i must say that your framework has much better performance than cargBags1. Tnx a lot!
Report comment to moderator  
Reply With Quote
Unread 06-08-10, 05:26 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
@Haleth: Scrolling is already built-in, I was just too lazy to add scrollbars next to it

@p3lim: Good idea, going to use it.
__________________
« 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.