First I'd like to say I love this UI - very well made and easy to customize. Excellent work.
I'm not posting this in the Bug Reporting thread because I'm not quite sure it's a bug. Maybe I set something up wrong. I've also searched for any mention of this but haven't found anything yet - I apologize if this has been covered elsewhere.
Here's the problem:
I set my MazzleHUD on my 32 Warlock to percentages for my health and mana instead of pure values. The health part works fine, but the mana part seems to be messed up. The percentages don't seem to line up with my actual remaining mana. This screenshot shows the problem:
As you can see, MazzleHUD says I have 70% of my mana left, yet on my character's panel, it says I ahve 1087/2335 mana remaining, or 46.5%. In addition, it seems that the bar for my mana in the HUD seems to be roughly at 46.5%, so it would seem this part is accurate - just the number over that bar is off.
Any ideas as to what is wrong? Anyone else having this problem?
EDIT: I went into the MazzleHUD.lua file and changed the following line:
function MazzleUI:HUD_PlayerManaEvent()
local p, mana, maxMana = 0, UnitMana("player"), UnitManaMax("player")
if (maxMana == 0) then p = 0 else p = (.453125 + (.546875 * (mana/maxMana))); end
local h = 256 * p;
I removed the first part of the p = (.453125 + (.546875 * (mana/maxMana))) part, changing it to simply (mana/maxMana). This fixed the problem with the text, but it made the bar fill incorrectly - the manabar's filling is much less than my actual mana percentage. So I didn't fix anything but it would seem like the problem is in this line. Can anyone tell me why those first two numbers are necessary to the HUD programming? I noticed they aren't included in either the player or target health calculations.