Download
(16 Kb)
Download
Updated: 08-24-09 05:54 AM
Pictures
File Info
Updated:08-24-09 05:54 AM
Created:05-31-09 07:10 PM
Downloads:2,728
Favorites:22
MD5:
Bag Count [Data Broker]
Version: r395
by: recluse [More]
Click here to lend your support!
An LDB plugin to display the number of bag slots you have available.

To see the options in game, as well as their current settings.
/bagcount

Bags are split into "normal" bags and "special" bags. Special bags are things like Soul Shard bags, Herbalism bags, etc. Normal bags are bags into which anything can be placed.

If you'd like to change whether empty slots or total slots are shown:
/bagcount style normal
/bagcount style special

If you'd like to show/hide a particular bag type:
/bagcount display normal
/bagcount display special

If you'd like to show/hide the total slots:
/bagcount total normal
/bagcount total special
r395:
- Whoa, the slash command implementation somehow disappeared... wtf!

r349:
- Bumped TOC to 3.2
- Cleaned up code a bit.
- Implemented gradient color on main bag count.
- Implemented basic Blizzard default click-to-open code. If you use a custom bag addon which does not support it, sorry.

r234:
- /bagcount style special command should now work properly.

r160:
- Changed /bagcount total on|off to /bagcount total normal (toggle) and /bagcount total special (toggle).
- Added /bagcount display normal (toggle) and /bagcount display special (toggle) to turn on and off normal/special bag displays.
- Changed /bagcount display empty|full to /bagcount style normal (toggle) and /bagcount style special (toggle).

r157:
- Initial support for specialty bags. Functional, but needs work. :)
- /bagcount total [on|off] option added to toggle showing the bag totals.
Archived Files (5)
File Name
Version
Size
Author
Date
r349
16kB
recluse
08-15-09 10:06 PM
r234
16kB
recluse
07-30-09 08:58 AM
r160
16kB
recluse
06-05-09 05:26 AM
r157
15kB
recluse
06-01-09 10:41 PM
r152
15kB
recluse
05-31-09 07:10 PM


Post A Reply Comment Options
Unread 08-24-09, 05:55 AM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
Originally posted by Politig
All / commands don't work
Wow, I honestly have no idea wtf happened there - the code to process them was non-existent for some reason. It's fixed now
__________________
We'd be together, but only diamonds last forever...
Recluse is offline Report comment to moderator  
Reply With Quote
Unread 08-23-09, 09:09 AM  
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations

Forum posts: 164
File comments: 419
Uploads: 1
All / commands don't work
Politig is offline Report comment to moderator  
Reply With Quote
Unread 08-15-09, 10:08 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
r349

r349:
- Bumped TOC to 3.2
- Cleaned up code a bit.
- Implemented gradient color on main bag count.
- Implemented basic Blizzard default click-to-open code. If you use a custom bag addon which does not support it, sorry.

This revision adds some of the features many users have been requesting. Hope you all enjoy!
__________________
We'd be together, but only diamonds last forever...
Recluse is offline Report comment to moderator  
Reply With Quote
Unread 07-31-09, 03:41 AM  
Wizardling
A Kobold Labourer
 
Wizardling's Avatar
Premium Member

Forum posts: 0
File comments: 96
Uploads: 0
Post Click to open?

If I could click to open as I've done with Bagsy (which doesn't recognise some Wrath bags :-( ) that would be excellent.

Cheers for a useful addon!

Regards,
Jamie Kahn Genet
Wizardling is offline Report comment to moderator  
Reply With Quote
Unread 07-30-09, 10:46 AM  
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations

Forum posts: 164
File comments: 419
Uploads: 1
Hello,

This would be awesome if you could add those.

Thanks!
Politig is offline Report comment to moderator  
Reply With Quote
Unread 07-30-09, 09:29 AM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 640
Uploads: 3
Originally posted by recluse

But in the end, I have my bag addon bound to the B key, and it just opens things up with a single press anyhow. I'm sure you have a similar keybind?
True. I had Shardbag Hider (which itself is a continuation of Soulpouch) but both of those get weird with bag addons. I don't use bag addons (don't like all my bags being in one) but I use Neat Freak, which has auto open/close for bags at certain locations and sorts your bags based on criteria you have. Don't know if this counts or not...anywho, I'm trying to learn lua, and I figured a good way was to jump into addons that I like but that aren't maintained anymore, figure out why they don't work and muck about with them. The worst I can do is break them more! That's why the long delay in my response to your response. Thanks for your great explanation, that makes a lot of sense, and no, I don't want this to become a nightmare for you. XD
__________________
There is absolutely no evidence to support the theory that life is serious.
Last edited by xtoq : 07-30-09 at 09:29 AM.
xtoq is offline Report comment to moderator  
Reply With Quote
Unread 07-30-09, 09:01 AM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
Originally posted by Politig
/bagcount style special
Sorry for the delay, I've added a fix for this in the latest version.

Originally posted by Politig
I just wanted to know if color based on slots left (red for low, green for lots) could be added.
I've actually been doing some experimentation involving this in some of my other projects, and it would not be too difficult to add to this addon at some point. I'll see if I can get around to it at some point.

Originally posted by Politig
Also, profession bags and normal bags seem to be separated. Is there a way to merge them together?
Well, they do get considered to be special bags, and thus separated yeah. It is possible to include them in the total slots, and I may provide an option for this as well.
__________________
We'd be together, but only diamonds last forever...
Recluse is offline Report comment to moderator  
Reply With Quote
Unread 07-19-09, 01:44 PM  
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations

Forum posts: 164
File comments: 419
Uploads: 1
Hello,

/bagcount style special is broken.

Thanks!
Politig is offline Report comment to moderator  
Reply With Quote
Unread 07-19-09, 10:22 AM  
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations

Forum posts: 164
File comments: 419
Uploads: 1
Hello,

I like this addon. I just wanted to know if color based on slots left (red for low, green for lots) could be added. Also, profession bags and normal bags seem to be separated. Is there a way to merge them together?

Thanks!
Politig is offline Report comment to moderator  
Reply With Quote
Unread 06-05-09, 09:29 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
Originally posted by xtoq I really want to open all my bags with one click (...) any way to suppress opening of the special bags when opening the bags?
Well, firstly, the whole point of this addon is to simply display slot counts in one form or another so the user can see a numerical representation of what is available there without having to open their bags. Adding in functionality such as opening up bags is a little beyond the scope of the addon.

However, I thought maybe it'd be nice just for the basic click functionality - until I began to ponder how to open up the bags. Now, the default UI has static methods of being able to open all bags or just one bag, etc. and those would not be hard to implement.

Where it gets complicated is when a user has a bag mod installed. (I use cargBags, for example) Many bag mod authors are smart enough to add in default UI hooks in order for their addon to be opened when the default bags would have been. But not all bag addons do this, and they would not get the bag open calls properly.

Because of this, in order to add in such functionality, I would have to examine every bag addon out there (or selectively choose to support only a few) and find out how they open their bags. If they do not use any hooking functions, then I would have to add code expressly for those addons. As you might imagine, this would quickly become a nightmare, not to mention having to update the code every time a bag addon updated.

Now, you may just be using the default bags, and that's cool - but without determining if someone was running a bag addon or not, I would not be able to interact with only the default bags (if usingBaggins then don't continue type logic). As mentioned before, this would require me to keep a list of all known bag addons and check for their presence before opening the default bags. For many addons they would not even flinch, but there are certainly at least a few which would choke at this point.

The only alternative is to provide the functionality for default bag frames to be opened, but leave it off by default, and let the user decide if they want to use it. But for those who are not using it, I feel it's a waste of memory for them, just to offer it for a few people. And again, it's kinda outside the scope of what this addon intends to do.

But in the end, I have my bag addon bound to the B key, and it just opens things up with a single press anyhow. I'm sure you have a similar keybind?
__________________
We'd be together, but only diamonds last forever...
Recluse is offline Report comment to moderator  
Reply With Quote
Unread 06-05-09, 10:33 AM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 640
Uploads: 3
Originally posted by recluse
r160 adds more control over what exactly to show and how. You can toggle each option for special bags and normal bags independently, so each can have its own unique display style.
edit: grrrrrrrrrr

And lastly, what about the option to open the backpack on left click, and open all bags on right click? And the option to switch that around? I want to be able to open my bags with only clicking on this LDB plugin, and I really want to open all my bags with one click.

ALSO, while I have you here, any way to suppress opening of the special bags when opening the bags? Since you love making addons... =) JK of course, but that would make this the best bag addon evah!

Thanks for all your hard work and putting up with my requests and commentary lol.
Last edited by xtoq : 06-05-09 at 01:18 PM.
xtoq is offline Report comment to moderator  
Reply With Quote
Unread 06-05-09, 05:28 AM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
r160 adds more control over what exactly to show and how. You can toggle each option for special bags and normal bags independently, so each can have its own unique display style.
__________________
We'd be together, but only diamonds last forever...
Recluse is offline Report comment to moderator  
Reply With Quote
Unread 06-02-09, 12:27 PM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 640
Uploads: 3
Originally posted by Codex
Can you add an option to show empty slots?
Already included. Per the slash commands on the front page, type /bagcount display [full|empty] to toggle between the two.
xtoq is offline Report comment to moderator  
Reply With Quote
Unread 06-02-09, 11:38 AM  
Codex
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 281
Uploads: 21
Can you add an option to show empty slots?
Codex is offline Report comment to moderator  
Reply With Quote
Unread 06-01-09, 10:49 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 112
Uploads: 14
Originally posted by xtoq
can we have the option to change the display to "##" instead of "##/##"?
Ack, it's my stalker! lol j/k

Well, you got me all interested in these LDB things, so this addon is all your fault. *nod* You know, I came here today to upload my newest version with basic specialty bag functionality, and here's your comment asking for a feature, which I just couldn't resist taking the time to add in. So... Both specialty bag display and total slot hiding is in this latest version.

Now, I'm pondering whether I should add the options for showing totals, as well as empty/full for both regular and specialty bags. For now, the options are globally placed on both (ie, if you hide total slots, it's for both the specialty bag and the regular bags). Doing this would allow for perhaps showing say - Bags: emptyslots/totalslots Shards: filledslots. Anyhow, that's something I'm contemplating doing (and thus probably will XD)
__________________
We'd be together, but only diamonds last forever...
Recluse is offline 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.