SleekFreeBagSlots 2.1.0.2	Authors: sarf and Ulti/Ultinor (Ultimor of EU-Sunstrider)
				Co-Author: Zorched/Infiniterage (Infiniterage of Stormrage)
				Maintained by: DonCorneo/personanongratis <suicide@whoever.com> (Donatas of Erader/Doomhammer/+other realms)
------------------------------------------------------------------------------
-What it is?-
A way to display the number of free and/or total slots per bag and/or globally
with minimal resource usage.


-Why use it?-
So you can see on your bags without opening them the number of
slots each bag has, each bag has free and/or the total of all bags 
depending on option settings.


-Why the rewrite?-
Because Ulti (Ultimor/Ultinor) almost ripped his eyes out when he realized how much
memory the original Free Bag Slots actually used.

The original by sarf (KiB and seconds):
        ["mem"] = 1371,
	["time"] = 0.1009999999951106,
	["name"] = "FreeBagSlots",

sfbs (1.2) by Ulti: 
	["mem"] = 27,
	["time"] = 0.004000000073574483,
	["name"] = "sfbs",

"Source": Warmup (addon by Tekkub)

(note: values are of course not static, and changes on every load; 
also depending on both system and other addons, etc.)


-Usage-
/sleekfreebagslots or /sfbs toggle|free|total|showammo|countammo|colour|perbag|global
toggle 	  - toggles sfbs on/off
free	  - toggles display of free slots of additional bags - on/off
total	  - toggles display of total slots of additional bags - on/off
showammo  - toggles display of special purpose bag slots - on/off
colour	  - toggles colour indication - on/off
perbag	  - toggles display additional bags - on/off
global	  - toggles display global - free/free+total (enable only if you have enabled "total") - on/off
countammo - toggles inclusion of special purpose bag slots in global - on/off


-Credits-
Thanks to sarf for the original FreeBagSlots

Thanks to Ulti (with the help of Eternalight, and Darkrunner of EU-Sunstrider) for
his work on the rewrite of FreeBagSlots and releasing SleekFreeBagSlots.

Thanks to zorched for his work on fixing and maintaining SFBS. Thanks to 
Zidomo for sending zorched a copy of SleekFreeBagSlots and the feedback on his 
updates and future plans. Thanks also to Hayla for providing feedback to zorched.

This addon should be compitable with any wow-client (including KR), but 
it's slash commands are currently only available in English.  If anyone
wants to provide localization text, I will happily insert it.

Please Note that the specialty bag option may not work until proper localization 
strings has been entered into sfbs\localization.lua


-Known issues-
None reported.


-Changelog-
version: 2.1.0.2
	-fixed typos and rewrote options details.
	-fixed .toc in attempt to be better identified by Minion and Curse V4.

version: 2.1.0.1
	-updated files because of issue with Curse Client V4 not seeing correct version
	 and trying to update to older version instead of current version.
	
Version: 2.1.0a
	-Updated .toc, .lua for WoW 3.0.2

Version: 2.1.0
	-default to not including ammo in global values.
	-more optimization

Version: 2.0.3.3
	-fixed perbag setting took 99 bag updates to take effect on reload.
	-optimization: release initialization code after init.
	-optimization: increased some local variable scope to reduce garbage collection.

Version: 2.0.3.2d
	-fixed error reported after every command, and commands took up to 100
	 bag moves to take effect.

Version: 2.0.3.2c
	-fixed some flaws Ultinor pointed out about my version.  (Stealth mode!)

Version: 2.0.3.2b
	-removed debugging statements from debugged code.

Version: 2.0.3.2
	-various optimizations.  Squeezing blood from stones was too easy.
	-extended ammo/quiver/soul bag detection to include all specialty bags.
	-split 'global' into two options, one toggles per bag, one toggles
	 global.
	-added option 'countammo' (default enabled) to include specialty bags
	 in global count.
	-messed with colours.  Few if any colours are now illegible, but now most
	 of the colours look ugly.

Version: 2.0.3.1
	-Updated for WoW 2.0.3.

Version: FINAL RC01 (1.2b) - 060210
	-Added "colour" to usage info.
	-Removed one line of code I had mistakenly left in.
	-Except for bugs, this will probably be the last update.


Version: 1.2 - 060206
	-Ammo/quiver containers tested and working, soul bags not tested but should work.
	-Colour added, if anyone have a better colour formula let me know. 
		(formula: (0.08/(free/total) = red colour (range 0-1) 
			  (10*(free/total)^2 = green colour (range 0-1))
	-Few more optimizations, some reduntant code removed, the colour function
		(mainly its slashcommand) added a few KiB though (unchanged loading time).
	-Changed some structure and a few evaluations to avoid errors that could arise
		under certain circumstances.

Version: 1.1b - 060205
	-Hopefully fixed ammo/quiver function.
	-Added soul-bag support.
	-Removed an event that was of no real use.

Version: 1.1 - 060203
	-Added ammo/quiver option
	-Added localization comments
		(as far as I know "Ammo Pouch" and "Quiver" has to be localized)
	-A few optimizations, sfbs should use even less ingame resources
		although initial load uses 3KiB more memory in this version.
	-Few things added in order to support the Titan Plugin.
	-Should no longer display numbers on empty bagslots.

Version: 1.0 - 060201
	-Initial public release
