Description
Druid Bar is a movable mana bar that keeps track of your current mana, even in a shapeshifted form like bear or cat. remember that this addon is an estimation of your mana, and it could be slightly higher or lower depending on your level(Lower levels will have more problems since there is much less room for error with their smaller mana pools).
Slash Commands
There are 2 available
/druidbar
/dbar
Either may receive a number of parameters: on / off / toggle / vis / width / height / hide / lock / replace / player / text / message / status / debug / color
Explanation of the parameters:
- on/off/toggle: This will toggle running of the addon. toggle switches between on and off.
- vis: This will enable or disable any and all graphical stuff. if you use with other addons like StatusBars or Linoleum, turn it off. If not, leave it on ^^
- width <#>: This will let you set the width of the bar.
- height <#>: This will let you set the height of the bar.
- percent: This toggles between 3 options: Showing Raw mana, showing %Mana, and showing both. Works for both the normal bar and Replace.
- hide: This will toggle on/off the hiding of the bar when in caster form.
- full: This will toggle on/off the hiding of the bar in animal forms when your mana is at 100%
- lock: This will toggle on/off locking the position of the bar.
- replace: This will replace the Player Frame's mana bar, splitting it into two when shifted.
- player: This will make the bar show up directly under the Player Frame. You know, where a lot of other addons like to place your Experience Bar.
- text: This will toggle between 3 options: No text, "Classic" text, or "Modern" Text. (Modern having a border, Classic having no border). This option carries over for both the normal bar and the replaced bar.
- status: This will list the status of all the toggles in your chat window. Simple, Easy, Effective.
- debug: dumps some junk into the chat frame to help me(and you) figure out why the bar is not subtracting the proper amount of mana.
- color: Changes the color of the mana bar by rgb vales. works like
- * /dbar color [r/g/b/a/#(0-1)] [#(0-1)] {#(0-1)}
- * this way you can change a specific color at once (like /dbar color r 0.75)
- * or all three at once (like /dbar color 1 0 0)
Contact info:
In-game: COMING SOON!
Discord: https://discord.gg/b5sPQnu
Issues
Can be raised on either:
Discord: https://discord.gg/b5sPQnu or GitHub: https://github.com/tekHudson/DruidBarClassic/issues
See you in Azeroth!
~Tek
I seem to have this issue where the energy tick bar will dissappear after a while, while i'm still in cat form. Got any idea what causes this?
Thx for a great addon though!
You need to add two spaces in line 395 of druidbar.lua to display spaces in the text.
Current:
function ManaValues()function ManaValues() return floor(DruidBarKey.currentmana).."/"..floor(DruidBarKey.maxmana);
Should be:
function ManaValues()function ManaValues() return floor(DruidBarKey.currentmana).." / "..floor(DruidBarKey.maxmana);
With the most recent update you can no longer hide the text in the bar, or make it so that it only shows on mouseover. Is this a known bug?
Since 0.7.6 i get this on login:
Date: 2020-01-10 17:17:31
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\SexyMap\Shapes.lua line 354:
attempt to index upvalue 'db' (a nil value)
Debug:
[C]: ?
SexyMap\Shapes.lua:354: GetMinimapShape()
...ce\AddOns\Atlas\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:126:
...ce\AddOns\Atlas\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:121
...ce\AddOns\Atlas\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:369: Refresh()
DruidBarClassic\DruidBar.lua:72: DruidBar_OnEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
Locals:
Since the latest update, when I try to select a custom location of the bar, it resets the location every time I log. Also, I am constantly getting an errorlog whenever I log in, open the menu, interface options, keybindings and much more. Getting rid of this errorlog is starting to get real annoying and not being able to have the bar where I want it to be is as well. I copied one of the errorlogs for you below.
Message: ...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:313: LibDBIcon-1.0: Object 'DruidBarMinimapIcon' is already registered.
Time: Tue Jan 7 03:40:48 2020
Count: 1
Stack: ...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:313: LibDBIcon-1.0: Object 'DruidBarMinimapIcon' is already registered.
[C]: in function `error'
...tlasLootClassic\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:313: in function `Register'
Interface\AddOns\DruidBarClassic\DruidBar.lua:168: in function `Load_Variables'
Interface\AddOns\DruidBarClassic\DruidBar.lua:64: in function `DruidBar_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
[C]: in function `LoadAddOn'
Interface\FrameXML\UIParent.lua:353: in function `UIParentLoadAddOn'
Interface\FrameXML\UIParent.lua:364: in function `AuctionFrame_LoadUI'
Interface\FrameXML\UIParent.lua:1133: in function <Interface\FrameXML\UIParent.lua:658>
Locals: (*temporary) = "LibDBIcon-1.0: Object 'DruidBarMinimapIcon' is already registered."
In reply to Forge_User_32475235:
getting a similar error on login in combo with atlas and titan:
Error occured in: Global
Count: 49
Message: ...ce\AddOns\Atlas\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua line 313:
LibDBIcon-1.0: Object 'DruidBarMinimapIcon' is already registered.
Debug:
[C]: error()
...ce\AddOns\Atlas\Libs\LibDBIcon-1.0\LibDBIcon-1.0.lua:313: Register()
DruidBarClassic\DruidBar.lua:168: Load_Variables()
DruidBarClassic\DruidBar.lua:64: DruidBar_OnEvent()
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
Locals:
(*temporary) = "LibDBIcon-1.0: Object 'DruidBarMinimapIcon' is already registered."
In reply to Forge_User_32475235:
I'll look in to this tomorrow.
In reply to TekkedOut:
I now realised that the errorlog was most likely a conflict another mod was having with multiple other mods, I turned it off and haven't gotten any errorlogs since. I just thought it had to do with this mod since it started appearing after updating it.
Just found this fantastic addon after the release of 1.13.3, and the "percent" function doesn't show anything on the bar unless I mouse over it. Dunno if it's related to the changes from 1.13.2 -> 1.13.3 or not, but thought I'd let you know.
In reply to DK__Plays:
Sorry for the late reply. I must have missed the email from curse forge about your post. I will look into this in my upcoming work session on this project. Thank you.
In reply to TekkedOut:
No worries. And it just started working, so maybe it was just the setting not saving properly the first time I used it. All good now, though, and thanks for the great mod!
In reply to DK__Plays:
Glad to hear it's working :D
It seems that even when you lock the bar's position you can still move it. It's kinda random, really odd. Spam clicking + dragging on the bar seems to let you move it *sometimes*. Any idea? Also it would be nice if you could make click through an option.
In reply to FERALMODE:
Looks like I got a fix for this. Look for it in v0.7.3
Message: [string "DruidBarBest"]:1: attempt to call global 'DruidBar_ChangeBestForm' (a nil value)
Time: Wed Oct 2 20:11:20 2019
Count: 1
Stack: [string "DruidBarBest"]:1: attempt to call global 'DruidBar_ChangeBestForm' (a nil value)
[string "DruidBarBest"]:1: in function <[string "DruidBarBest"]:1>
Locals: keystate = "down"
pressure = 1
angle = -1
precision = 0
(*temporary) = nil
(*temporary) = "attempt to call global 'DruidBar_ChangeBestForm' (a nil value)"
latest alpha, bestform bind
In reply to nihlolino:
Bestform is no longer viable due to API changes. I thought I removed it all.. Ensuring it is all removed.
New lua error in latest version on bestform keybind:
Message: Interface\AddOns\DruidBarClassic\DruidBar.lua:253: attempt to call global 'pre_ShapeshiftBar_ChangeForm' (a nil value)
Time: Tue Oct 1 13:21:14 2019
Count: 1
Stack: Interface\AddOns\DruidBarClassic\DruidBar.lua:253: attempt to call global 'pre_ShapeshiftBar_ChangeForm' (a nil value)
Interface\AddOns\DruidBarClassic\DruidBar.lua:253: in function `ShapeshiftBar_ChangeForm'
Interface\AddOns\DruidBarClassic\DruidBar.lua:820: in function `DruidBar_ChangeBestForm'
[string "DruidBarBest"]:1: in function <[string "DruidBarBest"]:1>
Locals: id = 4
changingback = true
(*temporary) = nil
(*temporary) = 4
(*temporary) = "attempt to call global 'pre_ShapeshiftBar_ChangeForm' (a nil value)"
I have some issues with the minimap icon. Even though I have it unchecked in settings it still shows on my minimap. Furthermore, it always appears in the default place on log-in with all characters, even after being moved.
This has lead me to disable the addon entirely when not playing my druid. Please fix this addon to only be active when playing a druid (or make it an option). And fix the minimap button settings to actually work and save correctly.
In reply to Fibblit:
Sorry for the late reply. I must have missed the email from curse forge about your post. I will look into this in my upcoming work session on this project. Thank you.
In reply to Fibblit:
Looks like I got a fix for this. Look for it in v0.7.3