A castingbar replacement mod
Version 2.0+ reworked by: Neuro (neuro_tx@yahoo.com)
Original Author: elvendawn (c0elvenn@yahoo.com)
Reworked by Repent (repent@kc.rr.com)
Additional Coding by: Bitz (Bitz@dreamwiz.com)
----------------------------------------------------
eCastingBar is a movable and configurable casting bar replacement.  It includes a Mirror Bar that handles Breathing, Feign Death, and Exhaustion, as well as a new Target Bar, showing what your target is casting.



From Neuro:  eCastingBar has been one of my favorite addons.  During the BC Beta, I decided to fix it up and get it working with the new format.  Along the way, I cleaned up some code and added in a third bar, Target Bar.

Much thanks go out to Bitz of Korea, who sent me a much-improved Options Window, and added Spell Ranks, as well as Localization for Korea.

New in 2.00.05: Use Flight Timer and Flight Timer color options.

New in 2.00.04: Spell Rank support, revamped Options Window (both thanks to Bitz), and Spell Icons now available.

New in 2.00.03: Textures!  No longer restricted to just Perl, eCastingBar now has 15 New Textures!  Check the options page to see them in action!  There is an example bar on the options page, it is set to mimic the color Casting Bar Spell, Target Bar Spell, and Mirror Bar Breath, respectively.  Change those colors to see the example bar in a different color.

Most of these Textures were obtained from Thunder12 at WoWInterface.  Special thanks to Banto for Banto texture, Moonmaster for his texture, and Tem for helping me find a few others.  Some textures were obtained from Bigwigs and ag_UnitFrames, many thanks to these fine Addons.
To add your own texture, read the file "AddingTextures.txt".  


Please report any bugs or problems to Neuro_tx@yahoo.com.





	
Slash Commands: /castingbar or /ecb
config
help

The Mirror Bar is used for the Blizzard Timers (Feign Death, Breath, Exhaustion)


Changes:
2.00.05
- Fixed an issue with the Halcyon texture being misspelled. (Fixed last release, but upgrading to 2.00.04 if you were previously using Halcyon would bug the addon, fixed now)
- Fixed an issue with Target Bar not showing Delay properly
- Changed FlightMap support to use the Mirror Bar instead of Casting Bar.  In addition, the countdown is done in minutes:seconds now.
- Added option to turn off Flight Map support.  If you are in-flight, it won't kick in till the next flight.
- eCastingBar will now turn off Bongo's CastBar when enabled, and turn it back on when disabled (doing so mid-cast might give you very strange results).
- The example bar in the Options Menu will now match whatever bar color you selected last.  Only works with full bar colors (Spell Color, Channel Color, Breath Color, etc)

2.00.04
- Spell Icon Support added.  Select Left, Right, or Hidden from the Options Page to select your preference.
- Options Window revamped to be much easier to work with (Thanks to Bitz of Korea for this)
- Bar can now show Spell Rank if desired (Again, credit to Bitz)
- Spell Justify has been replaced with "Show Spell Name" (Bitz as well)
- Texture setup has been changed slightly. Read "Adding Textures.txt" for details.
- Re-added Flight Map support.  I went ahead and fixed a Flight Map bug while I was at it.


2.00.03
- Fixed a bug with Target Bar sometimes popping up when it was disabled.
- Fixed an issue with Fonts not scaling properly.  (Thanks to SilverSurfR at WoWInterface for this fix)
- Fixed a bug with Spell Justify not working properly.
- Fixed an issue where the Target Bar was not properly displaying spellcast delays.
- Added: Several New Textures,  See details above.


2.00.02
- Fixed small bug with Localization load path


2.00.01
- Fixed a bug with Enabling/Disabling the Target Bar.



2.00.00
- Rewrote for 2.0 Compatibility
- Added Target Bar
- Removed the FlightMap stuff
- Changed how variables were stored
- 

1.3.21
- Fixed option text for mirror bar
- Updated to 1.9

1.3.20
- Fixed a bug with supporting FlightMap.

1.3.19
- Fixed a bug when trying to cast a spell while flying.

1.3.18
- Changed the step on the slider back to 1.  Did not realize it would affect the edit box too.
- Added a keybinding for the configuration window.
- Added support for FlightMap.  When you are in the air the normal casting bar will show your destination and how 
	much time is left.  If the time is unknown a default of 10 minutes is specified.

1.3.17
- You can now change the font size for the bars.  This will affect the name and the time.

1.3.16
- Fixed a bug when saving a setting for the first time.   You could not load it until the next time you got in the game.

1.3.15
- Added support for ModWatcher
- If your bars are off the screen they will now load that way.  They were reseting them inside the screen.
- You can now save your settings and load again at a later time.  These settings will be used for all
	characters.  You can also delete a setting if you don't want it.

1.3.14
- Fixed the error where the spark was not working while casting and throwing an error.  This also fixes
	bandaging and fishing.  Sorry about that.

1.3.13
- Created a few more bars for the mirror timers similar to how Blizzards were.  
- The bars will now work like Blizzards as well.  If you are under water and come back up the timer will 
	slowly go up as you are gathering breath or if your fatigue is lessening.  
- The fatigue bar and the breath bar can now both show at the same time.
- You can now drag the bar wherever you want it to be.  Some users wanted to be able to make it flush with the screen.
- The outline will now not show when a bar is disabled.

1.3.12
- Fixed a problem with positioning the bars.  Some is do to the fact that I am a moron :), some is due to Blizzard.
	I have set the maximum amount for the slider position to be 2000.  Originally I had set it to your screen
	resolution but that was the problem.  Blizzard gives me the wrong one for some reason.  I will look into this
	more because I really would like to have it where you cant place your bar off the screen.

1.3.11
- The blizzard timers (Feign Death, Breathing, Exhaustion) now has their own bar.  You can set all the same 
	options as the normal casting bar except showing delay.  There is now a new time color and flash border
	color for the mirror bar.
- You can position the mirror bars with a slider and/or text box now.
- Fixed some other bugs

1.3.10
- You can now change the width and height with a text box.
- You can now specify the maximum amount of characters of a spell shown.  -1 shows all, 0 shows nothing.
- Fixed a bug where locking the casting bar would lock the config window from moving.
- You can now set the justification of the spell name (left, center, right)
- You can now set the opacity of all colors.
- Fixed a bug when left justifying a spell name.  The name would not be flush with the left side of the bar.

1.3.9
- Fixed a bug when you were underwater and started to cast a spell.  Your breathing bar would disappear.  
	This is because we are sharing this bar with the one windows uses.  Now if this happens or
	you fail a spell while one of these mirror frames are being used the original blizzard frame is 
	now shown.

1.3.8
- All blizzard mirror timers (Feign Death, Exhaustion, Breathing) will now show up except death.  
    Blizzard has a timer setup for death but they don't use it.
- Added colors for the mirror timers
- Feign death now works on the mirror frame instead of looking for a buff.  You won't see 
    Blizzards' feign death frame show up anymore.
- Added a delay for casting and channeling.  Casting will show how much delay has been added on.
    Channeling will show how much time has been removed from your channeling.
- You will probably have to change the size of your casting bar again because I made some changes
    to some variables to make it easier for me in the future.

1.3.7
- The config window is now moveable
- Removed the green button for dragging.  The whole outline is now dragable.

1.3.6
- Change the flash border color now works
- Fixed a bug when hitting cancel when choosing a new color

1.3.5
- Changed Rar to Zip

1.3.4	
- Fixed Feign Death bug

1.3.3
- Took out a debug message

1.3.2 -elvendaw, Repent
- Fixed a small channeling bug - thanks to speak.pkhq for the report.
- You can now hide the background from the options menu.

1.3.1
- Hunter's feign death is now on the status bar and the color can be changed.
- You can choose to show the time left through the config.

1.3
- Added a configuration window to change all settings, colors and to resize the casting bar.

1.2 1700 -elvendawn
-Truely fixed the slash commands
-Added default to center of screen unlocked to help users on first load.
-Centered the text vertially up by one, by request of K.Rool.
-Changed the CastingTime Format, thanks to wbb for the Code.

1.1 1700 -elvendawn
-Added per character save.
-Fixed slash commands.
-EDIT: actually i broked everything =P

1.0 1700 -elvendawn
-Initial Release