Stance Sets 3+1 - v2.3

===========
Quick Start
===========
This add-on includes the WeaponQuickSwap addon in it.
http://capnbry.net/wow/

Unzip the contents of the zip archive into your WoW game directory. 
Make sure you "Use folder names" so the files end up in the right
place.  You should end up with:
  <wowdir>\Interface\AddOns\StanceSets3\Bindings.xml
  <wowdir>\Interface\AddOns\StanceSets3\localization.lua
  <wowdir>\Interface\AddOns\StanceSets3\readme.txt
  <wowdir>\Interface\AddOns\StanceSets3\StanceSets3.lua
  <wowdir>\Interface\AddOns\StanceSets3\StanceSets3.toc
  <wowdir>\Interface\AddOns\StanceSets3\StanceSets3.xml

Typing /stancesets will open the stance set configuration dialog.  Drag and drop
the weapons you want equipped for each set into the containers, starting from 
the left.  If you want to make sure the first set is in your hands when you
assume that stance / form, check the "Equip first on activate".  If you do not
have this checked, and the weapons in your hand match one of the sets from your
new stance, no swap will occur.  To remove a weapon, drag it off the slot.

Up to 3 sets of weapons can be available for each stance.  To cycle through
them, use "/stancesets next".  The addon will loop around to the beginning of 
the list when it sees the first empty mainhand slot, so:
weapon1,weapon2    blank,weapon3    weapon4, weapon5
will not cycle at all if your hands are already holding weapon1 and weapon2.
If you don't have any matching set in your hand when you call "next", the first
set will be put in your hands.
Additionally use "/stancesets set1" to select directly set1. also set2, set3.

The panel toggle and set cycle can be bound to a key combination.

** CapnBry **
 Modified by Smuggles
 Modified by Tageshi
 Modified by Vorkosigan


-8 configurable sets available
-window now movable
-myAddons support
-window graphics changed
-window resizes now
-simply implemented weapon quick swap into this
-will now save different settings for each server / realm ( will erase your data v11 and below )
-new slash commands to change between sets of present stance (set1,set2,set3)

Thanks to Hackle (on Icecrown) for validating my stance list code and tracking 
	down the (A, )->(B,C) bug.
Thanks to Richard Hess for fixing the missing sound problem.

Version History:
28
#version 2.3
- The problem with two same waepon but different enchants are fixed.
- Switching from mh+oh to 2h Weapon works
27
#version 2.2
- bug fix for druids
- bug fix when two same main hand waepon are in the set for one stance
26
#version 2.1
- error corrections
- druid problem not solved in these version
25
#version 2.0
- ammo fix again, dont loose the link when ammo stack empty, but a second
  stack of the same ammo are avaible.
- any error corrections
- swapping optimations (faster)
- localizations german and english
24
#version 1.9
- Fixed a problem with the mmo slot. The ammo link get not lost when 
no ammo are in the bag anymore.  
23
#version 1.8
- Fixed a problem with the function WeaponQuickSwap_AnyItemLocked
22
#version 1.7
- Save the position of the minimap button
- Disable or enable the minimap button
21
#version 1.6
- Now you can acticate the config window with an mini map button
20
#version 1.5
- Check for WOW version 2.4
19
#version 1.4
-I hope that I found a good solution for the problem. With the first access to a bag 
 place the routine notes from which place the main hand, off hand and range weapon was 
 taken. Into the appropriate bag places the main hand, off hand and range weapon are 
 put back. It is possible that the main hand and the off hand change the position in 
 the bag places. Usually by simple hand swap 
 (main to off and off to main, nothing going to bag place)
18
#version 1.3
-missing function WeaponQuickSwap.AnyItemLocked()included
17
#version 1.2
-new interface entry in the *.toc file for wow 2.3
16
#version 1.1
-error fixed with the function print, replaced by DEFAULT_CHAT_FRAME:AddMessage
15
#adjusted to ver 1.0
-new name Stance Sets 3+1, now you can swap also the ammo for the range weapon
14
#adjusted to ver 3.1.0
-now weapon swap will work
13
#adjusted to ver 1.6.0
12
-will now save different settings for each server / realm ( will erase your data v11 and below )
-new slash commands to change between sets of present stance (set1,set2,set3)
11 - adapted to patch 1.5.0
10 - Fix for "Duplicate header" error in FrameXML.log.  Thanks to James Stuart
		 for pointing this out.
9 - Interface version 1300.
8 - Interface version 4216.
7 - Interface version 4222.
6 - Interface version 4211.
5 - Fixed drag n drop support to stance item buttons.
	  Fixed missing sound when opening and closing stance set frame.
	  Fixed problems with (A, )->(B,C) swaps, where (A, ) would always stay equipped.
4 - Added sounds to dialog open and close.
3 - Fix for not being able to add weapons to a new set
2 - Fix for "Attempt to index StanceSets, a nil value"
1 - First release (2004-12-30)
