Skip to content

Commit

Permalink
Medicate 1.7
Browse files Browse the repository at this point in the history
Fixed focus display to only show a whole number.
  • Loading branch information
SlowSeer committed Oct 5, 2015
1 parent f812839 commit c780c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Medicate/Medicate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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("<T Font=\"CRB_InterfaceSmall\">%s</T>", strFocus))
Expand Down
2 changes: 1 addition & 1 deletion Medicate/toc.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Addon Name="Medicate" APIVersion="11" Author="SlowSeer" Version="1.6" Description="Medic Resource UI">
<Addon Name="Medicate" APIVersion="11" Author="SlowSeer" Version="1.7" Description="Medic Resource UI">
<Script Name="Medicate.lua"/>
<Form Name="Medicate.xml"/>
<ReplaceAddon Name="ClassResources"/>
Expand Down

0 comments on commit c780c69

Please sign in to comment.