The bar at its default settings for text display style, height, and width.
The slash command help dialog, and an example of the bar being doubled in length.
SimpleDruidBar
Overview
This Druid-only addon creates a mobile bar which displays the Druid's mana while in forms which would normally be unable to view it (bear and cat). This is only an estimate, since the real value is not available to the API, but the exact value of mana you receive per tick IS available to the UI as of patch 2.0.3, and using that information it is possible to calculate your real mana with almost full accuracy every time. You can drag the bar around, and you can configure the size and opacity of the bar, and the display style of its text, with the various "/sdb" slash commands.
Addon Type Information
Addon type: Interface
Libraries used:
ConfigManager1
EventsManager1
SimpleSlash1
See the readme file in this addon's folder, or my author portal, for an explanation of the addon type system used.
Support
If you found a bug in this addon, want to provide feedback, want to help translate it, or even just want to ask a question, please contact me using one of these methods:
If you use any other method, it might take me significantly longer to see your message and reply.
If you wish to support my efforts, you can donate via PayPal by clicking this button:
History of Changes
See the readme file in this addon's folder, or my author portal, for an explanation of the versioning system used.
7.1.1 (Apr 28, 2008):
Now uses 2.4's GetSpellInfo() function to get the mana cost of shapeshifts directly, instead of having to extract it from the tooltip. This removes the need for the CommonParsingTooltip1 library.
7.1.0 (Apr 11, 2008):
Now uses ConfigManager1 library for efficiency.
Miscellaneous code style updates.
7.0.0 (Nov 20, 2007):
Fixed an issue introduced by 2.3's swiftshifting capabilities where if you shifted out of a feral form and immediately back into that same form, such that the client never even realized that you left the form, the mana cost of the shapeshift would not be deducted properly, leading to an inaccurate display.
Now uses the EventsManager1, SimpleSlash1, and CommonParsingTooltip1 libraries for efficiency.
See the readme file in this addon's folder for earlier changes.
Optional Files - SimpleDruidBar
Sorry, there are currently no optional files available.
Thank you for writing an Overview and details for this mod in clear English. I find many mods have no easily decipherable description, but you made an effort to consider this.
__________________
"Those who would give up Essential Liberty to purchase a little Temporary Safety deserve neither Liberty nor Safety" - A Wise Man
also, is there a way to turn off the bar graphics and have it collecting the info in the background so i can still get the variables but not have anything showing on my screen?
edit: bleh this isnt any fun not being able to test the code *hates having to drycode*
I like the look of this and would love to get rid of druid bar but i dont actually use the bar itself since its integrated in my hud, does your addon have a compate mode with druidbar variables so i could use it with my hud?
edit: err nvm i think i found the variables, but i think they are local. I guess its time to tinker :P
edit2: gah servers are down so i cant test it *cries*
You have done a wonderful job on the implementation of this. It's so very simple to use, and gives us everything we need from the addon, without all the bloated frizzy fluff!
Thank you for this. Just wanted to stop by and say that.
__________________ Kayde of Alleria
"All solutions are simple, they just need to be thought of first." - Kayde
love this mod, I'm a minimalist and keeping things simple fit me very well , if your bored you might wanna ace2 it, as you can use the surface library to skin the frame without adding any complexity to the code . Not really needed though
As the name implies, this version is much simpler, and as a result is more efficient. The original is about 120KB large, while this version is roughly 28KB. This is due to it having all manner of extra features (such as custom bar graphics and color, special keybindings to switch forms, automatic chat messages when shifting, and a GUI configuration frame), all of which are nice, but not necessary. It also uses some outdated detections for, and calculations of, mana regeneration, resulting in accuracy falling below 95% if you spend a long time in a form. This version was written with utmost accuracy and efficiency in mind, and although it is not yet possible for any addon to approximate your mana with >99% accuracy, this can come pretty close over any duration. In the expansion, it will be possible to garner 100% accuracy at all times, and I already have the code to do so written.
Anyway, I mostly just wrote this addon for myself, and uploaded it in case anyone else wanted a more compactly designed edition of the DruidBar concept.