Addon Info.
Change Log
Optional Files (0)
Archived (7)
Comments (41)
Addon Information
Works with WoTLK
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)
Cargor's Portal Bug Reports Feature Requests
Author:
Version:
0.4-1
Date:
09-29-2008 09:54 AM
Size:
11.93 Kb
Downloads:
7,348
Views:
27,186
Favorites:
54
MD5:
Pictures
Click to enlarge
Bags (bag bar hidden)
Click to enlarge
Bank + Bags (bag bar shown)
cargBags   Popular!
Version 0.4 features a code rewrite, so your old layout is not compatible without some small changes. If you find bugs, feel free to ask.

cargBags is a lightweight bag/bank replacement framework designed to take only little memory usage (30-50 kb), but allowing the merging/splitting of different bags. It is roughly based on haste's innovative oUF-core and so there's the possibility to create own layouts by spawning different bags and changing the visual display in the lua-files.

You can define which bags or item slots are contained in one bag object and the object displays them as a single bag and updates its size dynamically.
There is also the possibility to spawn a bar of bag buttons to change your bags or hide them in the bag object.
cargBags doesn't color the item buttons based on their quality, but it supports oGlow.

Base Layout: cargBags_Pernobilis (new)
As a lightweight addon it comes without any config screen - If you want to change the layout, you HAVE to change the lua-code.

The standard layout is cargBags_Pernobilis which contains three bag objects:
  • cb_main: backpack and all other bags
  • cb_keyring: Holds the keyring
  • cb_bank: bank frame and bank bag replacement
It features a bag bar toggled by the button "Bags" as well as a space indicator and money display.
The cb_main- and cb_bank-frames are also movable while dragging and holding Alt.

I hope, the layout-code is self-explanatory - I've added lots of comments. But if you have a question, feel free to ask (:

Overview:
State: 0.4 Beta
Configuration: Lua-only
Credits to: haste for layout code
Support for: oGlow
  Change Log - cargBags
The layout follows the version of the core, the number behind the minus shows the layout's revision. Changes to the core prior to version 0.3.2 are located in the changelog.txt.

cargBags (core)
---------------------
0.4
- Almost complete code rewrite
- elements are now really independent from each other
- let the layout handle more things
- WotLK ready (probably)
- Handlers implemented (experimental)
- new sub-routine: object.Handler("function" [, arguments]) - this will fetch all inventory information based on the selected handler
- new handler: cargBags.Handler.Standard - Fetches data from player's bags
- changed function: object:Spawn(name, bags [, handler]) - arg #3 sets the handler for the object
- updating is less CPU intensive and there is a different way to handle it
- included cargBags.bagUpdaters: an array ( [attrName] = func ) for updating the subframes of the object on BAG_UPDATE
- more callbacks
- new property function: object:PostCreateButton(button, bag) - called after an item button was created
- new property function: object:PostUpdateButton(button, bag) - called after an item button was updated
- new property function: object:UpdateDimensions() - called after the height of object.Container was changed

0.3.4
- made function getBagPosition() member of cargBags
- fixed object:BAG_UPDATE creating slots if unnecessary
- added slot border coloring by bag type (ammo bag / professions bag)
- new property function: self:OverrideColorSlotBorder(button, bagType)

0.3.3
- new property: object.space.countAll = false (true counts also not used slots of the defined bags)
- changed function: object:UpdateSpace(free, total) -> gets number of free instead of used slots

0.3.2
- initial release.


cargBags_Pernobilis (layout)
---------------------
0.4-1
- Bag-togglebutton is really in the center between space- and moneyinfo's

0.4
- follows 0.4 core changes

0.3.3-2
- default layout is now Pernobilis instead of Peratus
- 8-slot bar removed
- movable while dragging and holding Alt-key

0.3.3-1
- changed frameStrata from "DIALOG" to "HIGH" (split box was behind frame)

0.3.3
- 'updateSpace()' changed to reflect core changes
- 'object.space.countAll = true' set

0.3.2-1
- overwrites Blizzard function 'OpenAllBags()'
- comments hopefully made clearer

0.3.2
- initial release.
  Optional Files - cargBags
Sorry, there are currently no optional files available.
  Archived Versions - cargBags
File Name
Version
Size
Author
Date
0.4
11.88 Kb
Cargor
09-24-2008 11:03 AM
0.3.4
11.00 Kb
Cargor
05-11-2008 06:49 AM
0.3.3-2
10.74 Kb
Cargor
05-10-2008 04:13 PM
0.3.3-1
10.50 Kb
Cargor
05-09-2008 08:56 AM
0.3.3
10.50 Kb
Cargor
05-08-2008 09:06 AM
0.3.2-1
10.26 Kb
Cargor
05-07-2008 01:17 PM
0.3.2
10.21 Kb
Cargor
05-07-2008 09:21 AM
  Comments - cargBags
Post A Reply
Author Comments Comment Options
Old Yesterday, 06:46 PM  
Lysiander
A Kobold Labourer

Forum posts: 0
File comments: 9
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.
Lysiander is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-01-2008, 08:19 AM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
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.
__________________
« Homepage | SVN | WebSVN »
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 10-01-2008, 04:58 AM  
Lysiander
A Kobold Labourer

Forum posts: 0
File comments: 9
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.
Lysiander is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-30-2008, 12:25 PM  
Lysiander
A Kobold Labourer

Forum posts: 0
File comments: 9
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-2008 at 12:34 PM.
Lysiander is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-29-2008, 02:14 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 25
Uploads: 0
Yeah, just noticed it behaves correctly with vendors. Not a big deal with the mailbox frame, thanks for the clarification.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-29-2008, 01:52 PM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
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
__________________
« Homepage | SVN | WebSVN »
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-29-2008, 12:33 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 25
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.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-29-2008, 09:18 AM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
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.
__________________
« Homepage | SVN | WebSVN »
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-28-2008, 04:42 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 25
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-2008 at 04:42 PM.
Skylinee is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-21-2008, 02:43 PM  
Caellian
A Deviate Faerie Dragon
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 16
File comments: 223
Uploads: 1
Excellent
__________________
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-20-2008, 09:14 AM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
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
__________________
« Homepage | SVN | WebSVN »
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-19-2008, 05:14 PM  
Caellian
A Deviate Faerie Dragon
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 16
File comments: 223
Uploads: 1
Quote:
Originally posted by Cargor
I plan to rewrite the core completely as soon as I get in the WotLK-beta (I think I have to, due to the API changes) and I'll take a look into a more item-based system - but I don't know how much this will affect the memory usage.
I didn't do any extensives tests but so far it seems to work fine in wotlk. only thing i've noticed but didn't bother trying to fix yet was a +- 10 pix border on the right side of my bags, probably layout related, not sure.

Are you still around btw ?
__________________
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2008, 06:58 AM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
I've never used ArkInventory, so I hope I get your idea right

cargBags doesn't do anything around items (no sorting, no keeping open of different slots for one item) - What was meant with merging/splitting is that you can define bags for your own out of the original ones. So you have one 16er bag and split it up into two 8 slot ones - But you'd have to sort the items manually into them.

I plan to rewrite the core completely as soon as I get in the WotLK-beta (I think I have to, due to the API changes) and I'll take a look into a more item-based system - but I don't know how much this will affect the memory usage.
__________________
« Homepage | SVN | WebSVN »

Last edited by Cargor : 08-09-2008 at 03:59 PM.
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-02-2008, 01:15 AM  
blackpandemic
A Cliff Giant
 
blackpandemic's Avatar

Forum posts: 72
File comments: 41
Uploads: 0
My one question is when you say "merging/splitting of different bags" does this mean ArkInventory style where I can say this kind of item goes here, or is it I give the addon a certain number of slots to keep open for that item?

I'm looking for a lower memory alternative than Ark, but with relatively the same functionality/ease of use (in terms of keeping different kinds of items separate)! Thanks!
__________________
"All power tends to corrupt and absolute power corrupts absolutely." "Advice to Persons About to Write History — Don't." -John Dalberg-Acton
blackpandemic is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-21-2008, 10:52 AM  
Cargor
A Deviate Faerie Dragon
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 19
File comments: 52
Uploads: 9
Code:
if (select(2, UnitClass("player"))=="HUNTER") then
This should do it
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



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


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.