From c780c692de05617015a96166b8cdd4298b96eaec Mon Sep 17 00:00:00 2001 From: SlowSeer Date: Mon, 5 Oct 2015 18:06:13 -0500 Subject: [PATCH] Medicate 1.7 Fixed focus display to only show a whole number. --- Medicate/Medicate.lua | 8 ++------ Medicate/toc.xml | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Medicate/Medicate.lua b/Medicate/Medicate.lua index d30dc52..8d8decc 100644 --- a/Medicate/Medicate.lua +++ b/Medicate/Medicate.lua @@ -194,12 +194,8 @@ function Medicate:OnFrame() local nFocusCurrent = unitPlayer:GetFocus() self.wndMain:FindChild("ManaProgressBar"):SetMax(nFocusMax) self.wndMain:FindChild("ManaProgressBar"):SetProgress(nFocusCurrent) - if nManaCurrent == nManaMax then - self.wndMain:FindChild("ManaProgressText"):SetText(nFocusMax) - else - --self.wndMain:FindChild("ManaProgressText"):SetText(string.format("%.02f/%s", nManaCurrent, nManaMax)) - self.wndMain:FindChild("ManaProgressText"):SetText(String_GetWeaselString(Apollo.GetString("Achievements_ProgressBarProgress"), math.floor(nFocusCurrent), nFocusMax)) - end + self.wndMain:FindChild("ManaProgressText"):SetText(math.floor(nFocusCurrent)) + local strFocus = String_GetWeaselString(Apollo.GetString("Medic_FocusTooltip"), nFocusCurrent, nFocusMax) self.wndMain:FindChild("ManaProgressBar"):SetTooltip(string.format("%s", strFocus)) diff --git a/Medicate/toc.xml b/Medicate/toc.xml index 0e5fea9..2dd7a03 100644 --- a/Medicate/toc.xml +++ b/Medicate/toc.xml @@ -1,5 +1,5 @@ - +