Quantcast

Merge pull request #17 from Bugaloon/master

Tek Hudson [01-10-20 - 15:33]
Merge pull request #17 from Bugaloon/master

Minor Appearance Tweaks to match Blizzard UI
Filename
DruidBar.lua
DruidBar.xml
diff --git a/DruidBar.lua b/DruidBar.lua
index 4083d85..e783038 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -363,7 +363,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
@@ -393,6 +393,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
diff --git a/DruidBar.xml b/DruidBar.xml
index a65c630..a908f6a 100644
--- a/DruidBar.xml
+++ b/DruidBar.xml
@@ -47,7 +47,7 @@
 					<Anchors>
 						<Anchor point="LEFT" relativeTo="$Parent" relativePoint="LEFT">
 							<Offset>
-								<AbsDimension x="5" y="0"/>
+								<AbsDimension x="7" y="0"/>
 							</Offset>
 						</Anchor>
 					</Anchors>