Current Mana Only for "Bliz-Like"
Bugaloon [10-05-19 - 10:02]
Current Mana Only for "Bliz-Like"
Added a new function CurrentMana() to work alongside ManaValues() in lieu of completely re-writing how retrieving mana values works for the whole addon, and changed the mana source for the "Bliz-Like" display option to use the new function in place of the old function to better mimic the appearance of the Blizzard UI.
diff --git a/DruidBar.lua b/DruidBar.lua
index cc7d3e5..b9a373d 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -339,7 +339,7 @@ function DruidBar_TextRenderer()
dbarShow(DruidBarTextLeft);
dbarShow(DruidBarTextRight);
DruidBarTextLeft:SetText(ManaPercentage());
- DruidBarTextRight:SetText(ManaValues());
+ DruidBarTextRight:SetText(CurrentMana());
DruidBarTextLeft:SetTextColor(1,1,1,1);
DruidBarTextRight:SetTextColor(1,1,1,1);
end
@@ -369,6 +369,10 @@ function ManaValues()
return floor(DruidBarKey.currentmana).."/"..floor(DruidBarKey.maxmana);
end
+function CurrentMana()
+ return floor(DruidBarKey.currentmana);
+end
+
function ManaPercentage()
return floor(DruidBarKey.currentmana / DruidBarKey.maxmana * 100).."%";
end