From 2c6f54d6d27d7224a7744bc0dc4a3934697a7d32 Mon Sep 17 00:00:00 2001 From: Bugaloon <54610425+Bugaloon@users.noreply.github.com> Date: Sat, 5 Oct 2019 20:02:58 +1000 Subject: [PATCH 1/2] 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. --- DruidBar.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 1.7.9.5 From a47ef6a3db05d5dae027ccfc9906dec552637ca3 Mon Sep 17 00:00:00 2001 From: Bugaloon <54610425+Bugaloon@users.noreply.github.com> Date: Sat, 5 Oct 2019 20:04:20 +1000 Subject: [PATCH 2/2] DruidBarTextLeft X Axis Offset Update Increased the X Axis Offset of DruidBarTextLeft from 5 to 7 to better mimic the Blizard UI. --- DruidBar.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DruidBar.xml b/DruidBar.xml index 511591e..bec45c3 100644 --- a/DruidBar.xml +++ b/DruidBar.xml @@ -47,7 +47,7 @@ - + -- 1.7.9.5