SleekFreeBagSlots FINAL RC01 (1.2b) 	by: Ulti <ultidev@gmail.com>
					a.k.a: Ultinor of EU-Sunstrider
------------------------------------------------------------------------------
-What?-
Displays number of free and/or total slots per bag or globally
with minimal resource usage.


-Why?-
Because Ulti almost ripped his eyes out when he realised 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
total	  - toggles display of total slots
showammo  - toggles display on special purpose bag slots
colour	  - toggles colour indication
perbag	  - toggles display per bag
global	  - toggles display globally
countammo - toggles inclusion of special purpose bag slots in global


-Credits-
Thanks to Ultinor, Eternalight, and Darkrunner of EU-Sunstrider, for
their work on the original SleekFreeBagSlots.

Thanks to Zidomo for sending me a copy of the original SleekFreeBagSlots
and feedback on my updates and future plans.  Thanks also to Hayla for
providing feedback.

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

DO NOTE however, that the specialty bag option almost certainly will not
work until proper localization strings has been entered into
sfbs\localization.lua


-Known issues-
Sometimes when swapping bags the BAG_UPDATE event fires before the actual
bag has been unequipped, resulting in weird behaviour, usually simply text
staying after the bag has been removed. SleekFreeBagSlots should not throw
any errors due to such a situation, but if it does this is why.

Zorched: I've not seen this behavior yet, but if it does happen, the display
should correct itself after a bit of bag activity.


-Changelog-
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
